[evolution-rss] more cleanups
- From: Lucian Langa <lucilanga src gnome org>
- To: svn-commits-list gnome org
- Subject: [evolution-rss] more cleanups
- Date: Fri, 22 May 2009 02:29:37 -0400 (EDT)
commit 582d70e3bf445fd38ecf809324b98c5ce2ca8504
Author: Lucian Langa <lucilanga gnome org>
Date: Fri May 22 09:29:29 2009 +0300
more cleanups
---
src/misc.c | 4 ++--
src/network-soup.c | 11 ++---------
src/parser.c | 4 ++--
src/parser.h | 2 ++
src/rss.c | 14 ++++----------
5 files changed, 12 insertions(+), 23 deletions(-)
diff --git a/src/misc.c b/src/misc.c
index 72d4f03..97a84d6 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -50,7 +50,7 @@ print_hash(gpointer key, gpointer value, gpointer user_data)
g_print("key:%s, value:%s\n", (gchar *)key, (gchar *)value);
}
-static void
+void
free_hash(gpointer key, gpointer value, gpointer user_data)
{
g_print("FREE - key:%p, value:%p\n", (gchar *)key, (gchar *)value);
@@ -373,7 +373,7 @@ gchar *extract_main_folder(gchar *folder)
}
/* hrm, is there a library for this shit? */
-static struct {
+struct {
char *name;
int offset;
} tz_offsets [] = {
diff --git a/src/network-soup.c b/src/network-soup.c
index 257bd8c..5f37828 100644
--- a/src/network-soup.c
+++ b/src/network-soup.c
@@ -387,6 +387,7 @@ authenticate (SoupSession *session,
}
}
+#if LIBSOUP_VERSION < 2003000
static void
reauthenticate (SoupSession *session,
SoupMessage *msg,
@@ -396,7 +397,6 @@ reauthenticate (SoupSession *session,
char **password,
gpointer data)
{
- gchar *user, *pass;
if (rf->soup_auth_retry) {
//means we're already tested once and probably
//won't try again
@@ -410,14 +410,7 @@ reauthenticate (SoupSession *session,
*password = g_strdup(g_hash_table_lookup(rf->hrpass, data));
}
}
-
-static int
-conn_mainloop_quit (void *data)
-{
- g_print("loop quit");
- g_main_loop_quit (data);
- return TRUE;
-}
+#endif
guint
net_get_status(const char *url, GError **err)
diff --git a/src/parser.c b/src/parser.c
index 9e421b6..b1bfbee 100644
--- a/src/parser.c
+++ b/src/parser.c
@@ -536,7 +536,7 @@ media_rss(xmlNode *node, gchar *search, gchar *fail)
gchar *property_rss_modules[1][3] = {
{"media", "media", (gchar *)media_rss}};
-static char *
+char *
layer_find_tag_prop (xmlNodePtr node,
char *match,
char *search,
@@ -612,7 +612,7 @@ layer_find_pos (xmlNodePtr node,
return NULL;
}
-static char *
+char *
layer_find_url (xmlNodePtr node,
char *match,
char *fail)
diff --git a/src/parser.h b/src/parser.h
index f74bd41..f604d4b 100644
--- a/src/parser.h
+++ b/src/parser.h
@@ -26,6 +26,8 @@ char *layer_find_innerelement (xmlNodePtr node, char *match, char *el, char *fai
gchar *layer_find_innerhtml (xmlNodePtr node, char *match, char *submatch, char *fail);
xmlNodePtr layer_find_pos (xmlNodePtr node, char *match, char *submatch);
char *layer_find_tag (xmlNodePtr node, char *match, char *fail);
+char * layer_find_url (xmlNodePtr node, char *match, char *fail);
+char *layer_find_tag_prop (xmlNodePtr node, char *match, char *search, char *fail);
gchar *decode_entities(gchar *source);
GList *layer_find_all (xmlNodePtr node, char *match, char *fail);
xmlDoc *parse_html(char *url, const char *html, int len);
diff --git a/src/rss.c b/src/rss.c
index 594374e..ab4eaa1 100644
--- a/src/rss.c
+++ b/src/rss.c
@@ -259,12 +259,12 @@ rss_find_enabled(void)
/* hash table of ops->dialogue of active errors */
static GHashTable *active_errors = NULL;
-static void error_destroy(GtkObject *o, void *data)
+void error_destroy(GtkObject *o, void *data)
{
g_hash_table_remove(active_errors, data);
}
-static void error_response(GtkObject *o, int button, void *data)
+void error_response(GtkObject *o, int button, void *data)
{
gtk_widget_destroy((GtkWidget *)o);
}
@@ -1477,7 +1477,7 @@ rss_menu_items_free(EPopup *ep, GSList *items, void *data)
g_slist_free(items);
}
-static gboolean
+gboolean
webkit_click (GtkEntry *entry,
GtkMenu *menu,
gpointer user_data)
@@ -3438,12 +3438,6 @@ custom_feed_timeout(void)
}
static void
-store_folder_update(CamelObject *o, void *event_data, void *data)
-{
- g_print("folder update\n");
-}
-
-static void
rss_online(CamelSession *o, void *event_data, void *data)
{
rf->online = camel_session_is_online (o);
@@ -3969,7 +3963,7 @@ e_plugin_lib_disable(EPluginLib *ep)
g_print("DIE!\n");
}
-static void
+void
free_filter_uids (gpointer user_data, GObject *ex_msg)
{
g_print("weak unref called on filter_uids\n");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]