NetSurf
|
Go to the source code of this file.
Data Structures | |
struct | http__item |
Representation of an item. More... | |
Macros | |
#define | HTTP__ITEM_INIT(item, n, f) |
#define | http__item_list_destroy(l) http___item_list_destroy((http__item *) (l)) |
#define | http__item_list_parse(i, p, f, r) |
Typedefs | |
typedef struct http__item | http__item |
Representation of an item. More... | |
typedef nserror(* | http__itemparser) (const char **input, http__item **item) |
Type of an item parser. More... | |
Functions | |
void | http___item_list_destroy (http__item *list) |
Destructor for an item list. More... | |
nserror | http___item_list_parse (const char **input, http__itemparser itemparser, http__item *first, http__item **items) |
Parse a list of items. More... | |
#define HTTP__ITEM_INIT | ( | item, | |
n, | |||
f | |||
) |
Definition at line 35 of file generics.h.
#define http__item_list_destroy | ( | l | ) | http___item_list_destroy((http__item *) (l)) |
Definition at line 46 of file generics.h.
#define http__item_list_parse | ( | i, | |
p, | |||
f, | |||
r | |||
) |
Definition at line 52 of file generics.h.
typedef struct http__item http__item |
Representation of an item.
typedef nserror(* http__itemparser) (const char **input, http__item **item) |
Type of an item parser.
Definition at line 42 of file generics.h.
void http___item_list_destroy | ( | http__item * | list | ) |
Destructor for an item list.
list | List to destroy |
Definition at line 29 of file generics.c.
References http__item::free, and http__item::next.
nserror http___item_list_parse | ( | const char ** | input, |
http__itemparser | itemparser, | ||
http__item * | first, | ||
http__item ** | items | ||
) |
Parse a list of items.
input | Pointer to current input byte. Updated on exit. |
itemparser | Pointer to function to parse list items |
first | Pointer to first item, or NULL. |
items | Pointer to location to receive on-heap parameter list. |
The returned list is owned by the caller
Definition at line 55 of file generics.c.
References http__item_list_destroy, http__skip_LWS(), items, http__item::next, NSERROR_NOT_FOUND, and NSERROR_OK.