DBusSocketSet: new abstraction for struct pollfd[] or whatever
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 13 Jun 2011 16:04:30 +0000 (17:04 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 13 Jun 2011 16:30:31 +0000 (17:30 +0100)
commitd3d44dd38f74129503e0623f5c9f77e01e572406
tree2b07630c5897ab2e1e045dbdb09913646841cf49
parent5e7824729d3e1c3ec37d89dda4486ff110269df1
DBusSocketSet: new abstraction for struct pollfd[] or whatever

In this second version of this patch, DBusSocketSet is an "abstract base
class" so that when using a better OS-specific API fails, we can always fall
back to _dbus_poll(). For instance, this is necessary when the "better
OS-specific API" is epoll on Linux, the build machine has a modern glibc
version, and the host machine either has an old kernel, is emulated in qemu
(which does not support the epoll syscalls yet), or both.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=33337
Bug-NB: NB#197191
Bug-NB: NB#225019
dbus/Makefile.am
dbus/dbus-connection.h
dbus/dbus-mainloop.c
dbus/dbus-socket-set-poll.c [new file with mode: 0644]
dbus/dbus-socket-set.c [new file with mode: 0644]
dbus/dbus-socket-set.h [new file with mode: 0644]
dbus/dbus-watch.h