diff options
author | Anders Carlsson <andersca@codefactory.se> | 2003-01-28 14:26:49 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@codefactory.se> | 2003-01-28 14:26:49 +0000 |
commit | dec1fa3bd5f106ba5b2c749372231e3dd4bf9e7b (patch) | |
tree | 9a579d3d5b908ee5712249b4de696b89a72ffca7 /dbus/dbus-transport.c | |
parent | bec3c093cab742a953e39f1726c37345873990dc (diff) |
2003-01-28 Anders Carlsson <set EMAIL_ADDRESS environment variable>
* dbus/dbus-connection-internal.h:
* dbus/dbus-connection.c: (_dbus_connection_add_timeout),
(_dbus_connection_remove_timeout):
Add functions for adding and removing timeouts.
* dbus/dbus-message.c: (dbus_message_new_from_message):
Add new function that takes a message and creates an exact
copy of it, but with the refcount set to 1.
(check_message_handling):
Fix build error.
* dbus/dbus-server-protected.h:
* dbus/dbus-server.c: (_dbus_server_init_base),
(_dbus_server_finalize_base), (_dbus_server_add_timeout),
(dbus_server_set_timeout_functions):
(_dbus_server_remove_timeout):
New functions so that a server can add and remove timeouts.
(dbus_server_listen):
Add commented out call to dbus_server_debug_new.
* dbus/dbus-timeout.c: (_dbus_timeout_new):
Actually set the handler, doh.
* dbus/dbus-transport.c: (_dbus_transport_open):
Add commented out call to dbus_transport_debug_client_new.
* dbus/Makefile.am:
Add dbus-transport-debug.[ch] and dbus-server-debug.[ch]
Diffstat (limited to 'dbus/dbus-transport.c')
-rw-r--r-- | dbus/dbus-transport.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/dbus/dbus-transport.c b/dbus/dbus-transport.c index 9b367dcd..d1f31702 100644 --- a/dbus/dbus-transport.c +++ b/dbus/dbus-transport.c @@ -26,6 +26,9 @@ #include "dbus-connection-internal.h" #include "dbus-watch.h" #include "dbus-auth.h" +#ifdef DBUS_BUILD_TESTS +#include "dbus-transport-debug.h" +#endif /** * @defgroup DBusTransport DBusTransport object @@ -197,11 +200,15 @@ _dbus_transport_open (const char *address, * appropriate transport. */ +#if 1 /* Pretend it's just a unix domain socket name for now */ transport = _dbus_transport_new_for_domain_socket (address, FALSE, result); - +#else + transport = _dbus_transport_debug_client_new (address, + result); +#endif return transport; } |