Convert machinectl to option and verb macros (#42117)

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2026-05-16 17:18:10 +02:00
committed by GitHub
17 changed files with 1232 additions and 1350 deletions
+2
View File
@@ -60,6 +60,8 @@ typedef struct {
VERB_SCOPE(scope, d, v, /* a= */ NULL, /* amin= */ VERB_ANY, /* amax= */ 1, /* f= */ 0, h)
#define VERB_NOARG(d, v, h) \
VERB_SCOPE_NOARG(static, d, v, h)
#define VERB_DEFAULT_NOARG(d, v, h) \
VERB_SCOPE(static, d, v, /* a= */ NULL, /* amin= */ VERB_ANY, /* amax= */ 1, /* f= */ VERB_DEFAULT, h)
/* Magic entry in the table (which will not be returned) that designates the start of the group <gr>.
* The macro works as a separator between groups and must be between other VERB* stanzas. */