comparison src/blist.c @ 10423:3232e1a33899

[gaim-migrate @ 11675] Set version numbers for all our xml files Use xmlnode for writing accounts.xml Add 2 conveniencey helper functions to xmlnode committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 26 Dec 2004 18:38:22 +0000
parents 26eac2362c32
children 30d9ec7d001b
comparison
equal deleted inserted replaced
10422:e0cf2f3f9929 10423:3232e1a33899
2358 static void gaim_blist_write(FILE *file, GaimAccount *exp_acct) 2358 static void gaim_blist_write(FILE *file, GaimAccount *exp_acct)
2359 { 2359 {
2360 GList *accounts; 2360 GList *accounts;
2361 GaimBlistNode *gnode; 2361 GaimBlistNode *gnode;
2362 2362
2363 fprintf(file, "<?xml version='1.0' encoding='UTF-8' ?>\n"); 2363 fprintf(file, "<?xml version='1.0' encoding='UTF-8' ?>\n\n");
2364 fprintf(file, "<gaim version=\"1\">\n"); 2364 fprintf(file, "<gaim version='1.0'>\n");
2365 fprintf(file, "\t<blist>\n"); 2365 fprintf(file, "\t<blist>\n");
2366 2366
2367 for (gnode = gaimbuddylist->root; gnode; gnode = gnode->next) { 2367 for (gnode = gaimbuddylist->root; gnode; gnode = gnode->next) {
2368 if (GAIM_BLIST_NODE_IS_GROUP(gnode)) 2368 if (GAIM_BLIST_NODE_IS_GROUP(gnode))
2369 blist_write_group(file, exp_acct, (GaimGroup *) gnode); 2369 blist_write_group(file, exp_acct, (GaimGroup *) gnode);