summaryrefslogtreecommitdiffstats
path: root/dbus/dbus-threads.h
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2003-01-06 01:08:14 +0000
committerHavoc Pennington <hp@redhat.com>2003-01-06 01:08:14 +0000
commit96a9f80300b7794475a5451a60a07555ea3526be (patch)
treeb70ac0b9f56edeebab51aa5389894c36cace2fe0 /dbus/dbus-threads.h
parentc92339de11a2f27198aee3b4242aa6fccc12a004 (diff)
2003-01-05 Havoc Pennington <hp@pobox.com>
* bus/connection.c: implement routines for handling connections, first thing is keeping a list of owned services on each connection and setting up watches etc. * bus/services.c: implement a mapping from service names to lists of connections * dbus/dbus-hash.c: add DBUS_HASH_POINTER * dbus/dbus-threads.c (dbus_static_mutex_lock): add functions to use static mutexes for global data * dbus/dbus-connection.c (dbus_connection_set_data): add new collection of functions to set/get application-specific data on the DBusConnection.
Diffstat (limited to 'dbus/dbus-threads.h')
-rw-r--r--dbus/dbus-threads.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/dbus/dbus-threads.h b/dbus/dbus-threads.h
index 956fac61..ddc270bb 100644
--- a/dbus/dbus-threads.h
+++ b/dbus/dbus-threads.h
@@ -75,7 +75,22 @@ void dbus_mutex_free (DBusMutex *mutex);
dbus_bool_t dbus_mutex_lock (DBusMutex *mutex);
dbus_bool_t dbus_mutex_unlock (DBusMutex *mutex);
-void dbus_threads_init (const DBusThreadFunctions *functions);
+dbus_bool_t dbus_threads_init (const DBusThreadFunctions *functions);
+
+typedef struct DBusStaticMutex DBusStaticMutex;
+
+struct DBusStaticMutex
+{
+ void *pad1;
+ void *pad2;
+ void *pad3;
+ void *pad4;
+};
+
+#define DBUS_STATIC_MUTEX_INIT { NULL, NULL, NULL, NULL }
+
+dbus_bool_t dbus_static_mutex_lock (DBusStaticMutex *mutex);
+dbus_bool_t dbus_static_mutex_unlock (DBusStaticMutex *mutex);
DBUS_END_DECLS;