core: added MRP_PLUGIN_ARGUMENTS convenience macro.
authorKrisztian Litkey <krisztian.litkey@intel.com>
Thu, 4 Oct 2012 06:42:43 +0000 (09:42 +0300)
committerKrisztian Litkey <krisztian.litkey@intel.com>
Fri, 26 Oct 2012 16:03:51 +0000 (19:03 +0300)
src/core/plugin.h

index a6bf2f8..c307c13 100644 (file)
@@ -99,6 +99,12 @@ typedef struct {
 } mrp_plugin_arg_t;
 
 
+/** Macro for declaring a plugin argument table. */
+#define MRP_PLUGIN_ARGUMENTS(table, ...)     \
+    static mrp_plugin_arg_t table[] =        \
+        __VA_ARGS__                          \
+
+
 /** Convenience macros for setting up argument tables with type and defaults. */
 #define MRP_PLUGIN_ARG_STRING(name, defval)                                \
     { key: name, type: MRP_PLUGIN_ARG_TYPE_STRING, { str: defval } }