Mercurial > audlegacy
diff src/audacious/plugin.h @ 4677:04c53c9d261b
Add provision for Interface plugins.
author | William Pitcock <nenolod@atheme.org> |
---|---|
date | Sun, 29 Jun 2008 12:59:51 -0500 |
parents | 31a4cc265f31 |
children | 49ea99d333e9 |
line wrap: on
line diff
--- a/src/audacious/plugin.h Sun Jun 29 12:56:25 2008 -0500 +++ b/src/audacious/plugin.h Sun Jun 29 12:59:51 2008 -0500 @@ -45,6 +45,7 @@ #include "audacious/playlist_container.h" #include "audacious/main.h" #include "audacious/preferences.h" +#include "audacious/interface.h" #define PLUGIN(x) ((Plugin *)(x)) #define INPUT_PLUGIN(x) ((InputPlugin *)(x)) @@ -191,6 +192,7 @@ GeneralPlugin **gp_list; VisPlugin **vp_list; DiscoveryPlugin **dp_list; + Interface *interface; } PluginHeader; #define PLUGIN_MAGIC 0x8EAC8DE2 @@ -1028,6 +1030,9 @@ #define SIMPLE_DISCOVER_PLUGIN(name, dp_list) \ DECLARE_PLUGIN(name, NULL, NULL, NULL, NULL, NULL, NULL, NULL, dp_list) +#define SIMPLE_INTERFACE_PLUGIN(name, interface) \ + DECLARE_PLUGIN(name, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, interface) + /* Sadly, this is the most we can generalize out of the disparate plugin structs usable with typecasts - descender */ struct _Plugin {