diff options
author | Jonathan Maw <jonathan.maw@codethink.co.uk> | 2015-05-14 12:30:31 +0000 |
---|---|---|
committer | Jonathan Maw <jonathan.maw@codethink.co.uk> | 2015-05-14 12:30:31 +0000 |
commit | bb1545c28c472367fc6481f85fb89fc418140558 (patch) | |
tree | 483f03645971fee4b169ac9ea9e912374e05ffdd /plugins/dbus/dbusplugin.cpp | |
parent | b8041b051cc43df0b1b339c45844369967ec99ab (diff) | |
download | automotive-message-broker-baserock/jonathanmaw/lbs-patched.tar.gz |
Apply patch amb_allow_sessionbus.patchbaserock/jonathanmaw/lbs-patched
Diffstat (limited to 'plugins/dbus/dbusplugin.cpp')
-rw-r--r-- | plugins/dbus/dbusplugin.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/plugins/dbus/dbusplugin.cpp b/plugins/dbus/dbusplugin.cpp index ed950268..3bd10285 100644 --- a/plugins/dbus/dbusplugin.cpp +++ b/plugins/dbus/dbusplugin.cpp @@ -24,8 +24,21 @@ #include "debugout.h" #include "listplusplus.h" +bool persistent=false; +GBusType bustype=G_BUS_TYPE_SYSTEM; + extern "C" AbstractSinkManager * create(AbstractRoutingEngine* routingengine, map<string, string> config) { + if(config.find("sessionbus") != config.end()) + { + bustype=G_BUS_TYPE_SESSION; + } + + if(config.find("persistent") != config.end()) + { + persistent=true; + } + return new DBusSinkManager(routingengine, config); } |