summaryrefslogtreecommitdiff
path: root/src/basic/proc-cmdline.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-09-26 09:29:09 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-10-08 17:05:19 +0200
commit9a135c084ae6d06734ec3380f0eafdecd7c216f8 (patch)
tree437788e57b26e66d6df2325c5d782ca171c4691d /src/basic/proc-cmdline.h
parent1af294fc82059975ce5f8f566a21385245773a59 (diff)
downloadsystemd-9a135c084ae6d06734ec3380f0eafdecd7c216f8.tar.gz
basic/proc-cmdline: allow parsing of cmdline from a string
Comes with tests. Also add direct test for $SYSTEMD_PROC_CMDLINE. In test-proc-cmdline, "true" was masquerading as PROC_CMDLINE_STRIP_RD_PREFIX, fix that. Also, reorder functions to match call order.
Diffstat (limited to 'src/basic/proc-cmdline.h')
-rw-r--r--src/basic/proc-cmdline.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/basic/proc-cmdline.h b/src/basic/proc-cmdline.h
index 4a9e6e0f62..ffc45fddb9 100644
--- a/src/basic/proc-cmdline.h
+++ b/src/basic/proc-cmdline.h
@@ -14,6 +14,7 @@ typedef int (*proc_cmdline_parse_t)(const char *key, const char *value, void *da
int proc_cmdline(char **ret);
+int proc_cmdline_parse_given(const char *line, proc_cmdline_parse_t parse_item, void *data, unsigned flags);
int proc_cmdline_parse(const proc_cmdline_parse_t parse, void *userdata, unsigned flags);
int proc_cmdline_get_key(const char *parameter, unsigned flags, char **value);