mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-01 06:47:58 +02:00
2003-01-28 Havoc Pennington <hp@pobox.com>
* dbus/dbus-server-debug.c: Add doc section comments * dbus/dbus-transport-debug.c: add doc section comments
This commit is contained in:
parent
def834b73b
commit
5147583541
3 changed files with 35 additions and 2 deletions
|
|
@ -1,3 +1,9 @@
|
|||
2003-01-28 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* dbus/dbus-server-debug.c: Add doc section comments
|
||||
|
||||
* dbus/dbus-transport-debug.c: add doc section comments
|
||||
|
||||
2003-01-28 Havoc Pennington <hp@redhat.com>
|
||||
|
||||
* dbus/dbus-string.c (_dbus_string_base64_decode): append bytes in
|
||||
|
|
|
|||
|
|
@ -29,6 +29,17 @@
|
|||
|
||||
#ifdef DBUS_BUILD_TESTS
|
||||
|
||||
/**
|
||||
* @defgroup DBusServerDebug DBusServerDebug
|
||||
* @ingroup DBusInternals
|
||||
* @brief In-process debug server used in unit tests.
|
||||
*
|
||||
* Types and functions related to DBusServerDebug.
|
||||
* This is used for unit testing.
|
||||
*
|
||||
* @{
|
||||
*/
|
||||
|
||||
#define DEFAULT_INTERVAL 10
|
||||
|
||||
typedef struct DBusServerDebug DBusServerDebug;
|
||||
|
|
@ -44,6 +55,9 @@ struct DBusServerDebug
|
|||
char *name; /**< Server name. */
|
||||
};
|
||||
|
||||
/* Not thread safe, but OK since we don't use
|
||||
* threads in the bus
|
||||
*/
|
||||
static DBusHashTable *server_hash;
|
||||
|
||||
static void
|
||||
|
|
@ -210,13 +224,14 @@ _dbus_server_debug_accept_transport (DBusServer *server,
|
|||
|
||||
if (!_dbus_server_add_timeout (server, timeout))
|
||||
{
|
||||
_dbus_timeout_unref (timeout);
|
||||
|
||||
_dbus_timeout_unref (timeout);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/** @} */
|
||||
|
||||
#endif /* DBUS_BUILD_TESTS */
|
||||
|
||||
|
|
|
|||
|
|
@ -30,6 +30,16 @@
|
|||
|
||||
#ifdef DBUS_BUILD_TESTS
|
||||
|
||||
/**
|
||||
* @defgroup DBusTransportDebug DBusTransportDebug
|
||||
* @ingroup DBusInternals
|
||||
* @brief In-process debug transport used in unit tests.
|
||||
*
|
||||
* Types and functions related to DBusTransportDebug.
|
||||
* This is used for unit testing.
|
||||
*
|
||||
* @{
|
||||
*/
|
||||
|
||||
#define DEFAULT_INTERVAL 10
|
||||
|
||||
|
|
@ -304,4 +314,6 @@ _dbus_transport_debug_client_new (const char *server_name,
|
|||
return (DBusTransport *)debug_transport;
|
||||
}
|
||||
|
||||
/** @} */
|
||||
|
||||
#endif /* DBUS_BUILD_TESTS */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue