summaryrefslogtreecommitdiffstats
path: root/include/parseopt.h
blob: 5a40bdc219fed68e65c863c3c3245221deb8bb76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef __PARSEOPT_H__
#define __PARSEOPT_H__
void parseopt_llu_suffix(const char *options, const char *opt,
			 unsigned long long *val);

void parseopt_b(const char *options, const char *opt, bool *val);
void parseopt_hu(const char *options, const char *opt, unsigned short *val);
void parseopt_u16(const char *options, const char *opt, uint16_t *val);
void parseopt_str(const char *options, const char *opt, char **val);

#endif /* __PARSEOPT_H__ */