comparison src/audacious/plugin.h @ 3237:12bc288a7511

add simplified macros to declare plugin. no more excessive NULLs.
author Yoshiki Yazawa <yaz@cc.rim.or.jp>
date Sat, 04 Aug 2007 15:37:37 +0900
parents fb2f3675cbeb
children 6600abe94a3f 7ac9c5c6b44e
comparison
equal deleted inserted replaced
3236:74a999f3f4d2 3237:12bc288a7511
115 G_MODULE_EXPORT PluginHeader *get_plugin_info(void) { \ 115 G_MODULE_EXPORT PluginHeader *get_plugin_info(void) { \
116 return &_pluginInfo; \ 116 return &_pluginInfo; \
117 } \ 117 } \
118 G_END_DECLS 118 G_END_DECLS
119 119
120 #define SIMPLE_INPUT_PLUGIN(name, ip_list) \
121 DECLARE_PLUGIN(name, NULL, NULL, ip_list)
122
123 #define SIMPLE_OUTPUT_PLUGIN(name, op_list) \
124 DECLARE_PLUGIN(name, NULL, NULL, NULL, op_list)
125
126 #define SIMPLE_EFFECT_PLUGIN(name, ep_list) \
127 DECLARE_PLUGIN(name, NULL, NULL, NULL, NULL, ep_list)
128
129 #define SIMPLE_GENERAL_PLUGIN(name, gp_list) \
130 DECLARE_PLUGIN(name, NULL, NULL, NULL, NULL, NULL, gp_list)
131
132 #define SIMPLE_VISUAL_PLUGIN(name, vp_list) \
133 DECLARE_PLUGIN(name, NULL, NULL, NULL, NULL, NULL, NULL, vp_list)
134
135 #define SIMPLE_DISCOVER_PLUGIN(name, dp_list) \
136 DECLARE_PLUGIN(name, NULL, NULL, NULL, NULL, NULL, NULL, NULL, dp_list)
137
120 /* Sadly, this is the most we can generalize out of the disparate 138 /* Sadly, this is the most we can generalize out of the disparate
121 plugin structs usable with typecasts - descender */ 139 plugin structs usable with typecasts - descender */
122 struct _Plugin { 140 struct _Plugin {
123 gpointer handle; 141 gpointer handle;
124 gchar *filename; 142 gchar *filename;