win32 patch dbus_watch_get_handle patch

Ralf Habacker ralf.habacker at
Mon Jun 18 23:32:44 PDT 2007

Havoc Pennington schrieb:
> Hi,
> Ralf Habacker wrote:
>> Thanks, but unfortunally this patch does work under windows.
> Why not? There isn't a -unix.c component to it...
Do you have seen the win32 implementation of dbus_watch_get_socket() in
dbus-watch-win.c. I requires access to the DBusWatch struct and

#include "dbus-watch-private.h"
#include "dbus-sysdeps-win.h"

 * @addtogroup DBusWatch
 * @{

dbus_watch_get_socket(DBusWatch *watch)
  DBusSocket *p;
  if (watch->fd != -1)
      return p->fd;
    return -1;

Where to place this stuff. In dbus-watch.c or dbus-sysdeps-win.c or as
initial send in into dbus-watch-win.c ?


More information about the dbus mailing list