win32 patch dbus_watch_get_handle patch
Ralf Habacker
ralf.habacker at freenet.de
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
dbus-sysdeps-win.h
#include "dbus-watch-private.h"
#include "dbus-sysdeps-win.h"
/**
/**
* @addtogroup DBusWatch
* @{
*/
int
dbus_watch_get_socket(DBusWatch *watch)
{
DBusSocket *p;
if (watch->fd != -1)
{
_dbus_handle_to_socket(watch->fd,&p);
return p->fd;
}
else
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 ?
Ralf
More information about the dbus
mailing list