diff options
author | Havoc Pennington <hp@redhat.com> | 2006-09-16 17:38:24 +0000 |
---|---|---|
committer | Havoc Pennington <hp@redhat.com> | 2006-09-16 17:38:24 +0000 |
commit | 8027efc97b4bec85f674570f878919cb72456745 (patch) | |
tree | 441ffafa5367bdb93c8bfa7f8ec51acfeb432b0b /dbus/dbus-sysdeps-unix.h | |
parent | a0a12210e1f5aa5bd185a57d4394b8eb51cbe472 (diff) |
voc Pennington <hp@redhat.com>
* dbus/dbus-server.c (dbus_server_listen): change how this works
to be able to delegate to a set of handlers that can succeed,
fail, or choose not to handle. Allows us to have
dbus_server_listen_platform_specific.
* dbus/dbus-server-socket.c (_dbus_server_new_for_tcp_socket):
factor out the tcp socket stuff to be used on windows, leaving
unix domain socket only in dbus-socket-unix.c
* dbus/dbus-transport-socket.c
(_dbus_transport_new_for_tcp_socket): factor out the tcp socket
stuff to be used on windows, leaving unix domain socket only
in dbus-transport-unix.c
* dbus/dbus-connection.c (dbus_connection_get_unix_user): insert
temporary hack to be sure this fails on windows
(dbus_connection_get_unix_process_id): ditto
Diffstat (limited to 'dbus/dbus-sysdeps-unix.h')
-rw-r--r-- | dbus/dbus-sysdeps-unix.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/dbus/dbus-sysdeps-unix.h b/dbus/dbus-sysdeps-unix.h index ab1fb384..f1fe3b0c 100644 --- a/dbus/dbus-sysdeps-unix.h +++ b/dbus/dbus-sysdeps-unix.h @@ -28,6 +28,10 @@ #include <config.h> #include <dbus/dbus-sysdeps.h> +#ifdef DBUS_WIN +#error "Don't include this on Windows" +#endif + DBUS_BEGIN_DECLS dbus_bool_t @@ -51,6 +55,15 @@ _dbus_write_two (int fd, int start2, int len2); +dbus_bool_t _dbus_open_unix_socket (int *fd, + DBusError *error); +int _dbus_connect_unix_socket (const char *path, + dbus_bool_t abstract, + DBusError *error); +int _dbus_listen_unix_socket (const char *path, + dbus_bool_t abstract, + DBusError *error); + DBUS_END_DECLS #endif /* DBUS_SYSDEPS_UNIX_H */ |