From 7265423411609c14ddb9e6643463b840afcaa09b Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Wed, 26 Feb 2003 06:42:57 +0000 Subject: 2003-02-26 Havoc Pennington * 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 --- glib/dbus-gthread.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'glib/dbus-gthread.c') diff --git a/glib/dbus-gthread.c b/glib/dbus-gthread.c index 8ed0a13a..71a3c1f5 100644 --- a/glib/dbus-gthread.c +++ b/glib/dbus-gthread.c @@ -25,6 +25,10 @@ #include #include "dbus-glib.h" +/** @addtogroup DBusGLibInternals + * @{ + */ + static DBusMutex * dbus_gmutex_new (void); static void dbus_gmutex_free (DBusMutex *mutex); static dbus_bool_t dbus_gmutex_lock (DBusMutex *mutex); @@ -149,7 +153,17 @@ dbus_gcondvar_wake_all (DBusCondVar *cond) g_cond_broadcast ((GCond *)cond); } +/** @} End of internals */ +/** @addtogroup DBusGLib + * @{ + */ +/** + * Initializes the D-BUS thread system to use + * GLib threads. This function may only be called + * once and must be called prior to calling any + * other function in the D-BUS API. + */ void dbus_gthread_init (void) { @@ -158,3 +172,5 @@ dbus_gthread_init (void) dbus_threads_init (&functions); } + +/** @} end of public API */ -- cgit