# HG changeset patch # User Yoshiki Yazawa # Date 1186209457 -32400 # Node ID 12bc288a7511e69c6c4c1a4acf535a9f56db8aac # Parent 74a999f3f4d26acfcb44bc471e870f4602e66c67 add simplified macros to declare plugin. no more excessive NULLs. diff -r 74a999f3f4d2 -r 12bc288a7511 src/audacious/plugin.h --- 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 {