@@ -577,7 +577,7 @@ void *plugin_get_data_(struct plugin *plugin);
577577#define plugin_get_data (plugin , type ) ((type *)(plugin_get_data_(plugin)))
578578
579579/* Macro to define arguments */
580- #define plugin_option_ (name , type , description , set , jsonfmt , arg , dev_only , depr_start , depr_end , dynamic ) \
580+ #define plugin_option_ (name , type , description , set , jsonfmt , arg , dev_only , depr_start , depr_end , dynamic , multi ) \
581581 (name), \
582582 (type), \
583583 (description), \
@@ -594,23 +594,27 @@ void *plugin_get_data_(struct plugin *plugin);
594594 (dev_only), \
595595 (depr_start), \
596596 (depr_end), \
597- (dynamic)
597+ (dynamic), \
598+ (multi)
598599
599600/* jsonfmt can be NULL, but then default won't be printed */
600601#define plugin_option (name , type , description , set , jsonfmt , arg ) \
601- plugin_option_((name), (type), (description), (set), (jsonfmt), (arg), false, NULL, NULL, false)
602+ plugin_option_((name), (type), (description), (set), (jsonfmt), (arg), false, NULL, NULL, false, false )
602603
603604#define plugin_option_dev (name , type , description , set , jsonfmt , arg ) \
604- plugin_option_((name), (type), (description), (set), (jsonfmt), (arg), true, NULL, NULL, false)
605+ plugin_option_((name), (type), (description), (set), (jsonfmt), (arg), true, NULL, NULL, false, false )
605606
606607#define plugin_option_dev_dynamic (name , type , description , set , jsonfmt , arg ) \
607- plugin_option_((name), (type), (description), (set), (jsonfmt), (arg), true, NULL, NULL, true)
608+ plugin_option_((name), (type), (description), (set), (jsonfmt), (arg), true, NULL, NULL, true, false )
608609
609610#define plugin_option_dynamic (name , type , description , set , jsonfmt , arg ) \
610- plugin_option_((name), (type), (description), (set), (jsonfmt), (arg), false, NULL, NULL, true)
611+ plugin_option_((name), (type), (description), (set), (jsonfmt), (arg), false, NULL, NULL, true, false )
611612
612613#define plugin_option_deprecated (name , type , description , depr_start , depr_end , set , jsonfmt , arg ) \
613- plugin_option_((name), (type), (description), (set), (jsonfmt), (arg), false, (depr_start), (depr_end), false)
614+ plugin_option_((name), (type), (description), (set), (jsonfmt), (arg), false, (depr_start), (depr_end), false, false)
615+
616+ #define plugin_option_multi (name , type , description , set , jsonfmt , arg ) \
617+ plugin_option_((name), (type), (description), (set), (jsonfmt), (arg), false, NULL, NULL, false, true)
614618
615619/* Standard helpers */
616620char * u64_option (struct plugin * plugin , const char * arg , bool check_only , u64 * i );
0 commit comments