]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/shared/pager.h
json: add helpers for dealing with id128 + strv
[thirdparty/systemd.git] / src / shared / pager.h
CommitLineData
53e1b683 1/* SPDX-License-Identifier: LGPL-2.1+ */
c2f1db8f 2#pragma once
1968a360 3
fafb6ecc
ZJS
4#include <stdbool.h>
5
44a6b1b6
ZJS
6#include "macro.h"
7
0221d68a
ZJS
8typedef enum PagerFlags {
9 PAGER_DISABLE = 1 << 0,
10 PAGER_JUMP_TO_END = 1 << 1,
11} PagerFlags;
12
13int pager_open(PagerFlags flags);
1968a360 14void pager_close(void);
44a6b1b6 15bool pager_have(void) _pure_;
78002a67
ZJS
16
17int show_man_page(const char *page, bool null_stdio);