23 #include <osipparser2/osip_const.h>
95 void osip_uri_param_freelist(
osip_list_t *url_params);
116 #define osip_uri_header_init(url_header) osip_uri_param_init(url_header)
121 #define osip_uri_header_free(url_header) osip_uri_param_free(url_header)
128 #define osip_uri_header_set(url_header, name, value) osip_uri_param_set(url_header, name, value)
134 #define osip_uri_header_clone(url_header, dest) osip_uri_param_clone(url_header, dest)
140 #define osip_uri_header_freelist(LIST) osip_uri_param_freelist(LIST)
148 #define osip_uri_header_add(url_headers, name, value) osip_uri_param_add(url_headers, name, value)
155 #define osip_uri_header_get_byname(url_headers, name, dest) osip_uri_param_get_byname(url_headers, name, dest)
203 int osip_uri_parse_headers(
osip_uri_t *url,
const char *buf);
209 int osip_uri_parse_params(
osip_uri_t *url,
const char *buf);
291 #define osip_uri_set_transport_udp(url) osip_uri_param_add((&(url)->url_params), osip_strdup("transport"), osip_strdup("udp"))
296 #define osip_uri_set_transport_tcp(url) osip_uri_param_add((&(url)->url_params), osip_strdup("transport"), osip_strdup("tcp"))
301 #define osip_uri_set_transport_sctp(url) osip_uri_param_add((&(url)->url_params), osip_strdup("transport"), osip_strdup("sctp"))
306 #define osip_uri_set_transport_tls(url) osip_uri_param_add((&(url)->url_params), osip_strdup("transport"), osip_strdup("tls"))
312 #define osip_uri_set_transport(url, value) osip_uri_param_add((&(url)->url_params), osip_strdup("transport"), value)
318 #define osip_uri_set_user_phone(url) osip_uri_param_add((&(url)->url_params), osip_strdup("user"), osip_strdup("phone"))
323 #define osip_uri_set_user_ip(url) osip_uri_param_add((&(url)->url_params), osip_strdup("user"), osip_strdup("ip"))
328 #define osip_uri_set_method_invite(url) osip_uri_param_add((&(url)->url_params), osip_strdup("method"), osip_strdup("INVITE"))
333 #define osip_uri_set_method_ack(url) osip_uri_param_add((&(url)->url_params), osip_strdup("method"), osip_strdup("ACK"))
338 #define osip_uri_set_method_options(url) osip_uri_param_add((&(url)->url_params), osip_strdup("method"), osip_strdup("OPTIONS"))
343 #define osip_uri_set_method_bye(url) osip_uri_param_add((&(url)->url_params), osip_strdup("method"), osip_strdup("BYE"))
348 #define osip_uri_set_method_cancel(url) osip_uri_param_add((&(url)->url_params), osip_strdup("method"), osip_strdup("CANCEL"))
353 #define osip_uri_set_method_register(url) osip_uri_param_add((&(url)->url_params), osip_strdup("method"), osip_strdup("REGISTER"))
359 #define osip_uri_set_method(url, value) osip_uri_param_add((&(url)->url_params), osip_strdup("method"), value)
365 #define osip_uri_set_ttl(url, value) osip_uri_param_add((&(url)->url_params), osip_strdup("ttl"), value)
371 #define osip_uri_set_maddr(url, value) osip_uri_param_add((&(url)->url_params), osip_strdup("maddr"), value)
379 #define osip_uri_uparam_add(url, name, value) osip_uri_param_add((&(url)->url_params), name, value)
386 #define osip_uri_uparam_get_byname(url, name, dest) osip_uri_param_get_byname((&(url)->url_params), name, dest)
394 #define osip_uri_uheader_add(url, name, value) osip_uri_header_add((&(url)->url_headers), name, value)
401 #define osip_uri_uheader_get_byname(url, name, dest) osip_uri_header_get_byname((&(url)->url_headers), name, dest)
405 const char *next_separator(
const char *ch,
int separator_osip_to_find,
int before_separator);
407 char *__osip_uri_escape_nonascii_and_nondef(
const char *
string,
const char *def);
408 char *__osip_uri_escape_userinfo(
const char *
string);
409 char *__osip_uri_escape_password(
const char *
string);
410 char *__osip_uri_escape_uri_param(
char *
string);
411 char *__osip_uri_escape_header_param(
char *
string);
412 void __osip_uri_unescape(
char *
string);
int osip_uri_param_init(osip_uri_param_t **url_param)
Definition: osip_uri.c:871
int osip_uri_param_set(osip_uri_param_t *url_param, char *name, char *value)
Definition: osip_uri.c:888
char * osip_uri_get_username(osip_uri_t *url)
Definition: osip_uri.c:324
int osip_uri_clone(const osip_uri_t *url, osip_uri_t **dest)
Definition: osip_uri.c:818
char * osip_uri_get_password(osip_uri_t *url)
Definition: osip_uri.c:338
int osip_uri_parse(osip_uri_t *url, const char *buf)
Definition: osip_uri.c:99
void osip_uri_free(osip_uri_t *url)
Definition: osip_uri.c:791
void osip_uri_set_password(osip_uri_t *url, char *value)
Definition: osip_uri.c:331
int osip_uri_init(osip_uri_t **url)
Definition: osip_uri.c:31
void osip_uri_param_free(osip_uri_param_t *url_param)
Definition: osip_uri.c:882
int osip_uri_param_clone(const osip_uri_param_t *url_param, osip_uri_param_t **dest)
Definition: osip_uri.c:963
int osip_uri_param_get_byname(osip_list_t *url_params, char *name, osip_uri_param_t **dest)
Definition: osip_uri.c:930
void osip_uri_set_host(osip_uri_t *url, char *value)
Definition: osip_uri.c:345
char * osip_uri_get_scheme(osip_uri_t *url)
Definition: osip_uri.c:310
void osip_uri_set_username(osip_uri_t *url, char *value)
Definition: osip_uri.c:317
void osip_uri_set_port(osip_uri_t *url, char *value)
Definition: osip_uri.c:359
void osip_uri_set_scheme(osip_uri_t *url, char *value)
Definition: osip_uri.c:303
int osip_uri_to_str(const osip_uri_t *url, char **dest)
Definition: osip_uri.c:569
osip_uri_param_t osip_uri_header_t
Definition: osip_uri.h:65
int osip_uri_param_add(osip_list_t *url_params, char *name, char *value)
Definition: osip_uri.c:900
char * osip_uri_get_host(osip_uri_t *url)
Definition: osip_uri.c:352
char * osip_uri_get_port(osip_uri_t *url)
Definition: osip_uri.c:366
int osip_uri_to_str_canonical(const osip_uri_t *url, char **dest)
Definition: osip_uri.c:1129
Definition: osip_list.h:87
Definition: osip_uri.h:55
char * gvalue
Definition: osip_uri.h:57
char * gname
Definition: osip_uri.h:56
Definition: osip_uri.h:167
char * string
Definition: osip_uri.h:177
char * scheme
Definition: osip_uri.h:168
char * password
Definition: osip_uri.h:170
char * host
Definition: osip_uri.h:171
osip_list_t url_headers
Definition: osip_uri.h:174
char * port
Definition: osip_uri.h:172
osip_list_t url_params
Definition: osip_uri.h:173
char * username
Definition: osip_uri.h:169