diff options
author | Peter Hofmann <scm@uninformativ.de> | 2020-05-01 07:44:17 +0200 |
---|---|---|
committer | Peter Hofmann <scm@uninformativ.de> | 2020-05-01 07:44:17 +0200 |
commit | d69b03f21f32813ec7306789c61dfaca98f0eeea (patch) | |
tree | effaf4d8f0c9c5206dde38b1c42d6ecf68b841bd | |
parent | 7d1cc8024b95fb8d64f469d761ec301be4385a77 (diff) | |
download | lariza-d69b03f21f32813ec7306789c61dfaca98f0eeea.tar.gz |
we_adblock: No need for static here, either
-rw-r--r-- | we_adblock.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/we_adblock.c b/we_adblock.c index 9a044a9..79dd691 100644 --- a/we_adblock.c +++ b/we_adblock.c @@ -4,10 +4,10 @@ #include <webkit2/webkit-web-extension.h> -static GSList *adblock_patterns = NULL; +GSList *adblock_patterns = NULL; -static void +void adblock_load(void) { GRegex *re = NULL; @@ -45,7 +45,7 @@ adblock_load(void) g_free(path); } -static gboolean +gboolean web_page_send_request(WebKitWebPage *web_page, WebKitURIRequest *request, WebKitURIResponse *redirected_response, gpointer user_data) { @@ -64,7 +64,7 @@ web_page_send_request(WebKitWebPage *web_page, WebKitURIRequest *request, return FALSE; } -static void +void web_page_created_callback(WebKitWebExtension *extension, WebKitWebPage *web_page, gpointer user_data) { |