rtl433  UNKNOWN
RTL-433 utility
confparse.h
Go to the documentation of this file.
1 
12 #ifndef INCLUDE_CONFPARSE_H_
13 #define INCLUDE_CONFPARSE_H_
14 
15 struct conf_keywords {
16  char const *keyword;
17  int key;
18 };
19 
25 int hasconf(char const *path);
26 
32 char *readconf(char const *path);
33 
41 int getconf(char **conf, struct conf_keywords const keywords[], char **arg);
42 
43 #endif /* INCLUDE_CONFPARSE_H_ */
int getconf(char **conf, struct conf_keywords const keywords[], char **arg)
Return the next keyword token and set the optional argument.
Definition: confparse.c:81
Definition: confparse.h:15
char const * keyword
Definition: confparse.h:16
int key
Definition: confparse.h:17
char * readconf(char const *path)
Open a config file, read contents to memory.
Definition: confparse.c:50
int hasconf(char const *path)
Check if a file exists and can be read.
Definition: confparse.c:45