Mercurial > audlegacy
changeset 3233:88f602569477 trunk
Make DECLARE_PLUGIN() macro use a __VA_ARGS__ list instead of a static amount of tokens.
Pointed out by joker.
author | William Pitcock <nenolod@atheme-project.org> |
---|---|
date | Fri, 03 Aug 2007 20:42:13 -0500 |
parents | 2453bf125b4f |
children | fb2f3675cbeb |
files | src/audacious/plugin.h |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/audacious/plugin.h Fri Aug 03 20:39:42 2007 -0500 +++ b/src/audacious/plugin.h Fri Aug 03 20:42:13 2007 -0500 @@ -108,11 +108,10 @@ #define PLUGIN_MAGIC 0x8EAC8DE2 -#define DECLARE_PLUGIN(name, init, fini, ip_list, op_list, ep_list, gp_list, vp_list, dp_list) \ +#define DECLARE_PLUGIN(name, init, fini, ...) \ G_BEGIN_DECLS \ static PluginHeader _pluginInfo = { PLUGIN_MAGIC, __AUDACIOUS_PLUGIN_API__, \ - (gchar *)#name, init, fini, NULL, ip_list, op_list, ep_list, gp_list, \ - vp_list,dp_list }; \ + (gchar *)#name, init, fini, __VA_ARGS__ }; \ G_MODULE_EXPORT PluginHeader *get_plugin_info(void) { \ return &_pluginInfo; \ } \