Mercurial > audlegacy
comparison src/audacious/pluginenum.c @ 4677:04c53c9d261b
Add provision for Interface plugins.
| author | William Pitcock <nenolod@atheme.org> |
|---|---|
| date | Sun, 29 Jun 2008 12:59:51 -0500 |
| parents | cbc9965e1552 |
| children | 3a56d2786063 |
comparison
equal
deleted
inserted
replaced
| 4676:ed6755dbd2f1 | 4677:04c53c9d261b |
|---|---|
| 712 { | 712 { |
| 713 PLUGIN((header->dp_list)[i])->filename = g_strdup_printf("%s (#%d)", filename, i); | 713 PLUGIN((header->dp_list)[i])->filename = g_strdup_printf("%s (#%d)", filename, i); |
| 714 discovery_plugin_init(PLUGIN((header->dp_list)[i])); | 714 discovery_plugin_init(PLUGIN((header->dp_list)[i])); |
| 715 } | 715 } |
| 716 } | 716 } |
| 717 | |
| 718 if (header->interface) | |
| 719 interface_register(header->interface); | |
| 717 } | 720 } |
| 718 | 721 |
| 719 void | 722 void |
| 720 plugin2_unload(PluginHeader *header, mowgli_node_t *hlist_node) | 723 plugin2_unload(PluginHeader *header, mowgli_node_t *hlist_node) |
| 721 { | 724 { |
| 722 GModule *module; | 725 GModule *module; |
| 723 | 726 |
| 724 g_return_if_fail(header->priv_assoc != NULL); | 727 g_return_if_fail(header->priv_assoc != NULL); |
| 728 | |
| 729 if (header->interface) | |
| 730 interface_deregister(header->interface); | |
| 725 | 731 |
| 726 module = header->priv_assoc->handle; | 732 module = header->priv_assoc->handle; |
| 727 | 733 |
| 728 g_free(header->priv_assoc->filename); | 734 g_free(header->priv_assoc->filename); |
| 729 g_free(header->priv_assoc); | 735 g_free(header->priv_assoc); |
