From 422c8251e5e74071768da5a712fcb0c971ab4d12 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 25 May 2020 19:33:53 +0200 Subject: [PATCH] pretty-print: export urlify_enabled() --- src/shared/pretty-print.c | 2 +- src/shared/pretty-print.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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);