]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
2003-09-07 Havoc Pennington <hp@pobox.com>
authorHavoc Pennington <hp@redhat.com>
Sun, 7 Sep 2003 23:04:54 +0000 (23:04 +0000)
committerHavoc Pennington <hp@redhat.com>
Sun, 7 Sep 2003 23:04:54 +0000 (23:04 +0000)
* Make Doxygen contented.

43 files changed:
ChangeLog
Doxyfile.in
bus/config-parser.c
bus/desktop-file.c
bus/services.c
dbus/dbus-address.c
dbus/dbus-auth.c
dbus/dbus-connection.c
dbus/dbus-connection.h
dbus/dbus-dataslot.h
dbus/dbus-errors.c
dbus/dbus-errors.h
dbus/dbus-hash.c
dbus/dbus-hash.h
dbus/dbus-internals.c
dbus/dbus-keyring.c
dbus/dbus-mainloop.c
dbus/dbus-mainloop.h
dbus/dbus-marshal.c
dbus/dbus-md5.h
dbus/dbus-message-builder.c
dbus/dbus-message.c
dbus/dbus-message.h
dbus/dbus-object-tree.c
dbus/dbus-server-protected.h
dbus/dbus-sha.h
dbus/dbus-spawn.c
dbus/dbus-string.c
dbus/dbus-string.h
dbus/dbus-sysdeps.c
dbus/dbus-sysdeps.h
dbus/dbus-threads.h
dbus/dbus-timeout.c
dbus/dbus-transport-protected.h
dbus/dbus-userdb.c
dbus/dbus-watch.c
glib/dbus-gidl.c
glib/dbus-gidl.h
glib/dbus-glib.h
glib/dbus-gloader-expat.c
glib/dbus-gmain.c
glib/dbus-gparser.c
glib/dbus-gproxy.c

index 908229a8c5b17762b2614dd326b5eb6937c8a6e3..a4dba23f49c855f51a504605f56b7d59eb5791de 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2003-09-07  Havoc Pennington  <hp@pobox.com>
+
+       * Make Doxygen contented.
+
 2003-09-07  Havoc Pennington  <hp@pobox.com>
 
        * doc/dbus-specification.sgml: more updates
index b2ac9587977ff416e5dce94ab705a6451b3c6ba3..9648449a7e89520722b4e7bc593f3b98c0748b1e 100644 (file)
@@ -49,7 +49,7 @@ WARN_LOGFILE           =
 #---------------------------------------------------------------------------
 # configuration options related to the input files
 #---------------------------------------------------------------------------
-INPUT                  = dbus bus glib
+INPUT                  = dbus glib
 FILE_PATTERNS          = *.c *.h
 RECURSIVE              = YES
 #EXCLUDE                = test
index 2a7d075230e4de735b2160dc1ed450946b8c48ff..cbc239f952adeb9baaddddddcabd73ab5b34f412 100644 (file)
@@ -88,9 +88,12 @@ typedef struct
 
 } Element;
 
+/**
+ * Parser for bus configuration file. 
+ */
 struct BusConfigParser
 {
-  int refcount;
+  int refcount;        /**< Reference count */
 
   DBusString basedir;  /**< Directory we resolve paths relative to */
   
index 08af768ef23bb43f93b99ba1a19beeb311ec2c93..dd621214bb46f01dd24d38b2ce5b750c6928704e 100644 (file)
@@ -48,15 +48,19 @@ struct BusDesktopFile
   int n_allocated_sections;
 };
 
+/**
+ * Parser for service files.
+ */
 typedef struct
 {
-  DBusString data;
+  DBusString data; /**< The data from the file */
 
-  BusDesktopFile *desktop_file;
-  int current_section;
+  BusDesktopFile *desktop_file; /**< The resulting object */
+  int current_section;    /**< The current section being parsed */
   
-  int pos, len;
-  int line_num;
+  int pos;          /**< Current position */
+  int len;          /**< Length */
+  int line_num;     /**< Current line number */
   
 } BusDesktopFileParser;
 
index 5148f1f1a56e951fa87c0ce99fe143ef20b43ddd..84cabe210cabcb2e44de90f069b12d29dad801f8 100644 (file)
@@ -417,10 +417,14 @@ bus_service_relink (BusService           *service,
   bus_service_ref (service);
 }
 
+/**
+ * Data used to represent an ownership cancellation in
+ * a bus transaction.
+ */
 typedef struct
 {
-  DBusConnection *connection;
-  BusService *service;
+  DBusConnection *connection; /**< the connection */
+  BusService *service;        /**< service to cancel ownership of */
 } OwnershipCancelData;
 
 static void
index 89dac41ec5d000b01ee67205a600c10a872cd4b4..97af49fd30fd52c6ccfe7ff4096f5300f5838790 100644 (file)
 #include "dbus-string.h"
 
 /**
- * @defgroup DBusAddress Address parsing
- * @ingroup  DBus
- * @brief Parsing addresses of D-BUS servers.
+ * @defgroup DBusAddressInternals Address parsing
+ * @ingroup  DBusInternals
+ * @brief Implementation of parsing addresses of D-BUS servers.
  *
  * @{
  */
+
+/**
+ * Internals of DBusAddressEntry 
+ */
 struct DBusAddressEntry
 {
-  DBusString method;
+  DBusString method; /**< The address type (unix, tcp, etc.) */
 
-  DBusList *keys;
-  DBusList *values;
+  DBusList *keys;    /**< List of keys */
+  DBusList *values;  /**< List of values */
 };
 
+/** @} */ /* End of internals */
+
 static void
 dbus_address_entry_free (DBusAddressEntry *entry)
 {
@@ -72,6 +78,13 @@ dbus_address_entry_free (DBusAddressEntry *entry)
   dbus_free (entry);
 }
 
+/**
+ * @defgroup DBusAddress Address parsing
+ * @ingroup  DBus
+ * @brief Parsing addresses of D-BUS servers.
+ *
+ * @{
+ */
 
 /**
  * Frees a #NULL-terminated array of address entries.
@@ -372,7 +385,7 @@ dbus_parse_address (const char         *address,
 }
 
 
-/** @} */
+/** @} */ /* End of public API */
 
 #ifdef DBUS_BUILD_TESTS
 #include "dbus-test.h"
index 95910445d1ac1cf043686ca4295601ef8f432b22..90c72fd513a920256b5996d3c89ac3bb763183ca 100644 (file)
@@ -73,10 +73,13 @@ typedef dbus_bool_t (* DBusProcessAuthCommandFunction) (DBusAuth         *auth,
                                                         const DBusString *command,
                                                         const DBusString *args);
 
+/**
+ * Handler for a given auth protocol command
+ */
 typedef struct
 {
-  const char *command;
-  DBusProcessAuthCommandFunction func;
+  const char *command; /**< Name of the command */
+  DBusProcessAuthCommandFunction func; /**< Function to handle the command */
 } DBusAuthCommandHandler;
 
 /**
@@ -111,18 +114,21 @@ typedef dbus_bool_t (* DBusAuthDecodeFunction)   (DBusAuth         *auth,
  */
 typedef void        (* DBusAuthShutdownFunction) (DBusAuth       *auth);
 
+/**
+ * Virtual table representing a particular auth mechanism.
+ */
 typedef struct
 {
-  const char *mechanism;
-  DBusAuthDataFunction server_data_func;
-  DBusAuthEncodeFunction server_encode_func;
-  DBusAuthDecodeFunction server_decode_func;
-  DBusAuthShutdownFunction server_shutdown_func;
-  DBusInitialResponseFunction client_initial_response_func;
-  DBusAuthDataFunction client_data_func;
-  DBusAuthEncodeFunction client_encode_func;
-  DBusAuthDecodeFunction client_decode_func;
-  DBusAuthShutdownFunction client_shutdown_func;
+  const char *mechanism; /**< Name of the mechanism */
+  DBusAuthDataFunction server_data_func; /**< Function on server side for DATA */
+  DBusAuthEncodeFunction server_encode_func; /**< Function on server side to encode */
+  DBusAuthDecodeFunction server_decode_func; /**< Function on server side to decode */
+  DBusAuthShutdownFunction server_shutdown_func; /**< Function on server side to shut down */
+  DBusInitialResponseFunction client_initial_response_func; /**< Function on client side to handle initial response */
+  DBusAuthDataFunction client_data_func; /**< Function on client side for DATA */
+  DBusAuthEncodeFunction client_encode_func; /**< Function on client side for encode */
+  DBusAuthDecodeFunction client_decode_func; /**< Function on client side for decode */
+  DBusAuthShutdownFunction client_shutdown_func; /**< Function on client side for shutdown */
 } DBusAuthMechanismHandler;
 
 /**
@@ -172,17 +178,23 @@ struct DBusAuth
   unsigned int buffer_outstanding : 1; /**< Buffer is "checked out" for reading data into */
 };
 
+/**
+ * "Subclass" of DBusAuth for client side
+ */
 typedef struct
 {
-  DBusAuth base;
+  DBusAuth base;    /**< Parent class */
 
   DBusList *mechs_to_try; /**< Mechanisms we got from the server that we're going to try using */
   
 } DBusAuthClient;
 
+/**
+ * "Subclass" of DBusAuth for server side.
+ */
 typedef struct
 {
-  DBusAuth base;
+  DBusAuth base;    /**< Parent class */
 
   int failures;     /**< Number of times client has been rejected */
   int max_failures; /**< Number of times we reject before disconnect */
index b8e67c14ee6635c38425f36962693ba00f924f1f..bab6ffd8f365457b07640c57e8a7133ddf54f5cf 100644 (file)
  * @{
  */
 
+/**
+ * Internal struct representing a message filter function 
+ */
 typedef struct DBusMessageFilter DBusMessageFilter;
 
+/**
+ * Internal struct representing a message filter function 
+ */
 struct DBusMessageFilter
 {
-  DBusAtomic refcount;
-  DBusHandleMessageFunction function;
-  void *user_data;
-  DBusFreeFunction free_user_data_function;
+  DBusAtomic refcount; /**< Reference count */
+  DBusHandleMessageFunction function; /**< Function to call to filter */
+  void *user_data; /**< User data for the function */
+  DBusFreeFunction free_user_data_function; /**< Function to free the user data */
+};
+
+
+/**
+ * Internals of DBusPreallocatedSend
+ */
+struct DBusPreallocatedSend
+{
+  DBusConnection *connection; /**< Connection we'd send the message to */
+  DBusList *queue_link;       /**< Preallocated link in the queue */
+  DBusList *counter_link;     /**< Preallocated link in the resource counter */
 };
 
 static dbus_bool_t _dbus_modify_sigpipe = TRUE;
@@ -1339,13 +1356,6 @@ dbus_connection_get_is_authenticated (DBusConnection *connection)
   return res;
 }
 
-struct DBusPreallocatedSend
-{
-  DBusConnection *connection;
-  DBusList *queue_link;
-  DBusList *counter_link;
-};
-
 static DBusPreallocatedSend*
 _dbus_connection_preallocate_send_unlocked (DBusConnection *connection)
 {
@@ -2992,7 +3002,8 @@ dbus_connection_add_filter (DBusConnection            *connection,
  * instance).
  *
  * @param connection the connection
- * @param handler the handler to remove
+ * @param function the handler to remove
+ * @param user_data user data for the handler to remove
  *
  */
 void
index bbdbcda8501a10167e06479610c56e3563edff5e..abc88056e2246ee07ab3fd6ef755f554a184e7fa 100644 (file)
@@ -214,15 +214,19 @@ typedef DBusHandlerResult (* DBusObjectPathMessageFunction)    (DBusConnection
                                                                 DBusMessage     *message,
                                                                 void            *user_data);
 
+/**
+ * Virtual table that must be implemented to handle a portion of the
+ * object path hierarchy.
+ */
 struct DBusObjectPathVTable
 {
-  DBusObjectPathUnregisterFunction   unregister_function;
-  DBusObjectPathMessageFunction      message_function;
+  DBusObjectPathUnregisterFunction   unregister_function; /**< Function to unregister this handler */
+  DBusObjectPathMessageFunction      message_function; /**< Function to handle messages */
   
-  void (* dbus_internal_pad1) (void *);
-  void (* dbus_internal_pad2) (void *);
-  void (* dbus_internal_pad3) (void *);
-  void (* dbus_internal_pad4) (void *);
+  void (* dbus_internal_pad1) (void *); /**< Reserved for future expansion */
+  void (* dbus_internal_pad2) (void *); /**< Reserved for future expansion */
+  void (* dbus_internal_pad3) (void *); /**< Reserved for future expansion */
+  void (* dbus_internal_pad4) (void *); /**< Reserved for future expansion */
 };
 
 dbus_bool_t dbus_connection_register_object_path   (DBusConnection              *connection,
index 6f591eb5f84863402cb12c3e2d2f26fee2fe554c..c4a914b4ebad0a2faee31383db7adc87f29432eb 100644 (file)
@@ -40,12 +40,18 @@ struct DBusDataSlot
 };
 
 typedef struct DBusAllocatedSlot DBusAllocatedSlot;
+
+/** An allocated slot for storing data
+ */
 struct DBusAllocatedSlot
 {
   dbus_int32_t slot_id;  /**< ID of this slot */
   int          refcount; /**< Number of uses of the slot */
 };
 
+/**
+ * An allocator that tracks a set of slot IDs.
+ */
 struct DBusDataSlotAllocator
 {
   DBusAllocatedSlot *allocated_slots; /**< Allocated slots */
@@ -54,6 +60,10 @@ struct DBusDataSlotAllocator
   DBusMutex *lock;        /**< thread lock */
 };
 
+/**
+ * Data structure that stores the actual user data set at a given
+ * slot.
+ */
 struct DBusDataSlotList
 {
   DBusDataSlot *slots;   /**< Data slots */
index 82e480251fa9314ab561b97de08af2c0a83f01cd..f7b2f7406dd034f394f0cfda1e9b06982cc6c2dc 100644 (file)
 #include <string.h>
 
 /**
- * @defgroup DBusErrors Error reporting
- * @ingroup  DBus
- * @brief Error reporting
- *
- * Types and functions related to reporting errors.
- *
- *
- * In essence D-BUS error reporting works as follows:
- *
- * @code
- * DBusError error;
- * dbus_error_init (&error);
- * dbus_some_function (arg1, arg2, &error);
- * if (dbus_error_is_set (&error))
- *   {
- *     fprintf (stderr, "an error occurred: %s\n", error.message);
- *     dbus_error_free (&error);
- *   }
- * @endcode
- *
- * There are some rules. An error passed to a D-BUS function must
- * always be unset; you can't pass in an error that's already set.  If
- * a function has a return code indicating whether an error occurred,
- * and also a #DBusError parameter, then the error will always be set
- * if and only if the return code indicates an error occurred. i.e.
- * the return code and the error are never going to disagree.
- *
- * An error only needs to be freed if it's been set, not if
- * it's merely been initialized.
- *
- * You can check the specific error that occurred using
- * dbus_error_has_name().
- * 
+ * @defgroup DBusErrorInternals Error reporting internals
+ * @ingroup  DBusInternals
+ * @brief Error reporting internals
  * @{
  */
-
+/**
+ * Internals of DBusError
+ */
 typedef struct
 {
   const char *name; /**< error name */
   char *message; /**< error message */
 
-  unsigned int const_message : 1; /** Message is not owned by DBusError */
+  unsigned int const_message : 1; /**< Message is not owned by DBusError */
 
   unsigned int dummy2 : 1; /**< placeholder */
   unsigned int dummy3 : 1; /**< placeholder */
@@ -127,6 +100,45 @@ message_from_error (const char *error)
     return error;
 }
 
+/** @} */ /* End of internals */
+
+/**
+ * @defgroup DBusErrors Error reporting
+ * @ingroup  DBus
+ * @brief Error reporting
+ *
+ * Types and functions related to reporting errors.
+ *
+ *
+ * In essence D-BUS error reporting works as follows:
+ *
+ * @code
+ * DBusError error;
+ * dbus_error_init (&error);
+ * dbus_some_function (arg1, arg2, &error);
+ * if (dbus_error_is_set (&error))
+ *   {
+ *     fprintf (stderr, "an error occurred: %s\n", error.message);
+ *     dbus_error_free (&error);
+ *   }
+ * @endcode
+ *
+ * There are some rules. An error passed to a D-BUS function must
+ * always be unset; you can't pass in an error that's already set.  If
+ * a function has a return code indicating whether an error occurred,
+ * and also a #DBusError parameter, then the error will always be set
+ * if and only if the return code indicates an error occurred. i.e.
+ * the return code and the error are never going to disagree.
+ *
+ * An error only needs to be freed if it's been set, not if
+ * it's merely been initialized.
+ *
+ * You can check the specific error that occurred using
+ * dbus_error_has_name().
+ * 
+ * @{
+ */
+
 /**
  * Initializes a DBusError structure. Does not allocate
  * any memory; the error only needs to be freed
@@ -358,4 +370,4 @@ dbus_set_error (DBusError  *error,
   dbus_set_error_const (error, DBUS_ERROR_NO_MEMORY, NULL);      
 }
 
-/** @} */
+/** @} */ /* End public API */
index ca398a0b508af53335ac9954c633271f0a4a03e1..ad4801c9cfd3463a3455f21f1e6cb32503dda19d 100644 (file)
@@ -35,6 +35,9 @@ DBUS_BEGIN_DECLS;
 
 typedef struct DBusError DBusError;
 
+/**
+ * Object representing an exception.
+ */
 struct DBusError
 {
   const char *name;    /**< error name */
index 044dc534feec2ab07c3e09ba4ed5ae1cb97f9e08..d35087b4b812fd6b977c8a808a05b426a7d62e74 100644 (file)
@@ -865,6 +865,7 @@ two_strings_hash (const char *str)
   return h;
 }
 
+/** Key comparison function */
 typedef int (* KeyCompareFunc) (const void *key_a, const void *key_b);
 
 static DBusHashEntry*
index 25b81dd61e4a6fbcd089cc37f88e69f09573a023..5e7515f92485bc7f1de6d165ecb76e22cfc28f02 100644 (file)
 
 DBUS_BEGIN_DECLS;
 
-/* The iterator is on the stack, but its real fields are
- * hidden privately.
+/** Hash iterator object. The iterator is on the stack, but its real
+ * fields are hidden privately.
  */
 struct DBusHashIter
 {
-  void *dummy1;
-  void *dummy2;
-  void *dummy3;
-  void *dummy4;
-  int   dummy5;
-  int   dummy6;
+  void *dummy1; /**< Do not use. */
+  void *dummy2; /**< Do not use. */
+  void *dummy3; /**< Do not use. */
+  void *dummy4; /**< Do not use. */
+  int   dummy5; /**< Do not use. */
+  int   dummy6; /**< Do not use. */
 };
 
 typedef struct DBusHashTable DBusHashTable;
@@ -53,7 +53,7 @@ typedef struct DBusHashIter  DBusHashIter;
 typedef enum
 {
   DBUS_HASH_STRING,        /**< Hash keys are strings. */
-  DBUS_HASH_TWO_STRINGS,   /**< Hash key is two strings in one memory block, i.e. foo\0bar\0 */
+  DBUS_HASH_TWO_STRINGS,   /**< Hash key is two strings in one memory block, i.e. foo\\0bar\\0 */
   DBUS_HASH_INT,           /**< Hash keys are integers. */
   DBUS_HASH_POINTER,       /**< Hash keys are pointers. */
   DBUS_HASH_ULONG          /**< Hash keys are unsigned long. */
index 47a2b404620c2ccb10d6c3ae33538f761011352b..463e62e1d763a053f964b0e6d0b0473f74250b3a 100644 (file)
@@ -390,6 +390,7 @@ _dbus_type_to_string (int type)
 }
 
 #ifndef DBUS_DISABLE_CHECKS
+/** String used in _dbus_return_if_fail macro */
 const char _dbus_return_if_fail_warning_format[] =
 "Arguments to %s were incorrect, assertion \"%s\" failed in file %s line %d.\n"
 "This is normally a bug in some application using the D-BUS library.\n";
index b5974af03d8124143f99f260612548375a994d54..e091d8015c78934447550e744a51fd6b20aee801 100644 (file)
@@ -85,6 +85,9 @@
 #define MAX_KEYS_IN_FILE 256
 #endif
 
+/**
+ * A single key from the cookie file
+ */
 typedef struct
 {
   dbus_int32_t id; /**< identifier used to refer to the key */
index 51eb7b0df2d946ebbe95250a3d55e9de96eb5293..f3b682722bb76e59d918cd7166d033cca91ac226 100644 (file)
@@ -23,6 +23,8 @@
 
 #include "dbus-mainloop.h"
 
+#ifndef DOXYGEN_SHOULD_SKIP_THIS
+
 #include <dbus/dbus-list.h>
 #include <dbus/dbus-sysdeps.h>
 
@@ -876,3 +878,4 @@ _dbus_wait_for_memory (void)
   _dbus_sleep_milliseconds (_dbus_get_oom_wait ());
 }
 
+#endif /* DOXYGEN_SHOULD_SKIP_THIS */
index ac5731f50058338d8755f78cb5b37a9393053818..8a3cde13445f06d653d3c713a05bd2d6d68526ff 100644 (file)
@@ -24,6 +24,8 @@
 #ifndef DBUS_MAINLOOP_H
 #define DBUS_MAINLOOP_H
 
+#ifndef DOXYGEN_SHOULD_SKIP_THIS
+
 #include <dbus/dbus.h>
 
 typedef struct DBusLoop DBusLoop;
@@ -68,4 +70,7 @@ dbus_bool_t _dbus_loop_dispatch       (DBusLoop            *loop);
 int  _dbus_get_oom_wait    (void);
 void _dbus_wait_for_memory (void);
 
+#endif /* DOXYGEN_SHOULD_SKIP_THIS */
+
 #endif /* DBUS_MAINLOOP_H */
+
index c542ee8b598b47dcc2172a42805340533e652b30..3d6184e9dda2538fc4ac23bffcdc8a3a97ef6660 100644 (file)
@@ -73,13 +73,17 @@ swap_bytes (unsigned char *data,
 }
 #endif /* !DBUS_HAVE_INT64 */
 
+/**
+ * Union used to manipulate 8 bytes as if they
+ * were various types. 
+ */
 typedef union
 {
 #ifdef DBUS_HAVE_INT64
-  dbus_int64_t  s;
-  dbus_uint64_t u;
+  dbus_int64_t  s; /**< 64-bit integer */
+  dbus_uint64_t u; /**< 64-bit unsinged integer */
 #endif
-  double d;
+  double d;        /**< double */
 } DBusOctets8;
 
 static DBusOctets8
@@ -1470,6 +1474,7 @@ _dbus_demarshal_string_array (const DBusString   *str,
   return FALSE;
 }
 
+/** Set to 1 to get a bunch of spew about disassembling the path string */
 #define VERBOSE_DECOMPOSE 0
 
 /**
index 63fc62e845668d3e434745a30b20a68944fd075b..e31711ddc014155b13d303a0b25a05e10822ed3d 100644 (file)
@@ -31,11 +31,14 @@ DBUS_BEGIN_DECLS;
 
 typedef struct DBusMD5Context DBusMD5Context;
 
+/**
+ * A context used to store the state of the MD5 algorithm
+ */
 struct DBusMD5Context
 {
-  dbus_uint32_t count[2];       /* message length in bits, lsw first */
-  dbus_uint32_t abcd[4];        /* digest buffer */
-  unsigned char buf[64];        /* accumulate block */
+  dbus_uint32_t count[2];       /**< message length in bits, lsw first */
+  dbus_uint32_t abcd[4];        /**< digest buffer */
+  unsigned char buf[64];        /**< accumulate block */
 };
 
 void        _dbus_md5_init    (DBusMD5Context   *context);
index 6d16231008db54261adec0680c59fb05685103c7..52c78227a4e17679c955046ccfe5a3365c2395fd 100644 (file)
  * @{
  */
 
+/**
+ * Saved length
+ */
 typedef struct
 {
-  DBusString name;
+  DBusString name; /**< Name of the length */
   int start;  /**< Calculate length since here */
   int length; /**< length to write */
   int offset; /**< where to write it into the data */
index 090bdfc70d762bbab5fb2a61d75ad769eaa94cda..d62cbf4f955818b6c0178760566db5298752cecc 100644 (file)
@@ -72,6 +72,9 @@ static dbus_bool_t field_is_named[FIELD_LAST] =
   TRUE   /* FIELD_REPLY_SERIAL */
 };
 
+/**
+ * Cached information about a header field in the message
+ */
 typedef struct
 {
   int offset; /**< Offset to start of field (location of name of field
@@ -79,9 +82,13 @@ typedef struct
                */
 } HeaderField;
 
+/** Offset to byte order from start of header */
 #define BYTE_ORDER_OFFSET   0
+/** Offset to type from start of header */
 #define TYPE_OFFSET         1
+/** Offset to flags from start of header */
 #define FLAGS_OFFSET        2
+/** Offset to version from start of header */
 #define VERSION_OFFSET      3
 
 /**
@@ -1161,6 +1168,7 @@ dbus_message_new_method_return (DBusMessage *method_call)
  * A signal is identified by its originating interface, and
  * the name of the signal.
  *
+ * @param path the path to the object emitting the signal
  * @param interface the interface the signal is emitted from
  * @param name name of the signal
  * @returns a new DBusMessage, free with dbus_message_unref()
@@ -1576,7 +1584,7 @@ dbus_message_get_member (DBusMessage *message)
  * The name is fully-qualified (namespaced).
  *
  * @param message the message
- * @param name the name
+ * @param error_name the name
  * @returns #FALSE if not enough memory
  */
 dbus_bool_t
index def65379eb27fdc68f901d3714043346a46c8c18..888fe8620998c0a71206886bbe45811e2e5ffdab 100644 (file)
@@ -39,22 +39,25 @@ DBUS_BEGIN_DECLS;
 typedef struct DBusMessage DBusMessage;
 typedef struct DBusMessageIter DBusMessageIter;
 
+/**
+ * DBusMessageIter struct; contains no public fields 
+ */
 struct DBusMessageIter
-{
-  void *dummy1;
-  void *dummy2;
-  dbus_uint32_t dummy3;
-  int dummy4;
-  int dummy5;
-  int dummy6;
-  int dummy7;
-  int dummy8;
-  int dummy9;
-  int dummy10;
-  int dummy11;
-  int pad1;
-  int pad2;
-  void *pad3;
+{ 
+  void *dummy1;         /**< Don't use this */
+  void *dummy2;         /**< Don't use this */
+  dbus_uint32_t dummy3; /**< Don't use this */
+  int dummy4;           /**< Don't use this */
+  int dummy5;           /**< Don't use this */
+  int dummy6;           /**< Don't use this */
+  int dummy7;           /**< Don't use this */
+  int dummy8;           /**< Don't use this */
+  int dummy9;           /**< Don't use this */
+  int dummy10;          /**< Don't use this */
+  int dummy11;          /**< Don't use this */
+  int pad1;             /**< Don't use this */
+  int pad2;             /**< Don't use this */
+  void *pad3;           /**< Don't use this */
 };
 
 DBusMessage* dbus_message_new               (int          message_type);
index 8430b323804ae88e019aa7391022c9c981a8b6f3..9922dec48de4bca9645222801f67c72ee56e392b 100644 (file)
@@ -45,6 +45,7 @@
  * @{
  */
 
+/** Subnode of the object hierarchy */
 typedef struct DBusObjectSubtree DBusObjectSubtree;
 
 static DBusObjectSubtree* _dbus_object_subtree_new   (const char                  *name,
@@ -53,28 +54,43 @@ static DBusObjectSubtree* _dbus_object_subtree_new   (const char
 static void               _dbus_object_subtree_ref   (DBusObjectSubtree           *subtree);
 static void               _dbus_object_subtree_unref (DBusObjectSubtree           *subtree);
 
+/**
+ * Internals of DBusObjectTree
+ */
 struct DBusObjectTree
 {
-  int                 refcount;
-  DBusConnection     *connection;
+  int                 refcount;   /**< Reference count */
+  DBusConnection     *connection; /**< Connection this tree belongs to */
 
-  DBusObjectSubtree  *root;
+  DBusObjectSubtree  *root;       /**< Root of the tree ("/" node) */
 };
 
+/**
+ * Struct representing a single registered subtree handler, or node
+ * that's a parent of a registered subtree handler. If
+ * message_function != NULL there's actually a handler at this node.
+ */
 struct DBusObjectSubtree
 {
-  DBusAtomic                         refcount;
-  DBusObjectSubtree                 *parent;
-  DBusObjectPathUnregisterFunction   unregister_function;
-  DBusObjectPathMessageFunction      message_function;
-  void                              *user_data;
-  DBusObjectSubtree                **subtrees;
-  int                                n_subtrees;
-  unsigned int                       subtrees_sorted : 1;
-  unsigned int                       invoke_as_fallback : 1;
+  DBusAtomic                         refcount;            /**< Reference count */
+  DBusObjectSubtree                 *parent;              /**< Parent node */
+  DBusObjectPathUnregisterFunction   unregister_function; /**< Function to call on unregister */
+  DBusObjectPathMessageFunction      message_function;    /**< Function to handle messages */
+  void                              *user_data;           /**< Data for functions */
+  DBusObjectSubtree                **subtrees;            /**< Child nodes */
+  int                                n_subtrees;          /**< Number of child nodes */
+  unsigned int                       subtrees_sorted : 1; /**< Whether children are sorted */
+  unsigned int                       invoke_as_fallback : 1; /**< Whether to invoke message_function when child nodes don't handle the message */
   char                               name[1]; /**< Allocated as large as necessary */
 };
 
+/**
+ * Creates a new object tree, representing a mapping from paths
+ * to handler vtables.
+ *
+ * @param connection the connection this tree belongs to
+ * @returns the new tree or #NULL if no memory
+ */
 DBusObjectTree*
 _dbus_object_tree_new (DBusConnection *connection)
 {
@@ -107,6 +123,10 @@ _dbus_object_tree_new (DBusConnection *connection)
   return NULL;
 }
 
+/**
+ * Increment the reference count
+ * @param tree the object tree
+ */
 void
 _dbus_object_tree_ref (DBusObjectTree *tree)
 {
@@ -115,6 +135,10 @@ _dbus_object_tree_ref (DBusObjectTree *tree)
   tree->refcount += 1;
 }
 
+/**
+ * Decrement the reference count
+ * @param tree the object tree
+ */
 void
 _dbus_object_tree_unref (DBusObjectTree *tree)
 {
@@ -160,6 +184,9 @@ ensure_sorted (DBusObjectSubtree *subtree)
     }
 }
 
+/** Set to 1 to get a bunch of debug spew about finding the
+ * subtree nodes
+ */
 #define VERBOSE_FIND 0
 
 static DBusObjectSubtree*
@@ -855,11 +882,14 @@ spew_tree (DBusObjectTree *tree)
   spew_subtree_recurse (tree->root, 0);
 }
 
+/**
+ * Callback data used in tests
+ */
 typedef struct
 {
-  const char **path;
-  dbus_bool_t message_handled;
-  dbus_bool_t handler_unregistered;
+  const char **path; /**< Path */
+  dbus_bool_t message_handled; /**< Gets set to true if message handler called */
+  dbus_bool_t handler_unregistered; /**< gets set to true if handler is unregistered */
 
 } TreeTestData;
 
index a3774c31048f22a190595c4e1de55a8dc1f7b946..317805f5894c08bbe086d627046b610055bd8f36 100644 (file)
@@ -34,6 +34,9 @@ DBUS_BEGIN_DECLS;
 
 typedef struct DBusServerVTable DBusServerVTable;
 
+/**
+ * Virtual table to be implemented by all server "subclasses"
+ */
 struct DBusServerVTable
 {
   void        (* finalize)      (DBusServer *server);
@@ -43,6 +46,9 @@ struct DBusServerVTable
   /**< Disconnect this server. */
 };
 
+/**
+ * Internals of DBusServer object
+ */
 struct DBusServer
 {
   int refcount;                               /**< Reference count. */
index 7f79384479381de61e85c7610f450149f5447b7f..0a48d19734d8681f5ca6b32a19f147bfbd451a1a 100644 (file)
@@ -31,11 +31,14 @@ DBUS_BEGIN_DECLS;
 
 typedef struct DBusSHAContext DBusSHAContext;
 
+/**
+ * Struct storing state of the SHA algorithm
+ */
 struct DBusSHAContext
 {
   dbus_uint32_t  digest[5];         /**< Message digest */
   dbus_uint32_t  count_lo;          /**< 64-bit bit count */
-  dbus_uint32_t  count_hi;
+  dbus_uint32_t  count_hi;          /**< No clue */
   dbus_uint32_t  data[16];          /**< SHA data buffer */
 };
 
index d40155616f813db8110b8e86ad239a65d7e99214..604b9e7c65f11f6706540f6e99f664cf69f1a4d3 100644 (file)
@@ -176,28 +176,31 @@ enum
   CHILD_PID                /* Followed by pid_t */
 };
 
+/**
+ * Babysitter implementation details
+ */
 struct DBusBabysitter
 {
-  int refcount;
+  int refcount; /**< Reference count */
 
   char *executable; /**< executable name to use in error messages */
   
-  int socket_to_babysitter;
-  int error_pipe_from_child;
+  int socket_to_babysitter; /**< Connection to the babysitter process */
+  int error_pipe_from_child; /**< Connection to the process that does the exec() */
   
-  pid_t sitter_pid;
-  pid_t grandchild_pid;
+  pid_t sitter_pid;  /**< PID Of the babysitter */
+  pid_t grandchild_pid; /**< PID of the grandchild */
 
-  DBusWatchList *watches;
+  DBusWatchList *watches; /**< Watches */
 
-  DBusWatch *error_watch;
-  DBusWatch *sitter_watch;
+  DBusWatch *error_watch; /**< Error pipe watch */
+  DBusWatch *sitter_watch; /**< Sitter pipe watch */
 
-  int errnum;
-  int status;
-  unsigned int have_child_status : 1;
-  unsigned int have_fork_errnum : 1;
-  unsigned int have_exec_errnum : 1;
+  int errnum; /**< Error number */
+  int status; /**< Exit status code */
+  unsigned int have_child_status : 1; /**< True if child status has been reaped */
+  unsigned int have_fork_errnum : 1; /**< True if we have an error code from fork() */
+  unsigned int have_exec_errnum : 1; /**< True if we have an error code from exec() */
 };
 
 static DBusBabysitter*
index 54dbdb7fb86008e131f79e04342509035046c8c6..403636860a12715ac817665654a84cf895cba441 100644 (file)
@@ -1807,7 +1807,7 @@ _dbus_string_skip_white (const DBusString *str,
 }
 
 /**
- * Assigns a newline-terminated or \r\n-terminated line from the front
+ * Assigns a newline-terminated or \\r\\n-terminated line from the front
  * of the string to the given dest string. The dest string's previous
  * contents are deleted. If the source string contains no newline,
  * moves the entire source string to the dest string.
index 761ad48775a9ead233a96e6376b09da80bb25c6e..70e83b335fb271dd5651bf1ec100cb88175abf48 100644 (file)
@@ -34,6 +34,9 @@
 
 DBUS_BEGIN_DECLS;
 
+/**
+ * DBusString object
+ */
 struct DBusString
 {
   void *dummy1; /**< placeholder */
index 5311b202fe2b216a01aaf08337e2982e0b03095d..c3ddf8cde0c17a3fcabc0c070aeabaed824ce709 100644 (file)
@@ -2515,9 +2515,12 @@ _dbus_path_is_absolute (const DBusString *filename)
     return FALSE;
 }
 
+/**
+ * Internals of directory iterator
+ */
 struct DBusDirIter
 {
-  DIR *d;
+  DIR *d; /**< The DIR* from opendir() */
   
 };
 
index bfdcfb0aaa8a22125603a536c9e459d1b659d9da..363f665d4b1662b10f96674d114babc1b2867560 100644 (file)
@@ -97,12 +97,14 @@ typedef unsigned long dbus_gid_t;
 #define DBUS_UID_FORMAT "%lu"
 #define DBUS_GID_FORMAT "%lu"
 
+/**
+ * Struct representing socket credentials
+ */
 typedef struct
 {
-  /* Set to DBUS_PID_UNSET etc. if not available */
-  dbus_pid_t pid;
-  dbus_uid_t uid;
-  dbus_gid_t gid;
+  dbus_pid_t pid; /**< process ID or DBUS_PID_UNSET */
+  dbus_uid_t uid; /**< user ID or DBUS_UID_UNSET */
+  dbus_gid_t gid; /**< group ID or DBUS_GID_UNSET */
 } DBusCredentials;
 
 int _dbus_connect_unix_socket (const char     *path,
@@ -135,6 +137,9 @@ dbus_bool_t _dbus_credentials_match                (const DBusCredentials *expec
 typedef struct DBusUserInfo  DBusUserInfo;
 typedef struct DBusGroupInfo DBusGroupInfo;
 
+/**
+ * Information about a UNIX user
+ */
 struct DBusUserInfo
 {
   dbus_uid_t  uid;            /**< UID */
@@ -145,6 +150,9 @@ struct DBusUserInfo
   char       *homedir;        /**< Home directory */
 };
 
+/**
+ * Information about a UNIX group
+ */
 struct DBusGroupInfo
 {
   dbus_gid_t  gid;            /**< GID */
@@ -173,9 +181,13 @@ dbus_uid_t    _dbus_getuid (void);
 dbus_gid_t    _dbus_getgid (void);
 
 typedef struct DBusAtomic DBusAtomic;
+
+/**
+ * An atomic integer.
+ */
 struct DBusAtomic
 {
-  volatile dbus_int32_t value;
+  volatile dbus_int32_t value; /**< Value of the atomic integer. */
 };
 
 dbus_int32_t _dbus_atomic_inc (DBusAtomic *atomic);
@@ -188,11 +200,14 @@ dbus_int32_t _dbus_atomic_dec (DBusAtomic *atomic);
 #define _DBUS_POLLHUP     0x0010    /* Hung up */
 #define _DBUS_POLLNVAL    0x0020    /* Invalid request: fd not open */
 
+/**
+ * A portable struct pollfd wrapper. 
+ */
 typedef struct
 {
-  int fd;
-  short events;
-  short revents;
+  int fd;            /**< File descriptor */
+  short events;      /**< Events to poll for */
+  short revents;     /**< Events that occurred */
 } DBusPollFD;
 
 int _dbus_poll (DBusPollFD *fds,
@@ -249,16 +264,19 @@ void _dbus_fd_set_close_on_exec (int fd);
 
 void _dbus_exit (int code) _DBUS_GNUC_NORETURN;
 
+/**
+ * Portable struct with stat() results
+ */
 typedef struct
 {
-  unsigned long mode;
-  unsigned long nlink;
-  dbus_uid_t    uid;
-  dbus_gid_t    gid;
-  unsigned long size;
-  unsigned long atime;
-  unsigned long mtime;
-  unsigned long ctime;
+  unsigned long mode;  /**< File mode */
+  unsigned long nlink; /**< Number of hard links */
+  dbus_uid_t    uid;   /**< User owning file */
+  dbus_gid_t    gid;   /**< Group owning file */
+  unsigned long size;  /**< Size of file */
+  unsigned long atime; /**< Access time */
+  unsigned long mtime; /**< Modify time */
+  unsigned long ctime; /**< Creation time */
 } DBusStat;
 
 dbus_bool_t _dbus_stat             (const DBusString *filename,
index 0dcb104032f0e962e780693df13f99ab8e30d219..dea969a2e0bb2cd88df04d289a3c015ef049f516 100644 (file)
@@ -66,30 +66,34 @@ typedef enum
   DBUS_THREAD_FUNCTIONS_ALL_MASK     = (1 << 10) - 1
 } DBusThreadFunctionsMask;
 
+/**
+ * Functions that must be implemented to make the D-BUS
+ * library thread-aware. 
+ */
 typedef struct
 {
-  unsigned int mask;
-
-  DBusMutexNewFunction mutex_new;
-  DBusMutexFreeFunction mutex_free;
-  DBusMutexLockFunction mutex_lock;
-  DBusMutexUnlockFunction mutex_unlock;
-
-  DBusCondVarNewFunction condvar_new;
-  DBusCondVarFreeFunction condvar_free;
-  DBusCondVarWaitFunction condvar_wait;
-  DBusCondVarWaitTimeoutFunction condvar_wait_timeout;
-  DBusCondVarWakeOneFunction condvar_wake_one;
-  DBusCondVarWakeAllFunction condvar_wake_all;
+  unsigned int mask; /**< Mask indicating which functions are present. */
+
+  DBusMutexNewFunction mutex_new; /**< Function to create a mutex */
+  DBusMutexFreeFunction mutex_free; /**< Function to free a mutex */
+  DBusMutexLockFunction mutex_lock; /**< Function to lock a mutex */
+  DBusMutexUnlockFunction mutex_unlock; /**< Function to unlock a mutex */
+
+  DBusCondVarNewFunction condvar_new; /**< Function to create a condition variable */
+  DBusCondVarFreeFunction condvar_free; /**< Function to free a condition variable */
+  DBusCondVarWaitFunction condvar_wait; /**< Function to wait on a condition */
+  DBusCondVarWaitTimeoutFunction condvar_wait_timeout; /**< Function to wait on a condition with a timeout */
+  DBusCondVarWakeOneFunction condvar_wake_one; /**< Function to wake one thread waiting on the condition */
+  DBusCondVarWakeAllFunction condvar_wake_all; /**< Function to wake all threads waiting on the condition */
   
-  void (* padding1) (void);
-  void (* padding2) (void);
-  void (* padding3) (void);
-  void (* padding4) (void);
-  void (* padding5) (void);
-  void (* padding6) (void);
-  void (* padding7) (void);
-  void (* padding8) (void);
+  void (* padding1) (void); /**< Reserved for future expansion */
+  void (* padding2) (void); /**< Reserved for future expansion */
+  void (* padding3) (void); /**< Reserved for future expansion */
+  void (* padding4) (void); /**< Reserved for future expansion */
+  void (* padding5) (void); /**< Reserved for future expansion */
+  void (* padding6) (void); /**< Reserved for future expansion */
+  void (* padding7) (void); /**< Reserved for future expansion */
+  void (* padding8) (void); /**< Reserved for future expansion */
   
 } DBusThreadFunctions;
 
index 289d6347dbc253a3d8a082da92e214e1fe288a69..b15089dbe17f6c8d22ff4788a9f09ce3dbadace3 100644 (file)
@@ -33,6 +33,9 @@
  * @{
  */
 
+/**
+ * Internals of DBusTimeout
+ */
 struct DBusTimeout
 {
   int refcount;                                /**< Reference count */
index 1c5b4208c5a4bbaa07332a8fed27fcd7dfcbea32..d4d20957a70155f778809038f1e58cc3f92186fa 100644 (file)
@@ -34,6 +34,10 @@ DBUS_BEGIN_DECLS;
 
 typedef struct DBusTransportVTable DBusTransportVTable;
 
+/**
+ * The virtual table that must be implemented to
+ * create a new kind of transport.
+ */
 struct DBusTransportVTable
 {
   void        (* finalize)              (DBusTransport *transport);
@@ -69,6 +73,12 @@ struct DBusTransportVTable
   /**< Outstanding messages counter changed */
 };
 
+/**
+ * Object representing a transport such as a socket.
+ * A transport can shuttle messages from point A to point B,
+ * and is the backend for a #DBusConnection.
+ *
+ */
 struct DBusTransport
 {
   int refcount;                               /**< Reference count. */
index 4a7b7488864d30083202598080c18581dfafd76b..95f139818144e4d874a4f944145cf3b4e08a8aab 100644 (file)
 #include "dbus-internals.h"
 #include <string.h>
 
+/**
+ * Internals of DBusUserDatabase
+ */
 struct DBusUserDatabase
 {
-  int refcount;
+  int refcount; /**< Reference count */
 
-  DBusHashTable *users;
-  DBusHashTable *groups;
-  DBusHashTable *users_by_name;
-  DBusHashTable *groups_by_name;
+  DBusHashTable *users; /**< Users in the database by UID */
+  DBusHashTable *groups; /**< Groups in the database by GID */
+  DBusHashTable *users_by_name; /**< Users in the database by name */
+  DBusHashTable *groups_by_name; /**< Groups in the database by name */
 };
 
 static void
index 5b59e8c8d828204c02b844edb2eb734e563c067d..f212090a3f7f69c127b461320002b19ba91faa91 100644 (file)
@@ -33,6 +33,9 @@
  * @{
  */
 
+/**
+ * Implementation of DBusWatch
+ */
 struct DBusWatch
 {
   int refcount;                        /**< Reference count */
index 12468abbc4eec6150ea69edcfa75c7c2c02642fc..b867d178786e5696349941eaa334c501f6b3f9df 100644 (file)
@@ -24,6 +24,8 @@
 
 #include "dbus-gidl.h"
 
+#ifndef DOXYGEN_SHOULD_SKIP_THIS
+
 struct NodeInfo
 {
   int refcount;
@@ -402,3 +404,5 @@ _dbus_gidl_test (void)
 }
 
 #endif /* DBUS_BUILD_TESTS */
+
+#endif /* DOXYGEN_SHOULD_SKIP_THIS */
index 6e4e207a92d3143c3fc048839c10d473b482c0ed..7a66724069286fd8535a85ef2ebd9a426435242d 100644 (file)
@@ -24,6 +24,8 @@
 #ifndef DBUS_GLIB_IDL_H
 #define DBUS_GLIB_IDL_H
 
+#ifndef DOXYGEN_SHOULD_SKIP_THIS
+
 #include <dbus/dbus.h>
 #include <glib.h>
 
@@ -90,3 +92,5 @@ ArgDirection   arg_info_get_direction     (ArgInfo       *info);
 G_END_DECLS
 
 #endif /* DBUS_GLIB_IDL_H */
+
+#endif /* DOXYGEN_SHOULD_SKIP_THIS */
index 3a87dec2eef3ed2e4cef5061bcf65311d2ec87ff..4015dd99d8fd89e7b2ba3659271a866d23d2a671 100644 (file)
@@ -39,19 +39,28 @@ void dbus_server_setup_with_g_main     (DBusServer     *server,
 typedef struct DBusGObjectInfo DBusGObjectInfo;
 typedef struct DBusGMethodInfo DBusGMethodInfo;
 
+/**
+ * Object typically generated by dbus-glib-tool that
+ * stores a mapping from introspection data to a
+ * function pointer for a C method to be invoked.
+ */
 struct DBusGMethodInfo
 {
-  GCallback                 function;
-  DBusHandleMessageFunction marshaller;
-  int                       data_offset;
+  GCallback                 function;    /**< C method to invoke */
+  DBusHandleMessageFunction marshaller;  /**< Marshaller to go DBusMessage to C method */
+  int                       data_offset; /**< Offset into the introspection data */
 };
 
+/**
+ * Introspection data for a GObject, normally autogenerated by
+ * a tool such as dbus-glib-tool.
+ */
 struct DBusGObjectInfo
 {
-  const DBusGMethodInfo *infos;
-  const unsigned char *data;    
-  void *dbus_internal_padding1;
-  void *dbus_internal_padding2;
+  const DBusGMethodInfo *infos; /**< Array of method pointers */
+  const unsigned char *data;    /**< Introspection data */
+  void *dbus_internal_padding1; /**< Reserved for expansion */
+  void *dbus_internal_padding2; /**< Reserved for expansion */
 };
 
 void dbus_gobject_class_install_info  (GObjectClass          *object_class,
index 050d353214ac808cbff98223e959ef291a1d612c..149e7117a99117ab016241f2d102ecb413b85dd1 100644 (file)
@@ -43,13 +43,16 @@ static XML_Memory_Handling_Suite memsuite =
   g_free
 };
 
+/**
+ * Context for Expat parser for introspection data.
+ */
 typedef struct
 {
-  Parser *parser;
-  const char *filename;
-  GString *content;
-  GError **error;
-  gboolean failed;
+  Parser *parser;       /**< The parser for the introspection data */
+  const char *filename; /**< The filename being loaded */
+  GString *content;     /**< The content of the current element */
+  GError **error;       /**< Error return location */
+  gboolean failed;      /**< True if parse has failed */
 } ExpatParseContext;
 
 static dbus_bool_t
index 36c6c6b4c7d56253d4358dc7229c13adaa74a91e..c33f47e82af97af9c8e19c4fa9d0f301a3225a86 100644 (file)
@@ -49,6 +49,9 @@
  */
 typedef struct DBusGSource DBusGSource;
 
+/**
+ * A GSource subclass for a DBusConnection.
+ */
 struct DBusGSource
 {
   GSource source; /**< the parent GSource */
index c2b54d31947c033e6750abd9ec2da32c40bf777c..f7264b5e0f7c6d54706c0ec76209c5274b9f3e98 100644 (file)
@@ -28,6 +28,8 @@
 #define _(x) gettext ((x))
 #define N_(x) x
 
+#ifndef DOXYGEN_SHOULD_SKIP_THIS
+
 #define ELEMENT_IS(name) (strcmp (element_name, (name)) == 0)
 
 typedef struct
@@ -656,3 +658,5 @@ parser_get_nodes (Parser *parser)
 {
   return parser->result;
 }
+
+#endif /* DOXYGEN_SHOULD_SKIP_THIS */
index 01a6b4b9727007e7cf61cd31ee1fd67710e885cb..8951707b5c8776497e6c5864dbf9971dad0c47e6 100644 (file)
  * @{
  */
 
+/**
+ * Internals of DBusGProxy
+ */
 struct DBusGProxy
 {
-  GStaticMutex lock;
-  int refcount;
-  DBusConnection *connection;
-  char *service;
-  char *interface;
-  char *path;
+  GStaticMutex lock; /**< Thread lock */
+  int refcount;      /**< Reference count */
+  DBusConnection *connection; /**< Connection to communicate over */
+  char *service;             /**< Service messages go to or NULL */
+  char *interface;           /**< Interface messages go to or NULL */
+  char *path;                /**< Path messages go to or NULL */
 };
 
+/** Lock the DBusGProxy */
 #define LOCK_PROXY(proxy)   (g_static_mutex_lock (&(proxy)->lock))
+/** Unlock the DBusGProxy */
 #define UNLOCK_PROXY(proxy) (g_static_mutex_unlock (&(proxy)->lock))
 
 static DBusGProxy*