X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=libudev%2Flibudev-queue-export.c;h=9ae680c386a9c7bc0f74458bb64988f55b828732;hp=a36ff5150abda26d3bce741cc794111b72c929b9;hb=44b49d3736bfdc94da31b5670a2c5a3477a201eb;hpb=9060b066d9e7aaca9795010ac5fff61018947f87 diff --git a/libudev/libudev-queue-export.c b/libudev/libudev-queue-export.c index a36ff5150..9ae680c38 100644 --- a/libudev/libudev-queue-export.c +++ b/libudev/libudev-queue-export.c @@ -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 #include -#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,