diff options
Diffstat (limited to 'libopkg/parse_util.h')
-rw-r--r-- | libopkg/parse_util.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libopkg/parse_util.h b/libopkg/parse_util.h index d1aba4c..26e2d5b 100644 --- a/libopkg/parse_util.h +++ b/libopkg/parse_util.h @@ -18,13 +18,14 @@ #ifndef PARSE_UTIL_H #define PARSE_UTIL_H -#include "pkg.h" - int is_field(const char *type, const char *line); char *parse_simple(const char *type, const char *line); char **parse_list(const char *raw, unsigned int *count, const char sep, int skip_field); -int parse_from_stream_nomalloc(pkg_t *pkg, FILE *fp, uint mask, +typedef int (*parse_line_t)(void *, const char *, uint); +int parse_from_stream_nomalloc(parse_line_t parse_line, void *item, FILE *fp, uint mask, char **buf0, size_t buf0len); +#define EXCESSIVE_LINE_LEN (4096 << 8) + #endif |