If compiling without udev_sync support, udev_get_library_context simply
returns NULL so we don't need to remember putting ifdef UDEV_SYNC_SUPPORT
in the code all the time we just need to check whether there's any udev
context initialized or not.
return 0;
}
-struct udev* udev_get_library_context(void)
+void *udev_get_library_context(void)
{
return _udev;
}
return 1;
}
+void *udev_get_library_context(void)
+{
+ return NULL;
+}
+
void udev_fin_library_context(void)
{
}
#ifndef _LVM_WRAPPERS_H
#define _LVM_WRAPPERS_H
-#ifdef UDEV_SYNC_SUPPORT
-struct udev;
-struct udev *udev_get_library_context(void);
-#endif
-
int udev_init_library_context(void);
+void *udev_get_library_context(void);
void udev_fin_library_context(void);
int udev_is_running(void);