Fix use of virEventAddHandleImpl()

src/node_device/node_device_udev.c was using a function available only
on the daemon code, fix this and use the function available globally

* src/node_device/node_device_udev.c: replace use of virEventAddHandleImpl
  by virEventAddHandle
This commit is contained in:
Jiri Denemark 2009-12-14 16:09:01 +01:00 committed by Daniel Veillard
parent 057ad3a2f5
commit a645c8f0fd
1 changed files with 5 additions and 5 deletions

View File

@ -37,7 +37,7 @@
#include "uuid.h"
#include "util.h"
#include "buf.h"
#include "daemon/event.h"
#include "event.h"
#define VIR_FROM_THIS VIR_FROM_NODEDEV
@ -1531,7 +1531,7 @@ static int udevDeviceMonitorStartup(int privileged ATTRIBUTE_UNUSED)
* enumeration. The alternative is to register the callback after
* we enumerate, in which case we will fail to create any devices
* that appear while the enumeration is taking place. */
if (virEventAddHandleImpl(udev_monitor_get_fd(udev_monitor),
if (virEventAddHandle(udev_monitor_get_fd(udev_monitor),
VIR_EVENT_HANDLE_READABLE,
udevEventHandleCallback,
NULL, NULL) == -1) {