summaryrefslogtreecommitdiffstats
path: root/bus/bus.h
diff options
context:
space:
mode:
Diffstat (limited to 'bus/bus.h')
-rw-r--r--bus/bus.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/bus/bus.h b/bus/bus.h
index e4e6dabe..7cffb33a 100644
--- a/bus/bus.h
+++ b/bus/bus.h
@@ -41,6 +41,19 @@ typedef struct BusRegistry BusRegistry;
typedef struct BusService BusService;
typedef struct BusTransaction BusTransaction;
+
+typedef struct
+{
+ long max_incoming_bytes; /**< How many incoming messages for a connection */
+ long max_outgoing_bytes; /**< How many outgoing bytes can be queued for a connection */
+ long max_message_size; /**< Max size of a single message in bytes */
+ int activation_timeout; /**< How long to wait for an activation to time out */
+ int auth_timeout; /**< How long to wait for an authentication to time out */
+ int max_completed_connections; /**< Max number of authorized connections */
+ int max_incomplete_connections; /**< Max number of incomplete connections */
+ int max_connections_per_user; /**< Max number of connections auth'd as same user */
+} BusLimits;
+
BusContext* bus_context_new (const DBusString *config_file,
int print_addr_fd,
DBusError *error);