DBusServerDebugPipe
[D-BUS internal implementation details]

In-process pipe debug server used in unit tests. More...

Data Structures

struct  DBusServerDebugPipe
 Implementation details of DBusServerDebugPipe. More...

Typedefs

typedef DBusServerDebugPipe DBusServerDebugPipe
 Opaque object representing a debug server implementation.

Functions

DBusServer_dbus_server_debug_pipe_new (const char *server_name, DBusError *error)
 Creates a new debug server using an in-process pipe.
DBusTransport_dbus_transport_debug_pipe_new (const char *server_name, DBusError *error)
 Creates the client-side transport for a debug-pipe connection connected to the given debug-pipe server name.

Detailed Description

In-process pipe debug server used in unit tests.

Types and functions related to DBusServerDebugPipe. This is used for unit testing.


Function Documentation

DBusServer* _dbus_server_debug_pipe_new const char *  server_name,
DBusError error
 

Creates a new debug server using an in-process pipe.

Parameters:
server_name the name of the server.
error address where an error can be returned.
Returns:
a new server, or NULL on failure.

Definition at line 132 of file dbus-server-debug-pipe.c.

References _dbus_address_append_escaped(), _dbus_hash_table_insert_string(), _dbus_hash_table_lookup_string(), _dbus_server_finalize_base(), _dbus_server_init_base(), _dbus_strdup(), _dbus_string_append(), _dbus_string_free(), _dbus_string_init(), _dbus_string_init_const(), base, dbus_free(), dbus_new0, dbus_set_error(), name, and NULL.

Referenced by dbus_server_listen().

DBusTransport* _dbus_transport_debug_pipe_new const char *  server_name,
DBusError error
 

Creates the client-side transport for a debug-pipe connection connected to the given debug-pipe server name.

Parameters:
server_name name of server to connect to
error address where an error can be returned.
Returns:
NULL on no memory or transport

Definition at line 206 of file dbus-server-debug-pipe.c.

References _dbus_close(), _dbus_connection_new_for_transport(), _dbus_fd_set_close_on_exec(), _dbus_full_duplex_pipe(), _dbus_hash_table_lookup_string(), _dbus_string_append(), _dbus_string_free(), _dbus_string_init(), _dbus_transport_new_for_fd(), _dbus_transport_set_auth_mechanisms(), _dbus_transport_unref(), dbus_connection_unref(), dbus_server_ref(), dbus_server_unref(), dbus_set_error(), FALSE, and NULL.

Referenced by _dbus_transport_open().


Generated on Tue Jul 7 15:14:02 2009 for D-BUS by  doxygen 1.4.6