summaryrefslogtreecommitdiff
path: root/src/CommonAPI/DBus/DBusConnection.h
diff options
context:
space:
mode:
authorStefan Laner <laner@itestra.de>2013-11-28 18:41:45 +0100
committerPhilip Rauwolf <rauwolf@itestra.de>2013-11-29 16:20:47 +0100
commit8b93559fdcd3bf76526287bba288fbc8b6a77050 (patch)
treea9782ca85716886b95de597cf7f44b8e46796089 /src/CommonAPI/DBus/DBusConnection.h
parente0af53f2058965dd83a3585b9000f947d9f36cd7 (diff)
downloadgenivi-common-api-dbus-runtime-8b93559fdcd3bf76526287bba288fbc8b6a77050.tar.gz
Fixed bug that prevents proxy connections from being destroyed because
of a circular dependency between DBusConnection and DBusServiceRegistry. Also removed bug that prevented ServiceRegistry-callbacks from being deregistered correctly. Extended tests, some formatting issues, fixed one spelling error. Change-Id: I6cf2148375f4c086e60f0ad642415056bd808759
Diffstat (limited to 'src/CommonAPI/DBus/DBusConnection.h')
-rw-r--r--src/CommonAPI/DBus/DBusConnection.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/CommonAPI/DBus/DBusConnection.h b/src/CommonAPI/DBus/DBusConnection.h
index b86fd1e..54b94d1 100644
--- a/src/CommonAPI/DBus/DBusConnection.h
+++ b/src/CommonAPI/DBus/DBusConnection.h
@@ -112,14 +112,16 @@ class DBusConnection: public DBusProxyConnection, public std::enable_shared_from
DBusSignalHandler* dbusSignalHandler,
DBusProxy* callingProxy);
- void unsubsribeFromSelectiveBroadcast(const std::string& eventName,
+ void unsubscribeFromSelectiveBroadcast(const std::string& eventName,
DBusProxyConnection::DBusSignalHandlerToken subscription,
- DBusProxy* callingProxy);
+ DBusProxy* callingProxy,
+ const DBusSignalHandler* dbusSignalHandler);
void registerObjectPath(const std::string& objectPath);
void unregisterObjectPath(const std::string& objectPath);
- bool removeSignalMemberHandler(const DBusSignalHandlerToken& dbusSignalHandlerToken);
+ bool removeSignalMemberHandler(const DBusSignalHandlerToken& dbusSignalHandlerToken,
+ const DBusSignalHandler* dbusSignalHandler = NULL);
bool readWriteDispatch(int timeoutMilliseconds = -1);
virtual const std::shared_ptr<DBusServiceRegistry> getDBusServiceRegistry();