summaryrefslogtreecommitdiff
path: root/keyword.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyword.h')
-rw-r--r--keyword.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/keyword.h b/keyword.h
index d4343b0..5fccbc4 100644
--- a/keyword.h
+++ b/keyword.h
@@ -7,6 +7,7 @@ typedef enum keyword_type keyword_type;
typedef struct keyword keyword;
typedef union keyword_val keyword_val;
typedef int (keyword_cb)(void *ctx, void *ret, const keyword *key, keyword_val val);
+typedef int (parse_callback)(void **ret, void *ctx, char *buf);
enum keyword_type {
TYPE_NONE,
@@ -39,4 +40,5 @@ extern keyword_val get_keyword_value(const keyword *key, char *value, int *error
extern int set_keyword(const keyword *key, keyword_val val, void *ret, void *ctx);
extern keyword_val parse_keyword(const keyword *key, char *key_str, char *value, int *error);
extern int parse_keywords(const keyword **keys, char *key, char *value, void *ret, void *ctx);
+extern int parse_key_value_file(void *ret, void *ctx, const keyword **keywords, char *buf, const char *delm, parse_callback *parse_cb);
#endif