path: root/src/dbus/qdbus_symbols_p.h
diff options
authorThiago Macieira <>2014-12-09 14:16:33 -0800
committerThiago Macieira <>2015-01-06 18:16:32 +0100
commitcf4b413fa4a81dbfaaaf50cb52f92ecc0d3c3f2a (patch)
tree5941f10bd4c147d9d274b3d7feb28d5e8cf12f1f /src/dbus/qdbus_symbols_p.h
parent1fc4053337b55c98b66de63b4fae223f1eb72563 (diff)
Make QtDBus unit tests compile with runtime dbus-1 too
There's a change in Qt 5.4.0 that makes Qt compile with its own set of D-Bus headers, which means QT_CFLAGS_DBUS may be empty. Thus, we can't compile or link if we're using the actual libdbus-1 API to build the test. This commit makes these unit tests use the same dynamic loading mechanism. Change-Id: I56b2a7320086ef88793f6552cb54ca6224010451 Reviewed-by: Simon Hausmann <>
Diffstat (limited to 'src/dbus/qdbus_symbols_p.h')
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dbus/qdbus_symbols_p.h b/src/dbus/qdbus_symbols_p.h
index 88c51947ed..0785fea4b4 100644
--- a/src/dbus/qdbus_symbols_p.h
+++ b/src/dbus/qdbus_symbols_p.h
@@ -107,6 +107,9 @@ DEFINEFUNC(dbus_bool_t , dbus_connection_add_filter, (DBusConnection
void *user_data,
DBusFreeFunction free_data_function),
(connection, function, user_data, free_data_function), return)
+DEFINEFUNC(dbus_bool_t , dbus_connection_can_send_type, (DBusConnection *connection,
+ int type),
+ (connection, type), return)
DEFINEFUNC(void , dbus_connection_close, (DBusConnection *connection),
(connection), return)
DEFINEFUNC(DBusDispatchStatus , dbus_connection_dispatch, (DBusConnection *connection),