From 55944e5e40b1be2afc4855d8d2baf4b73d1876b5 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 10 Apr 2024 22:49:52 +0200 Subject: Adding upstream version 255.4. Signed-off-by: Daniel Baumann --- src/shared/parse-argument.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/shared/parse-argument.h (limited to 'src/shared/parse-argument.h') diff --git a/src/shared/parse-argument.h b/src/shared/parse-argument.h new file mode 100644 index 0000000..adad65e --- /dev/null +++ b/src/shared/parse-argument.h @@ -0,0 +1,9 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ +#pragma once + +#include "json.h" + +int parse_boolean_argument(const char *optname, const char *s, bool *ret); +int parse_json_argument(const char *s, JsonFormatFlags *ret); +int parse_path_argument(const char *path, bool suppress_root, char **arg); +int parse_signal_argument(const char *s, int *ret); -- cgit v1.2.3