journal-internal.h revision b26fa1a2fbcfee7d03b0c8fd15ec3aa64ae70b9f
#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 "sd-id128.h"
#include "sd-journal.h"
#include "hashmap.h"
#include "journal-def.h"
#include "journal-file.h"
#include "list.h"
#include "set.h"
typedef enum MatchType {
} MatchType;
struct Match {
/* For concrete matches */
char *data;
/* For terms */
};
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;
/* Iterating through unique fields and their data values */
char *unique_field;
/* Iterating through known fields */
char *fields_buffer;
int flags;
bool on_network:1;
bool no_new_files:1;
removed, and there were no more
files, so sd_j_enumerate_unique
will return a value equal to 0. */
bool fields_file_lost:1;
bool has_runtime_files:1;
bool has_persistent_files:1;
};
char *journal_make_match_string(sd_journal *j);
void journal_print_header(sd_journal *j);