1 /* SPDX-License-Identifier: LGPL-2.1+ */
5 This file is part of systemd.
7 Copyright 2014 Lennart Poettering
10 #define VERB_ANY ((unsigned) -1)
12 typedef enum VerbFlags {
13 VERB_DEFAULT = 1 << 0,
14 VERB_ONLINE_ONLY = 1 << 1,
15 VERB_MUST_BE_ROOT = 1 << 2,
20 unsigned min_args, max_args;
22 int (* const dispatch)(int argc, char *argv[], void *userdata);
25 bool running_in_chroot_or_offline(void);
27 int dispatch_verb(int argc, char *argv[], const Verb verbs[], void *userdata);