url-mode: rename activate_url() -> url_activate(), make public

This commit is contained in:
Daniel Eklöf 2022-06-17 18:44:33 +02:00
parent 8689389523
commit 116b8fa635
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 6 additions and 3 deletions

View file

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

View file

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