feat: add support for std::future-based async calls

This commit is contained in:
Stanislav Angelovič
2023-02-07 12:31:31 +01:00
parent 3a56113422
commit 737f04abc7
10 changed files with 218 additions and 9 deletions
+2
View File
@@ -58,6 +58,8 @@ namespace sdbus::internal {
MethodCall createMethodCall(const std::string& interfaceName, const std::string& methodName) override;
MethodReply callMethod(const MethodCall& message, uint64_t timeout) override;
PendingAsyncCall callMethod(const MethodCall& message, async_reply_handler asyncReplyCallback, uint64_t timeout) override;
std::future<MethodReply> callMethod(const MethodCall& message, with_future_t) override;
std::future<MethodReply> callMethod(const MethodCall& message, uint64_t timeout, with_future_t) override;
void registerSignalHandler( const std::string& interfaceName
, const std::string& signalName