Add unregister function to IObject and IProxy API

This commit is contained in:
sangelovic committed 2019-04-13 21:17:37 +02:00
1 parent 99160156fe
commit e3a74a3ff2
16 files changed
+362 -106

No files matched your search

+4 -3
View File
@@ -35,8 +35,7 @@
#include <utility>
#include <cstdint>
#include <cassert>
#include <iostream>
#include <functional>
// Forward declarations
namespace sdbus {
@@ -172,10 +171,12 @@ namespace sdbus {
class AsyncMethodCall : public Message
{
public:
using Slot = std::unique_ptr<void, std::function<void(void*)>>;
using Message::Message;
AsyncMethodCall() = default; // Fixes gcc 6.3 error (default c-tor is not imported in above using declaration)
AsyncMethodCall(MethodCall&& call) noexcept;
void send(void* callback, void* userData) const;
Slot send(void* callback, void* userData) const;
};
class MethodReply : public Message