mirror of
https://git.zx2c4.com/cgit
synced 2025-08-04 01:54:28 +02:00
Move function for configfile parsing into configfile.[ch]
This is a generic function which wanted its own little object file. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
parent
ee4056bd2c
commit
20a33548b9
6 changed files with 99 additions and 78 deletions
8
configfile.h
Normal file
8
configfile.h
Normal file
|
@ -0,0 +1,8 @@
|
|||
#ifndef CONFIGFILE_H
|
||||
#define CONFIGFILE_H
|
||||
|
||||
typedef void (*configfile_value_fn)(const char *name, const char *value);
|
||||
|
||||
extern int parse_configfile(const char *filename, configfile_value_fn fn);
|
||||
|
||||
#endif /* CONFIGFILE_H */
|
Loading…
Add table
Add a link
Reference in a new issue