Simplify and unify callback design for both sync and async methods

This commit is contained in:
sangelovic
2019-04-03 00:05:20 +02:00
parent 5673a9bcf2
commit 08945acbc4
11 changed files with 116 additions and 237 deletions
+1 -8
View File
@@ -52,13 +52,6 @@ namespace internal {
, method_callback methodCallback
, Flags flags ) override;
void registerMethod( const std::string& interfaceName
, const std::string& methodName
, const std::string& inputSignature
, const std::string& outputSignature
, async_method_callback asyncMethodCallback
, Flags flags ) override;
void registerSignal( const std::string& interfaceName
, const std::string& signalName
, const std::string& signature
@@ -93,7 +86,7 @@ namespace internal {
{
std::string inputArgs_;
std::string outputArgs_;
std::function<void(MethodCall&)> callback_;
method_callback callback_;
Flags flags_;
};
std::map<MethodName, MethodData> methods_;