summaryrefslogtreecommitdiffstats
path: root/dbus/dbus-memory.c
diff options
context:
space:
mode:
Diffstat (limited to 'dbus/dbus-memory.c')
-rw-r--r--dbus/dbus-memory.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/dbus/dbus-memory.c b/dbus/dbus-memory.c
index 8efbec59..c42ef466 100644
--- a/dbus/dbus-memory.c
+++ b/dbus/dbus-memory.c
@@ -633,13 +633,19 @@ dbus_free_string_array (char **str_array)
*/
int _dbus_current_generation = 1;
+/**
+ * Represents a function to be called on shutdown.
+ */
typedef struct ShutdownClosure ShutdownClosure;
+/**
+ * This struct represents a function to be called on shutdown.
+ */
struct ShutdownClosure
{
- ShutdownClosure *next;
- DBusShutdownFunction func;
- void *data;
+ ShutdownClosure *next; /**< Next ShutdownClosure */
+ DBusShutdownFunction func; /**< Function to call */
+ void *data; /**< Data for function */
};
_DBUS_DEFINE_GLOBAL_LOCK (shutdown_funcs);