]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/shared/logs-show.h
systemctl,loginctl,cgls: do not ellipsize cgroup members when --full is specified
[thirdparty/systemd.git] / src / shared / logs-show.h
CommitLineData
86aa7ba4
LP
1/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
2
c2f1db8f 3#pragma once
86aa7ba4
LP
4
5/***
6 This file is part of systemd.
7
8 Copyright 2012 Lennart Poettering
9
10 systemd is free software; you can redistribute it and/or modify it
5430f7f2
LP
11 under the terms of the GNU Lesser General Public License as published by
12 the Free Software Foundation; either version 2.1 of the License, or
86aa7ba4
LP
13 (at your option) any later version.
14
15 systemd is distributed in the hope that it will be useful, but
16 WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5430f7f2 18 Lesser General Public License for more details.
86aa7ba4 19
5430f7f2 20 You should have received a copy of the GNU Lesser General Public License
86aa7ba4
LP
21 along with systemd; If not, see <http://www.gnu.org/licenses/>.
22***/
23
24#include <stdbool.h>
25
81527be1
LP
26#include <systemd/sd-journal.h>
27
86aa7ba4 28#include "util.h"
9bdbc2e2 29#include "output-mode.h"
25277cd7 30
08ace05b
LP
31int output_journal(
32 FILE *f,
33 sd_journal *j,
34 OutputMode mode,
35 unsigned n_columns,
36 OutputFlags flags);
86aa7ba4 37
df50185b 38int show_journal_by_unit(
08ace05b 39 FILE *f,
df50185b
LP
40 const char *unit,
41 OutputMode mode,
86aa7ba4
LP
42 unsigned n_columns,
43 usec_t not_before,
44 unsigned how_many,
085d7120 45 OutputFlags flags);
df50185b 46
240a5fe8
LP
47void json_escape(
48 FILE *f,
49 const char* p,
50 size_t l,
51 OutputFlags flags);
52
df50185b
LP
53const char* output_mode_to_string(OutputMode m);
54OutputMode output_mode_from_string(const char *s);