]>
git.ipfire.org Git - thirdparty/systemd.git/blob - src/shared/verbs.h
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
6 #define VERB_ANY (UINT_MAX)
8 typedef enum VerbFlags
{
9 VERB_DEFAULT
= 1 << 0, /* The verb to run if no verb is specified */
10 VERB_ONLINE_ONLY
= 1 << 1, /* Just do nothing when running in chroot or offline */
15 unsigned min_args
, max_args
;
17 int (* const dispatch
)(int argc
, char *argv
[], void *userdata
);
20 bool running_in_chroot_or_offline(void);
22 const Verb
* verbs_find_verb(const char *name
, const Verb verbs
[]);
23 int dispatch_verb(int argc
, char *argv
[], const Verb verbs
[], void *userdata
);