summaryrefslogtreecommitdiffstats
path: root/src/shared/parse-argument.h
blob: adad65e90257a48f71c30a4d13143b7a9c07f9cc (plain)
1
2
3
4
5
6
7
8
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);