Mercurial > pidgin
comparison libgaim/plugin.c @ 15295:7d6bd7a4994f
[gaim-migrate @ 18086]
core-ify some code...and someone tell me why my gvim and svn aren't getting along and I have to type out this damn message on the command line
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Mon, 08 Jan 2007 04:26:16 +0000 |
parents | 8a0c3cb93de8 |
children | c5e272b47618 |
comparison
equal
deleted
inserted
replaced
15294:e5c75076c6d1 | 15295:7d6bd7a4994f |
---|---|
1198 | 1198 |
1199 #endif /* GAIM_PLUGINS */ | 1199 #endif /* GAIM_PLUGINS */ |
1200 } | 1200 } |
1201 | 1201 |
1202 void | 1202 void |
1203 gaim_plugins_save_loaded(const char *key) | |
1204 { | |
1205 #ifdef GAIM_PLUGINS | |
1206 GList *pl; | |
1207 GList *f; | |
1208 GList *files = NULL; | |
1209 GaimPlugin *p; | |
1210 | |
1211 for (pl = gaim_plugins_get_loaded(); pl != NULL; pl = pl->next) { | |
1212 p = pl->data; | |
1213 | |
1214 if (p->info->type != GAIM_PLUGIN_PROTOCOL && | |
1215 p->info->type != GAIM_PLUGIN_LOADER) { | |
1216 files = g_list_append(files, p->path); | |
1217 } | |
1218 } | |
1219 | |
1220 gaim_prefs_set_string_list(key, files); | |
1221 g_list_foreach(files, (GFunc)g_free, NULL); | |
1222 g_list_free(files); | |
1223 #endif | |
1224 } | |
1225 | |
1226 void | |
1203 gaim_plugins_load_saved(const char *key) | 1227 gaim_plugins_load_saved(const char *key) |
1204 { | 1228 { |
1205 #ifdef GAIM_PLUGINS | 1229 #ifdef GAIM_PLUGINS |
1206 GList *f, *files; | 1230 GList *f, *files; |
1207 | 1231 |
1254 filename); | 1278 filename); |
1255 } | 1279 } |
1256 | 1280 |
1257 g_free(basename); | 1281 g_free(basename); |
1258 | 1282 |
1283 g_free(filename); | |
1284 | |
1259 g_free(f->data); | 1285 g_free(f->data); |
1260 } | 1286 } |
1261 | 1287 |
1262 g_list_free(files); | 1288 g_list_free(files); |
1263 #endif /* GAIM_PLUGINS */ | 1289 #endif /* GAIM_PLUGINS */ |