From 116b8fa6353f7dbce470b128bbf7e89b756b9f3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Fri, 17 Jun 2022 18:44:33 +0200 Subject: [PATCH] url-mode: rename activate_url() -> url_activate(), make public --- url-mode.c | 6 +++--- url-mode.h | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/url-mode.c b/url-mode.c index 538b60f0..ab831c14 100644 --- a/url-mode.c +++ b/url-mode.c @@ -127,8 +127,8 @@ spawn_url_launcher(struct seat *seat, struct terminal *term, const char *url, return spawn_url_launcher_with_token(term, url, NULL); } -static void -activate_url(struct seat *seat, struct terminal *term, const struct url *url, +void +url_activate(struct seat *seat, struct terminal *term, const struct url *url, uint32_t serial) { char *url_string = NULL; @@ -262,7 +262,7 @@ urls_input(struct seat *seat, struct terminal *term, } if (match) { - activate_url(seat, term, match, serial); + url_activate(seat, term, match, serial); switch (match->action) { case URL_ACTION_COPY: diff --git a/url-mode.h b/url-mode.h index abfcb57b..29432bd0 100644 --- a/url-mode.h +++ b/url-mode.h @@ -15,6 +15,9 @@ static inline bool urls_mode_is_active(const struct terminal *term) void urls_collect( const struct terminal *term, enum url_action action, url_list_t *urls); + +void url_activate(struct seat *seat, struct terminal *term, + const struct url *url, uint32_t serial); void urls_assign_key_combos(const struct config *conf, url_list_t *urls); void urls_render(struct terminal *term);