summaryrefslogtreecommitdiffstats
path: root/dbus/dbus-transport.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-05-20 01:32:46 +0200
committerLennart Poettering <lennart@poettering.net>2009-05-20 02:09:32 +0200
commitbfad32422f1f78bce4de1e88a4afb5cc295bb877 (patch)
tree6c5a5eaa9b653c0b52ad897fb9da727f5c510973 /dbus/dbus-transport.h
parentec901d786f6de6e6f870279e2d955f491619c559 (diff)
unix-fd: add logic to count unix fds the same way as allocated memory
This make all counters count both bytes of memory and unix fds.
Diffstat (limited to 'dbus/dbus-transport.h')
-rw-r--r--dbus/dbus-transport.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/dbus/dbus-transport.h b/dbus/dbus-transport.h
index 4554faf3..994bf6e3 100644
--- a/dbus/dbus-transport.h
+++ b/dbus/dbus-transport.h
@@ -54,12 +54,21 @@ void _dbus_transport_do_iteration (DBusTransport
int timeout_milliseconds);
DBusDispatchStatus _dbus_transport_get_dispatch_status (DBusTransport *transport);
dbus_bool_t _dbus_transport_queue_messages (DBusTransport *transport);
+
void _dbus_transport_set_max_message_size (DBusTransport *transport,
long size);
long _dbus_transport_get_max_message_size (DBusTransport *transport);
void _dbus_transport_set_max_received_size (DBusTransport *transport,
long size);
long _dbus_transport_get_max_received_size (DBusTransport *transport);
+
+void _dbus_transport_set_max_message_unix_fds (DBusTransport *transport,
+ long n);
+long _dbus_transport_get_max_message_unix_fds (DBusTransport *transport);
+void _dbus_transport_set_max_received_unix_fds(DBusTransport *transport,
+ long n);
+long _dbus_transport_get_max_received_unix_fds(DBusTransport *transport);
+
dbus_bool_t _dbus_transport_get_socket_fd (DBusTransport *transport,
int *fd_p);
dbus_bool_t _dbus_transport_get_unix_user (DBusTransport *transport,