From: Peter Hofmann Date: Fri, 1 May 2020 05:44:17 +0000 (+0200) Subject: we_adblock: No need for static here, either X-Git-Tag: v1.0.0~71 X-Git-Url: https://git.armaanb.net/?p=chorizo.git;a=commitdiff_plain;h=d69b03f21f32813ec7306789c61dfaca98f0eeea we_adblock: No need for static here, either --- 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 -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) {