changeset 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 74a999f3f4d2
children 13360ebb72b3
files src/audacious/plugin.h
diffstat 1 files changed, 18 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/plugin.h	Fri Aug 03 22:17:41 2007 -0500
+++ b/src/audacious/plugin.h	Sat Aug 04 15:37:37 2007 +0900
@@ -117,6 +117,24 @@
 	} \
 	G_END_DECLS
 
+#define SIMPLE_INPUT_PLUGIN(name, ip_list) \
+    DECLARE_PLUGIN(name, NULL, NULL, ip_list)
+
+#define SIMPLE_OUTPUT_PLUGIN(name, op_list) \
+    DECLARE_PLUGIN(name, NULL, NULL, NULL, op_list)
+
+#define SIMPLE_EFFECT_PLUGIN(name, ep_list) \
+    DECLARE_PLUGIN(name, NULL, NULL, NULL, NULL, ep_list)
+
+#define SIMPLE_GENERAL_PLUGIN(name, gp_list) \
+    DECLARE_PLUGIN(name, NULL, NULL, NULL, NULL, NULL, gp_list)
+
+#define SIMPLE_VISUAL_PLUGIN(name, vp_list) \
+    DECLARE_PLUGIN(name, NULL, NULL, NULL, NULL, NULL, NULL, vp_list)
+
+#define SIMPLE_DISCOVER_PLUGIN(name, dp_list) \
+    DECLARE_PLUGIN(name, NULL, NULL, NULL, NULL, NULL, NULL, NULL, dp_list)
+
 /* Sadly, this is the most we can generalize out of the disparate
    plugin structs usable with typecasts - descender */
 struct _Plugin {