summaryrefslogtreecommitdiffstats
path: root/dbus/dbus-sysdeps.h
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2002-12-13 03:55:38 +0000
committerHavoc Pennington <hp@redhat.com>2002-12-13 03:55:38 +0000
commit271fa7fc335f332bb2be3beeef735334546c4957 (patch)
tree6c20f827eaa2575b6d94f0eaee5ce975c7061da8 /dbus/dbus-sysdeps.h
parentd4b870e7f91b7018524f7b85dc00b90cc64453bf (diff)
2002-12-12 Havoc Pennington <hp@pobox.com>
* dbus/dbus-transport-unix.c, dbus/dbus-server-unix.c: use the below new interfaces and include fewer system headers. * dbus/dbus-sysdeps.c (_dbus_read): new function (_dbus_write): new function (_dbus_write_two): new function (_dbus_connect_unix_socket): new function (_dbus_listen_unix_socket): new function * dbus/dbus-message-internal.h: change interfaces to use DBusString
Diffstat (limited to 'dbus/dbus-sysdeps.h')
-rw-r--r--dbus/dbus-sysdeps.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/dbus/dbus-sysdeps.h b/dbus/dbus-sysdeps.h
index 92b782a8..17d96b3d 100644
--- a/dbus/dbus-sysdeps.h
+++ b/dbus/dbus-sysdeps.h
@@ -31,6 +31,9 @@
*/
#include <string.h>
+/* and it would just be annoying to abstract this */
+#include <errno.h>
+
DBUS_BEGIN_DECLS;
/* The idea of this file is to encapsulate everywhere that we're
@@ -46,6 +49,29 @@ void _dbus_abort (void);
const char* _dbus_getenv (const char *varname);
+
+int _dbus_read (int fd,
+ DBusString *buffer,
+ int count);
+int _dbus_write (int fd,
+ const DBusString *buffer,
+ int start,
+ int len);
+int _dbus_write_two (int fd,
+ const DBusString *buffer1,
+ int start1,
+ int len1,
+ const DBusString *buffer2,
+ int start2,
+ int len2);
+
+int _dbus_connect_unix_socket (const char *path,
+ DBusResultCode *result);
+int _dbus_listen_unix_socket (const char *path,
+ DBusResultCode *result);
+int _dbus_accept_unix_socket (int listen_fd);
+
+
DBUS_END_DECLS;
#endif /* DBUS_SYSDEPS_H */