summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRobert Griebl <robert.griebl@pelagicore.com>2015-03-17 13:32:29 +0100
committerRobert Griebl <robert.griebl@pelagicore.com>2015-03-25 10:11:43 +0000
commit91feefd7d952d1e3a6b6e985afe34e2d726b2e38 (patch)
tree9e3ab6a79c8d2868d815f6345bde73d4b71b3823 /src
parent0bd06bd9bd3b8387edbca4fc8bb16002f2732358 (diff)
Export the symbols of libdbus-1 when loading it at runtime.
This allows applications that need additional symbols from the library to easily obtain them without needing to replicate the library open logic from qdbus_symbols.cpp. Change-Id: Ic65ef6684637fbcd1c9f4fe1dc7a57f0624b61a8 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/dbus/qdbus_symbols.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dbus/qdbus_symbols.cpp b/src/dbus/qdbus_symbols.cpp
index 56e836c9ae..b82d92b561 100644
--- a/src/dbus/qdbus_symbols.cpp
+++ b/src/dbus/qdbus_symbols.cpp
@@ -81,6 +81,7 @@ bool qdbus_loadLibDBus()
return lib && lib->isLoaded();
lib = new QLibrary;
+ lib->setLoadHints(QLibrary::ExportExternalSymbolsHint); // make libdbus symbols available for apps that need more advanced control over the dbus
triedToLoadLibrary = true;
static int majorversions[] = { 3, 2, -1 };