Mercurial > pidgin
diff src/module.c @ 2440:8306c042bac7
[gaim-migrate @ 2453]
can load plugins. won't get any indication of it though.
committer: Tailor Script <tailor@pidgin.im>
| author | Eric Warmenhoven <eric@warmenhoven.org> |
|---|---|
| date | Sat, 06 Oct 2001 02:25:46 +0000 |
| parents | e5f76dc2c8d1 |
| children | 2c2c1f717616 |
line wrap: on
line diff
--- a/src/module.c Sat Oct 06 01:55:59 2001 +0000 +++ b/src/module.c Sat Oct 06 02:25:46 2001 +0000 @@ -524,3 +524,26 @@ } } #endif + +void plugin_handler(struct UI *ui, guchar subtype, guchar *data) +{ + switch (subtype) { + /* + case CUI_PLUGIN_LIST: + break; + */ + case CUI_PLUGIN_LOAD: + load_plugin(data); + /* XXX need to broadcast to UIs that plugin has been loaded */ + break; + /* + case CUI_PLUGIN_UNLOAD: + break; + case CUI_PLUGIN_RELOAD: + break; + */ + default: + debug_printf("unhandled plugin subtype: %d\n", subtype); + break; + } +}
