19#ifndef NETSURF_UTILS_HTTP_GENERICS_H_
20#define NETSURF_UTILS_HTTP_GENERICS_H_
35#define HTTP__ITEM_INIT(item, n, f) \
36 ((http__item *) (item))->next = (http__item *) (n); \
37 ((http__item *) (item))->free = (void (*)(http__item *)) (f)
46#define http__item_list_destroy(l) \
47 http___item_list_destroy((http__item *) (l))
52#define http__item_list_parse(i, p, f, r) \
53 http___item_list_parse((i), \
54 (http__itemparser) (p), \
56 (http__item **) (void *) (r))
static html_css_fetcher_item * items
nserror
Enumeration of error codes.
nserror http___item_list_parse(const char **input, http__itemparser itemparser, http__item *first, http__item **items)
Parse a list of items.
void http___item_list_destroy(http__item *list)
Destructor for an item list.
nserror(* http__itemparser)(const char **input, http__item **item)
Type of an item parser.
struct http__item http__item
Representation of an item.
Representation of an item.
void(* free)(struct http__item *self)
Item destructor.
struct http__item * next
Next item in list, or NULL.