journal-internal.h revision 73f860db9893deab6aebceb53dd7d0deb662e832
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#pragma once
/***
This file is part of systemd.
Copyright 2011 Lennart Poettering
under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.
systemd is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <inttypes.h>
#include <stdbool.h>
#include "systemd/sd-id128.h"
#include "journal-def.h"
#include "list.h"
#include "hashmap.h"
#include "set.h"
#include "journal-file.h"
typedef enum MatchType {
} MatchType;
struct Match {
/* For concrete matches */
char *data;
/* For terms */
};
typedef enum LocationType {
/* The first and last entries, resp. */
/* We already read the entry we currently point to, and the
* next one to read should probably not be this one again. */
/* We should seek to the precise location specified, and
* return it, as we haven't read it yet. */
} LocationType;
struct Location {
bool seqnum_set;
bool realtime_set;
bool monotonic_set;
bool xor_hash_set;
};
struct Directory {
char *path;
int wd;
bool is_root;
};
struct sd_journal {
char *path;
char *prefix;
int inotify_fd;
char *unique_field;
int flags;
bool on_network;
bool no_new_files;
};
char *journal_make_match_string(sd_journal *j);
void journal_print_header(sd_journal *j);