path: root/src/dbus/qdbus_symbols_p.h
diff options
authorRoland Winklmeier <>2014-01-13 21:49:49 +0100
committerThe Qt Project <>2014-01-15 14:15:22 +0100
commit419a1f53d527583458da46d1508aab272fdf0280 (patch)
tree374c0a203d118e76a31f1bde3797c1ec01b76826 /src/dbus/qdbus_symbols_p.h
parent40133df06fea67ab3983b90844cc2a8f47e6e20c (diff)
Add method to QDBusServer to allow anonymous client connections.
This change adds a new method to QDBusServer to allow anonymous connections. This is part of the DBus API and was not yet possible to use with QDBusServer. It is set in the newConnection callback when a new client tries to connect. Anonymous connections are enabled by default in DBus but not allowed by default. [ChangeLog][QtDBus][QDBusServer] Added method to QDBusServer to allow anonymous client connections, even if the connecting client is not authenticated as a user. Change-Id: I984c9e634101ecd2e67bb25c8d12bb1071836fd3 Reviewed-by: Thiago Macieira <>
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 9e81bac30e..96f28ac821 100644
--- a/src/dbus/qdbus_symbols_p.h
+++ b/src/dbus/qdbus_symbols_p.h
@@ -183,6 +183,9 @@ DEFINEFUNC(unsigned int , dbus_watch_get_flags, (DBusWatch *watch),
DEFINEFUNC(dbus_bool_t , dbus_watch_handle, (DBusWatch *watch,
unsigned int flags),
(watch, flags), return)
+DEFINEFUNC(void , dbus_connection_set_allow_anonymous, (DBusConnection *connection,
+ dbus_bool_t value),
+ (connection, value), return)
/* dbus-errors.h */
DEFINEFUNC(void , dbus_error_free, (DBusError *error),