diff 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
line wrap: on
line diff
--- a/src/audacious/pluginenum.c	Sun Jun 29 12:56:25 2008 -0500
+++ b/src/audacious/pluginenum.c	Sun Jun 29 12:59:51 2008 -0500
@@ -714,6 +714,9 @@
             discovery_plugin_init(PLUGIN((header->dp_list)[i]));
         }
     }
+
+    if (header->interface)
+        interface_register(header->interface);
 }
 
 void
@@ -723,6 +726,9 @@
 
     g_return_if_fail(header->priv_assoc != NULL);
 
+    if (header->interface)
+        interface_deregister(header->interface);
+
     module = header->priv_assoc->handle;
 
     g_free(header->priv_assoc->filename);