Mercurial > pidgin
comparison src/plugins.c @ 2125:af59d854de29
[gaim-migrate @ 2135]
bmiller's patch to unload plugins on exit signals
committer: Tailor Script <tailor@pidgin.im>
| author | Eric Warmenhoven <eric@warmenhoven.org> |
|---|---|
| date | Mon, 06 Aug 2001 18:12:36 +0000 |
| parents | 0b81421021fd |
| children | acc11216ec5d |
comparison
equal
deleted
inserted
replaced
| 2124:a1922ad52304 | 2125:af59d854de29 |
|---|---|
| 979 return perl_event(tmp, buf); | 979 return perl_event(tmp, buf); |
| 980 #else | 980 #else |
| 981 return 0; | 981 return 0; |
| 982 #endif | 982 #endif |
| 983 } | 983 } |
| 984 | |
| 985 /* Calls the gaim_plugin_remove function in any loaded plugin that has one */ | |
| 986 void remove_all_plugins() | |
| 987 { | |
| 988 GList *c = plugins; | |
| 989 struct gaim_plugin *p; | |
| 990 void (*gaim_plugin_remove)(); | |
| 991 | |
| 992 while (c) { | |
| 993 p = (struct gaim_plugin *)c->data; | |
| 994 if (g_module_symbol(p->handle, "gaim_plugin_remove", (gpointer *)&gaim_plugin_remove)) | |
| 995 (*gaim_plugin_remove)(); | |
| 996 g_free(p); | |
| 997 c = c->next; | |
| 998 } | |
| 999 } |
