summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-05-25 19:33:53 +0200
committerLennart Poettering <lennart@poettering.net>2020-05-29 10:41:30 +0200
commit422c8251e5e74071768da5a712fcb0c971ab4d12 (patch)
tree82aa8e736d38fafc193fd263617a1c75c9f72f46 /src/shared
parenta90fb08c814513924728a00d88a77338750e192a (diff)
downloadsystemd-422c8251e5e74071768da5a712fcb0c971ab4d12.tar.gz
pretty-print: export urlify_enabled()
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/pretty-print.c2
-rw-r--r--src/shared/pretty-print.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/shared/pretty-print.c b/src/shared/pretty-print.c
index 5772918c37..69bae6883c 100644
--- a/src/shared/pretty-print.c
+++ b/src/shared/pretty-print.c
@@ -18,7 +18,7 @@
#include "terminal-util.h"
#include "util.h"
-static bool urlify_enabled(void) {
+bool urlify_enabled(void) {
static int cached_urlify_enabled = -1;
/* Unfortunately 'less' doesn't support links like this yet 😭, hence let's disable this as long as there's a
diff --git a/src/shared/pretty-print.h b/src/shared/pretty-print.h
index 12ab9acf58..b3057ae6b8 100644
--- a/src/shared/pretty-print.h
+++ b/src/shared/pretty-print.h
@@ -5,6 +5,8 @@ void print_separator(void);
int file_url_from_path(const char *path, char **ret);
+bool urlify_enabled(void);
+
int terminal_urlify(const char *url, const char *text, char **ret);
int terminal_urlify_path(const char *path, const char *text, char **ret);
int terminal_urlify_man(const char *page, const char *section, char **ret);