]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/shared/pager.h
pkgconfig: define variables relative to ${prefix}/${rootprefix}/${sysconfdir}
[thirdparty/systemd.git] / src / shared / pager.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 #include <stdbool.h>
5
6 #include "macro.h"
7
8 typedef enum PagerFlags {
9 PAGER_DISABLE = 1 << 0,
10 PAGER_JUMP_TO_END = 1 << 1,
11 } PagerFlags;
12
13 int pager_open(PagerFlags flags);
14 void pager_close(void);
15 bool pager_have(void) _pure_;
16
17 int show_man_page(const char *page, bool null_stdio);