diff options
author | Havoc Pennington <hp@redhat.com> | 2003-01-19 05:14:46 +0000 |
---|---|---|
committer | Havoc Pennington <hp@redhat.com> | 2003-01-19 05:14:46 +0000 |
commit | 14cc2707a0318381b5cc68588efc36f61d617b78 (patch) | |
tree | b15d245ad5ff5b650b72ed1aaeda1ed3bcefac30 /dbus/dbus-server-protected.h | |
parent | 502fbda2201a4e7e50d687f42af29c82e66299bb (diff) |
2003-01-19 Havoc Pennington <hp@pobox.com>
* dbus/dbus-connection.c (dbus_connection_get_is_authenticated):
new function
* dbus/dbus-server.c (dbus_server_set_max_connections)
(dbus_server_get_max_connections, dbus_server_get_n_connections):
keep track of current number of connections, and add API for
setting a max (but haven't implemented enforcing the max yet)
Diffstat (limited to 'dbus/dbus-server-protected.h')
-rw-r--r-- | dbus/dbus-server-protected.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/dbus/dbus-server-protected.h b/dbus/dbus-server-protected.h index fb57c2ee..5e1ad55e 100644 --- a/dbus/dbus-server-protected.h +++ b/dbus/dbus-server-protected.h @@ -26,6 +26,7 @@ #include <dbus/dbus-internals.h> #include <dbus/dbus-server.h> #include <dbus/dbus-watch.h> +#include <dbus/dbus-resources.h> DBUS_BEGIN_DECLS; @@ -51,7 +52,13 @@ struct DBusServer { int refcount; /**< Reference count. */ const DBusServerVTable *vtable; /**< Virtual methods for this instance. */ - DBusWatchList *watches; + DBusWatchList *watches; /**< Our watches */ + + DBusCounter *connection_counter; /**< Number of non-finalized DBusConnection + * to this server + */ + + int max_connections; /**< Max number of connections allowed at once. */ DBusNewConnectionFunction new_connection_function; /**< Callback to invoke when a new connection is created. */ |