diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2009-06-09 23:05:25 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2009-06-09 23:05:25 +0200 |
commit | 44b49d3736bfdc94da31b5670a2c5a3477a201eb (patch) | |
tree | e4e60eec0d2aa83d8175f0bde436ee1a9c9dc38b /libudev/libudev-queue-export.c | |
parent | 9060b066d9e7aaca9795010ac5fff61018947f87 (diff) |
move common stuff from udev/ to private parts of libudev/
Diffstat (limited to 'libudev/libudev-queue-export.c')
-rw-r--r-- | libudev/libudev-queue-export.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libudev/libudev-queue-export.c b/libudev/libudev-queue-export.c index a36ff5150a..9ae680c386 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 <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, |