forked from martinhaefner/simppl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented Properties.GetAll support
- Loading branch information
Martin Haefner
committed
Jan 30, 2021
1 parent
ff68b7a
commit a8a8e44
Showing
10 changed files
with
460 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#include "simppl/pendingcall.h" | ||
#include "simppl/variant.h" | ||
#include "simppl/stub.h" | ||
|
||
#include "simppl/detail/holders.h" | ||
|
||
|
||
simppl::dbus::detail::GetAllPropertiesHolder::GetAllPropertiesHolder(std::function<void(CallState)> f, StubBase& stub) | ||
: f_(f) | ||
, stub_(stub) | ||
{ | ||
// NOOP | ||
} | ||
|
||
|
||
/*static*/ | ||
void simppl::dbus::detail::GetAllPropertiesHolder::_delete(void* p) | ||
{ | ||
auto that = (GetAllPropertiesHolder*)p; | ||
delete that; | ||
} | ||
|
||
|
||
/*static*/ | ||
void simppl::dbus::detail::GetAllPropertiesHolder::pending_notify(DBusPendingCall* pc, void* data) | ||
{ | ||
auto msg = simppl::dbus::make_message(dbus_pending_call_steal_reply(pc)); | ||
|
||
auto that = (GetAllPropertiesHolder*)data; | ||
assert(that->f_); | ||
|
||
auto cs = that->stub_.get_all_properties_handle_response(*msg); | ||
that->f_(cs); | ||
} |
Oops, something went wrong.