changeset 7117:943085b0ff8b

[gaim-migrate @ 7684] faceprint pointed out that parse_toc_buddy_list() was used in TOC, so it's now gaim_blist_parse_toc_buddy_list() (sucky function name). committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Thu, 02 Oct 2003 02:15:36 +0000
parents 6c8706109f92
children bf630f7dfdcd
files src/blist.c src/blist.h src/protocols/toc/toc.c
diffstat 3 files changed, 12 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/blist.c	Thu Oct 02 01:58:26 2003 +0000
+++ b/src/blist.c	Thu Oct 02 02:15:36 2003 +0000
@@ -1458,7 +1458,7 @@
 	}
 }
 
-static void parse_toc_buddy_list(GaimAccount *account, char *config)
+void gaim_blist_parse_toc_buddy_list(GaimAccount *account, char *config)
 {
 	char *c;
 	char current[256];
@@ -1833,7 +1833,7 @@
 	if (buf) {
 		buf = g_string_prepend(buf, "toc_set_config {");
 		buf = g_string_append(buf, "}\n");
-		parse_toc_buddy_list(account, buf->str);
+		gaim_blist_parse_toc_buddy_list(account, buf->str);
 		g_string_free(buf, TRUE);
 	}
 }
--- a/src/blist.h	Thu Oct 02 01:58:26 2003 +0000
+++ b/src/blist.h	Thu Oct 02 02:15:36 2003 +0000
@@ -664,6 +664,15 @@
 void gaim_blist_save();
 
 /**
+ * Parses the toc-style buddy list used in older versions of Gaim and for SSI in toc.c
+ *
+ * @param account  This is the account that the buddies and groups from config will get added to
+ * @param config   This is the toc-style buddy list data
+ */
+void gaim_blist_parse_toc_buddy_list(GaimAccount *account, char *config);
+
+
+/**
  * Loads the buddy list from ~/.gaim/blist.xml.
  */
 void gaim_blist_load();
--- a/src/protocols/toc/toc.c	Thu Oct 02 01:58:26 2003 +0000
+++ b/src/protocols/toc/toc.c	Thu Oct 02 02:15:36 2003 +0000
@@ -717,7 +717,7 @@
 		}
 	} else if (!g_ascii_strcasecmp(c, "CONFIG")) {
 		c = strtok(NULL, ":");
-		parse_toc_buddy_list(gc->account, c);
+		gaim_blist_parse_toc_buddy_list(gc->account, c);
 	} else if (!g_ascii_strcasecmp(c, "NICK")) {
 		/* ignore NICK so that things get imported/exported properly
 		c = strtok(NULL, ":");