/* parse_util.h - the opkg package management system
Steven M. Ayer
-
+
Copyright (C) 2002 Compaq Computer Corporation
This program is free software; you can redistribute it and/or
char **parse_list(const char *raw, unsigned int *count, const char sep,
int skip_field);
-typedef int (*parse_line_t) (void *, const char *, uint);
+typedef int (*parse_line_t) (void *, char *, uint);
int parse_from_stream_nomalloc(parse_line_t parse_line, void *item, FILE * fp,
uint mask, char **buf0, size_t buf0len);
return pkg_set_architecture(pkg, s, e - s);
}
-int pkg_parse_line(void *ptr, const char *line, uint mask)
+int pkg_parse_line(void *ptr, char *line, uint mask)
{
pkg_t *pkg = (pkg_t *) ptr;
abstract_pkg_t *ab_pkg = NULL;
int parse_version(pkg_t * pkg, const char *raw);
int pkg_parse_from_stream(pkg_t * pkg, FILE * fp, uint mask);
-int pkg_parse_line(void *ptr, const char *line, uint mask);
+int pkg_parse_line(void *ptr, char *line, uint mask);
#define EXCESSIVE_LINE_LEN (4096 << 8)