chiark / gitweb /
move common stuff from udev/ to private parts of libudev/
[elogind.git] / libudev / libudev-queue-export.c
index a36ff5150abda26d3bce741cc794111b72c929b9..9ae680c386a9c7bc0f74458bb64988f55b828732 100644 (file)
@@ -14,7 +14,6 @@
  * DISCLAIMER - The file format mentioned here is private to udev/libudev,
  *              and may be changed without notice.
  *
- *
  * The udev event queue is exported as a binary log file.
  * Each log record consists of a sequence number followed by the device path.
  *
@@ -31,7 +30,6 @@
  * The queue does not grow indefinitely.  It is periodically re-created
  * to remove finished events.  Atomic rename() makes this transparent to readers.
  *
- *
  * The queue file starts with a single sequence number which specifies the
  * minimum sequence number in the log that follows.  Any events prior to this
  * sequence number have already finished.
@@ -48,7 +46,8 @@
 #include <sys/types.h>
 #include <assert.h>
 
-#include "udev.h"
+#include "libudev.h"
+#include "libudev-private.h"
 
 static int rebuild_queue_file(struct udev_queue_export *udev_queue_export);
 
@@ -108,7 +107,6 @@ void udev_queue_export_cleanup(struct udev_queue_export *udev_queue_export)
        unlink(filename);
 }
 
-
 static int skip_to(FILE *file, long offset)
 {
        long old_offset;
@@ -320,7 +318,6 @@ write_error:
        return -1;
 }
 
-
 enum device_state {
        DEVICE_QUEUED,
        DEVICE_FINISHED,