aboutsummaryrefslogtreecommitdiffstats
path: root/l4arg/l4arg.h
blob: b4da062bb998e43c0ca49e1758b0e461bc0c57cb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef L4LIB_ARG_PARSER
#define L4LIB_ARG_PARSER

#ifdef __cplusplus
extern "C" {
#endif

char** l4arg_toargv(const char*, const char*, const char*, const char*);
void l4arg_toargv_free(char**);

typedef struct l4lib_qarg {
    char* arg_name;
    char* arg_value;
} L4QARG;

L4QARG* l4qarg_parse(const char*);
void l4qarg_free(L4QARG*);
#define l4qarg_n(qargitem) ((qargitem).arg_name)
#define l4qarg_v(qargitem) ((qargitem).arg_value)

#ifdef __cplusplus
}
#endif

#endif