Currently, udevNodeRegister() is forward declared in
node_device_driver.h even though the function is implemented in
node_device_udev.c which warrants node_device_udev.h header file.
Move the declaration into the correct file.
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Jonathon Jongsma <jjongsma@redhat.com>
#include "node_device_conf.h"
#include "node_device_event.h"
#include "node_device_driver.h"
+#if WITH_UDEV
+# include "node_device_udev.h"
+#endif
#include "virvhba.h"
#include "viraccessapicheck.h"
#include "virutil.h"
#define LINUX_NEW_DEVICE_WAIT_TIME 60
-#ifdef WITH_UDEV
-int
-udevNodeRegister(void);
-#endif
-
-
typedef enum {
MDEVCTL_CMD_START,
MDEVCTL_CMD_STOP,
*/
#pragma once
+
+int
+udevNodeRegister(void);