mirror of
https://github.com/systemd/systemd.git
synced 2025-03-09 12:58:26 +03:00
journal: move definition of LocationType to journal-file.h
In preparation for individual JournalFiles maintaining a location of their own.
This commit is contained in:
parent
8a2bd0a365
commit
99cc7653a8
@ -48,6 +48,20 @@ typedef enum direction {
|
|||||||
DIRECTION_DOWN
|
DIRECTION_DOWN
|
||||||
} direction_t;
|
} direction_t;
|
||||||
|
|
||||||
|
typedef enum LocationType {
|
||||||
|
/* The first and last entries, resp. */
|
||||||
|
LOCATION_HEAD,
|
||||||
|
LOCATION_TAIL,
|
||||||
|
|
||||||
|
/* We already read the entry we currently point to, and the
|
||||||
|
* next one to read should probably not be this one again. */
|
||||||
|
LOCATION_DISCRETE,
|
||||||
|
|
||||||
|
/* We should seek to the precise location specified, and
|
||||||
|
* return it, as we haven't read it yet. */
|
||||||
|
LOCATION_SEEK
|
||||||
|
} LocationType;
|
||||||
|
|
||||||
typedef struct JournalFile {
|
typedef struct JournalFile {
|
||||||
int fd;
|
int fd;
|
||||||
|
|
||||||
|
@ -57,20 +57,6 @@ struct Match {
|
|||||||
LIST_HEAD(Match, matches);
|
LIST_HEAD(Match, matches);
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef enum LocationType {
|
|
||||||
/* The first and last entries, resp. */
|
|
||||||
LOCATION_HEAD,
|
|
||||||
LOCATION_TAIL,
|
|
||||||
|
|
||||||
/* We already read the entry we currently point to, and the
|
|
||||||
* next one to read should probably not be this one again. */
|
|
||||||
LOCATION_DISCRETE,
|
|
||||||
|
|
||||||
/* We should seek to the precise location specified, and
|
|
||||||
* return it, as we haven't read it yet. */
|
|
||||||
LOCATION_SEEK
|
|
||||||
} LocationType;
|
|
||||||
|
|
||||||
struct Location {
|
struct Location {
|
||||||
LocationType type;
|
LocationType type;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user