1#ifndef COMPA_GENLIB_NET_URI_HPP
2#define COMPA_GENLIB_NET_URI_HPP
116#if defined(DEBUG) || defined(DOXYGEN_RUN)
122#define print_uri(in) \
127#if defined(DEBUG) || defined(DOXYGEN_RUN)
134#define print_token(in) \
int parse_token(char *in, token *out, int max_size)
int copy_URL_list(URL_list *in, URL_list *out)
Copies one URL_list into another.
int token_cmp(token *in1, token *in2)
Compares two tokens.
size_t size
Number of urls (not characters).
int token_string_casecmp(token *in1, const char *in2)
Compares buffer in the token object with the buffer in in2 case insensitive.
char * resolve_rel_url(char *a_base_url, char *a_rel_url)
Resolves a relative url with a base url.
void print_uri(uri_type *in)
Function useful in debugging for printing a parsed uri.
void print_token(token *in)
Function useful in debugging for printing a token.
int create_url_list(memptr *a_url_list, URL_list *a_out)
Function to parse the Callback header value in subscription requests.
void free_URL_list(URL_list *list)
Frees the memory associated with a URL_list.
Represents a list of URLs as in the "callback" header of SUBSCRIBE message in GENA.
Manage Uniform Resource Identifier (URI) as specified with RFC 3986.
Represents a URI used in parse_uri and elsewhere.
Buffer used in parsing http messages, urls, etc. Generally this simply holds a pointer into a larger ...
Manage blocks of dynamically allocated memory.
pointer to a chunk of memory.