comparison src/pounce.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 bed2c96bc1fb
children dc4475bf718f
comparison
equal deleted inserted replaced
10422:e0cf2f3f9929 10423:3232e1a33899
873 873
874 if ((fp = fopen(filename, "w")) != NULL) { 874 if ((fp = fopen(filename, "w")) != NULL) {
875 GList *l; 875 GList *l;
876 876
877 fprintf(fp, "<?xml version='1.0' encoding='UTF-8' ?>\n\n"); 877 fprintf(fp, "<?xml version='1.0' encoding='UTF-8' ?>\n\n");
878 fprintf(fp, "<pounces>\n"); 878 fprintf(fp, "<pounces version='1.0'>\n");
879 879
880 for (l = gaim_pounces_get_all(); l != NULL; l = l->next) 880 for (l = gaim_pounces_get_all(); l != NULL; l = l->next)
881 gaim_pounces_write(fp, l->data); 881 gaim_pounces_write(fp, l->data);
882 882
883 fprintf(fp, "</pounces>\n"); 883 fprintf(fp, "</pounces>\n");