summaryrefslogtreecommitdiffstats
path: root/dbus/dbus-sysdeps.h
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2003-01-04 20:29:46 +0000
committerHavoc Pennington <hp@redhat.com>2003-01-04 20:29:46 +0000
commitc92339de11a2f27198aee3b4242aa6fccc12a004 (patch)
tree7bb33ff8548d893855ba9db6bf38f6ffbd324a15 /dbus/dbus-sysdeps.h
parent01af5ff4101e540a6456bca01d56272e701bea78 (diff)
2003-01-04 Havoc Pennington <hp@pobox.com>
* dbus/dbus-sysdeps.c (_dbus_sleep_milliseconds): new function (_dbus_poll): new function * dbus/dbus-internals.h (_DBUS_STRUCT_OFFSET): new macro copied from GLib * bus/loop.c: initial code for the daemon main loop
Diffstat (limited to 'dbus/dbus-sysdeps.h')
-rw-r--r--dbus/dbus-sysdeps.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/dbus/dbus-sysdeps.h b/dbus/dbus-sysdeps.h
index 73482f06..c76c691a 100644
--- a/dbus/dbus-sysdeps.h
+++ b/dbus/dbus-sysdeps.h
@@ -96,6 +96,28 @@ dbus_bool_t _dbus_credentials_match (const DBusCredentials *expec
dbus_bool_t _dbus_string_append_our_uid (DBusString *str);
+
+
+#define _DBUS_POLLIN 0x0001 /* There is data to read */
+#define _DBUS_POLLPRI 0x0002 /* There is urgent data to read */
+#define _DBUS_POLLOUT 0x0004 /* Writing now will not block */
+#define _DBUS_POLLERR 0x0008 /* Error condition */
+#define _DBUS_POLLHUP 0x0010 /* Hung up */
+#define _DBUS_POLLNVAL 0x0020 /* Invalid request: fd not open */
+
+typedef struct
+{
+ int fd;
+ short events;
+ short revents;
+} DBusPollFD;
+
+int _dbus_poll (DBusPollFD *fds,
+ int n_fds,
+ int timeout_milliseconds);
+
+void _dbus_sleep_milliseconds (int milliseconds);
+
DBUS_END_DECLS;
#endif /* DBUS_SYSDEPS_H */