pretty-print: export urlify_enabled()

This commit is contained in:
Lennart Poettering 2020-05-25 19:33:53 +02:00
parent a90fb08c81
commit 422c8251e5
2 changed files with 3 additions and 1 deletions

View file

@ -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

View file

@ -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);