summaryrefslogtreecommitdiffstats
path: root/dbus/dbus-server.h
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2003-02-26 06:42:57 +0000
committerHavoc Pennington <hp@redhat.com>2003-02-26 06:42:57 +0000
commit7265423411609c14ddb9e6643463b840afcaa09b (patch)
tree199b4d4bee1531333292518bf83425eb01ad2fd3 /dbus/dbus-server.h
parent3781f063a6dfbdeafea6d1c6c8ac10c8b22f8586 (diff)
2003-02-26 Havoc Pennington <hp@pobox.com>
* dbus/dbus-connection.c (dbus_connection_send_message_with_reply_and_block): fix crash where we ref'd the outgoing message instead of the returned reply * dbus/dbus-transport-unix.c (do_authentication): check read watch at the end of this function, so if we didn't need to read for authentication, we reinstall it for receiving messages * dbus/dbus-message.c (dbus_message_new_reply): allow replies to a NULL sender for peer-to-peer case * dbus/dbus-transport-unix.c (check_read_watch): handle !authenticated case correctly * glib/dbus-gmain.c: add support for DBusServer * dbus/dbus-server.c: add data slot support * glib/dbus-gmain.c (dbus_connection_setup_with_g_main): check return values and handle errors * dbus/dbus-dataslot.c: factor out the data slot stuff from DBusConnection * Doxyfile.in (INPUT): add glib subdir * glib/dbus-gmain.c (dbus_connection_setup_with_g_main): rename setup_with_g_main instead of hookup_with_g_main; write docs
Diffstat (limited to 'dbus/dbus-server.h')
-rw-r--r--dbus/dbus-server.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/dbus/dbus-server.h b/dbus/dbus-server.h
index 68d95006..fc3a57e7 100644
--- a/dbus/dbus-server.h
+++ b/dbus/dbus-server.h
@@ -71,6 +71,15 @@ int dbus_server_get_max_connections (DBusServer *server)
int dbus_server_get_n_connections (DBusServer *server);
+int dbus_server_allocate_data_slot (void);
+void dbus_server_free_data_slot (int slot);
+dbus_bool_t dbus_server_set_data (DBusServer *server,
+ int slot,
+ void *data,
+ DBusFreeFunction free_data_func);
+void* dbus_server_get_data (DBusServer *server,
+ int slot);
+
DBUS_END_DECLS;
#endif /* DBUS_SERVER_H */