summaryrefslogtreecommitdiffstats
path: root/bus/bus.h
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2003-04-24 22:30:38 +0000
committerHavoc Pennington <hp@redhat.com>2003-04-24 22:30:38 +0000
commit3185d7edde8ffc7672aa7d771966b0f1e0158aea (patch)
tree03f33d4ca7737d26badd04f2fd6ee95db0ffdba7 /bus/bus.h
parent1820f3bd0a5a4b0ab14dbcc80ba1b68d2c48e01d (diff)
2003-04-24 Havoc Pennington <hp@redhat.com>
* test/data/valid-config-files/basic.conf: add <limit> tags to this test * bus/config-parser.h, bus/config-parser.c, bus/bus.c: Implement <limit> tag in configuration file.
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);