comparison libpurple/protocols/myspace/message.c @ 19255:1ea47b06f1a6

Initial implementation of friend importing. Not well tested.
author Jeffrey Connelly <jaconnel@calpoly.edu>
date Mon, 20 Aug 2007 01:15:00 +0000
parents 9245404fe70c
children 34a1957de14b
comparison
equal deleted inserted replaced
19254:9245404fe70c 19255:1ea47b06f1a6
696 g_return_if_fail(fmt_string != NULL); 696 g_return_if_fail(fmt_string != NULL);
697 697
698 debug_str = msim_msg_dump_to_str(msg); 698 debug_str = msim_msg_dump_to_str(msg);
699 699
700 g_return_if_fail(debug_str != NULL); 700 g_return_if_fail(debug_str != NULL);
701
702 purple_debug_info("msim_msg_dump", "debug_str=%s\n", debug_str);
703
704 701
705 purple_debug_info("msim", fmt_string, debug_str); 702 purple_debug_info("msim", fmt_string, debug_str);
706 703
707 g_free(debug_str); 704 g_free(debug_str);
708 } 705 }
1003 static GList * 1000 static GList *
1004 msim_msg_get_node(MsimMessage *msg, const gchar *name) 1001 msim_msg_get_node(MsimMessage *msg, const gchar *name)
1005 { 1002 {
1006 GList *node; 1003 GList *node;
1007 1004
1008 if (!name) { 1005 if (!name || !msg) {
1009 return NULL; 1006 return NULL;
1010 } 1007 }
1011 1008
1012 /* Linear search for the given name. O(n) but n is small. */ 1009 /* Linear search for the given name. O(n) but n is small. */
1013 for (node = msg; node != NULL; node = g_list_next(node)) { 1010 for (node = msg; node != NULL; node = g_list_next(node)) {