summaryrefslogtreecommitdiff
path: root/src/shared/verbs.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-04-30 14:20:31 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-05-05 18:04:55 +0200
commit9321e23c40f3dc6bd785105ce882cbad6447a1c6 (patch)
treebdccde4041ccf670f533e8d62296befc40c1a5fa /src/shared/verbs.h
parentd8b065e0561e0180d34ddae580ec1b17929d78e7 (diff)
downloadsystemd-9321e23c40f3dc6bd785105ce882cbad6447a1c6.tar.gz
shared/verbs: split out helper to find verbs
It will be used later, but I think it makes the code clearer anyway. Also change the message about ignoring to include the name for default verbs.
Diffstat (limited to 'src/shared/verbs.h')
-rw-r--r--src/shared/verbs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/verbs.h b/src/shared/verbs.h
index fd35a2e0dd..b6a1afcdee 100644
--- a/src/shared/verbs.h
+++ b/src/shared/verbs.h
@@ -19,4 +19,5 @@ typedef struct {
bool running_in_chroot_or_offline(void);
+const Verb* verbs_find_verb(const char *name, const Verb verbs[]);
int dispatch_verb(int argc, char *argv[], const Verb verbs[], void *userdata);