NetSurf
Typedefs | Functions
parameter.h File Reference
#include <libwapcaplet/libwapcaplet.h>
#include "utils/errors.h"
Include dependency graph for parameter.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef struct http_parameter http_parameter
 

Functions

nserror http_parameter_list_find_item (const http_parameter *list, lwc_string *name, lwc_string **value)
 Find a named item in an HTTP parameter list. More...
 
const http_parameterhttp_parameter_list_iterate (const http_parameter *cur, lwc_string **name, lwc_string **value)
 Iterate over a parameter list. More...
 
void http_parameter_list_destroy (http_parameter *list)
 Destroy a list of HTTP parameters. More...
 

Typedef Documentation

◆ http_parameter

Definition at line 26 of file parameter.h.

Function Documentation

◆ http_parameter_list_destroy()

void http_parameter_list_destroy ( http_parameter list)

Destroy a list of HTTP parameters.

Parameters
listList to destroy

Definition at line 149 of file parameter.c.

References http__item_list_destroy.

Referenced by http__parse_challenge(), http_content_disposition_destroy(), http_content_type_destroy(), http_destroy_challenge(), http_parse_content_disposition(), and http_parse_content_type().

Here is the caller graph for this function:

◆ http_parameter_list_find_item()

nserror http_parameter_list_find_item ( const http_parameter list,
lwc_string *  name,
lwc_string **  value 
)

Find a named item in an HTTP parameter list.

Parameters
listList to search
nameName of item to search for
valuePointer to location to receive value
Returns
NSERROR_OK on success, NSERROR_NOT_FOUND if requested item does not exist

Definition at line 114 of file parameter.c.

References http_parameter::base, http_parameter::name, http__item::next, NSERROR_NOT_FOUND, NSERROR_OK, and http_parameter::value.

Referenced by download_context_process_headers(), html_create_html_data(), nscss_create(), and textplain_create().

Here is the caller graph for this function:

◆ http_parameter_list_iterate()

const http_parameter * http_parameter_list_iterate ( const http_parameter cur,
lwc_string **  name,
lwc_string **  value 
)

Iterate over a parameter list.

Parameters
curPointer to current iteration position, list head to start
namePointer to location to receive item name
valuePointer to location to receive item value
Returns
Pointer to next iteration position, or NULL for end of iteration

Definition at line 136 of file parameter.c.

References http_parameter::base, http_parameter::name, http__item::next, and http_parameter::value.