* 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.
*
* 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.
#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);
unlink(filename);
}
-
static int skip_to(FILE *file, long offset)
{
long old_offset;
return -1;
}
-
enum device_state {
DEVICE_QUEUED,
DEVICE_FINISHED,