diff options
author | Ralf Habacker <ralf.habacker@freenet.de> | 2007-03-10 09:10:36 +0000 |
---|---|---|
committer | Ralf Habacker <ralf.habacker@freenet.de> | 2007-03-10 09:10:36 +0000 |
commit | 47e318a6e1893069e1326945ce1af25ddf8201d1 (patch) | |
tree | aae5bbc914c095d75ce7c40712d89ac847002e00 /dbus/dbus-sysdeps.h | |
parent | f3fd4d60ad5de9f0c6576f6e100f944792fed255 (diff) |
* bus/bus.c, bus/bus.h, bus/main.c, bus/test.c, dbus/dbus-sysdeps-unix.c, dbus/dbus-sysdeps-util-unix.c, dbus/dbus-sysdeps-util-win.c, bus/dbus-sysdeps-win.c,dbus/dbus-sysdeps.h: renamed _dbus_xxx_pipe to _dbus_pipe_xxx, completed _dbus_pipe support.
Diffstat (limited to 'dbus/dbus-sysdeps.h')
-rw-r--r-- | dbus/dbus-sysdeps.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/dbus/dbus-sysdeps.h b/dbus/dbus-sysdeps.h index 9c1bec98..879a47bc 100644 --- a/dbus/dbus-sysdeps.h +++ b/dbus/dbus-sysdeps.h @@ -302,12 +302,23 @@ dbus_bool_t _dbus_path_is_absolute (const DBusString *filename); dbus_bool_t _dbus_get_standard_session_servicedirs (DBusList **dirs); -typedef int DBusPipe; -int _dbus_write_pipe (DBusPipe pipe, +typedef struct { + int fd; +} DBusPipe; + +DBusPipe _dbus_pipe_init(int fd); + +int _dbus_pipe_write (DBusPipe pipe, const DBusString *buffer, int start, int len); +int _dbus_pipe_close (DBusPipe pipe, + DBusError *error); + +dbus_bool_t _dbus_pipe_is_valid(DBusPipe pipe); +dbus_bool_t _dbus_pipe_is_special(DBusPipe pipe); + /** Opaque type for reading a directory listing */ typedef struct DBusDirIter DBusDirIter; @@ -374,7 +385,7 @@ dbus_bool_t _dbus_full_duplex_pipe (int *fd1, void _dbus_print_backtrace (void); dbus_bool_t _dbus_become_daemon (const DBusString *pidfile, - int print_pid_fd, + DBusPipe print_pid_fd, DBusError *error); dbus_bool_t _dbus_write_pid_file (const DBusString *filename, unsigned long pid, |