]> git.armaanb.net Git - chorizo.git/blobdiff - we_adblock.c
Bump dates in manpages
[chorizo.git] / we_adblock.c
index 9a044a9e30275420c7e706a41382cb43f5e8da25..4714fb4bc60df8989bc0eaa39c67426566ea456c 100644 (file)
@@ -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;
@@ -15,7 +15,7 @@ adblock_load(void)
     GIOChannel *channel = NULL;
     gchar *path = NULL, *buf = NULL;
 
-    path = g_build_filename(g_get_user_config_dir(), __NAME__, "adblock.black",
+    path = g_build_filename(g_get_user_config_dir(), __NAME__, "adblock",
                             NULL);
     channel = g_io_channel_new_file(path, "r", &err);
     if (channel != 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)
 {