Data Structures
Structure for referencing url parameters.
More...
Structure for referencing SIP urls.
More...
Macros
Allocate a generic parameter element.
More...
Free a generic parameter element.
More...
Set values of a generic parameter element.
More...
Clone a generic parameter element.
More...
Allocate and add a generic parameter element in a list.
More...
Find in a generic parameter element in a list.
More...
Set the transport parameter to UDP in a url element.
More...
Set the transport parameter to TCP in a url element.
More...
Set the transport parameter to SCTP in a url element.
More...
Set the transport parameter to TLS in a url element.
More...
Set the transport parameter to TLS in a url element.
More...
Set the user parameter to PHONE in a url element.
More...
Set the user parameter to IP in a url element.
More...
Set a method parameter to INVITE in a url element.
More...
Set a method parameter to ACK in a url element.
More...
Set a method parameter to OPTIONS in a url element.
More...
Set a method parameter to BYE in a url element.
More...
Set a method parameter to CANCEL in a url element.
More...
Set a method parameter to REGISTER in a url element.
More...
Set a method parameter in a url element.
More...
Set a ttl parameter in a url element.
More...
Set a maddr parameter in a url element.
More...
Allocate and add a url parameter element in a url element.
More...
Find in a url parameter element in a url element.
More...
Allocate and add a url header element in a url element.
More...
Find in a url header element in a url element.
More...
Typedefs
Structure for referencing url parameters.
More...
Structure for referencing url headers.
More...
Structure for referencing SIP urls.
More...
Functions
Allocate a url parameter element.
More...
Free a url parameter element.
More...
Set values of a url parameter element.
More...
Clone a url parameter element.
More...
Allocate and add a url parameter element in a list.
More...
Find in a url parameter element in a list.
More...
Parse the header part of a url.
More...
Parse the parameter part of a url.
More...
Get a string representation of a url element.
More...
Get a canonical string representation of a url element.
More...
Set the scheme of a url element.
More...
Get the scheme of a url element.
More...
Set the host of a url element.
More...
Get the host of a url element.
More...
Set the username of a url element.
More...
Get the username of a url element.
More...
Set the password of a url element.
More...
Get the password of a url element.
More...
Set the port of a url element.
More...
Get the port of a url element.
More...
const char *
next_separator (const char *ch, int separator_osip_to_find, int before_separator)
Detailed Description
Macro Definition Documentation
#define osip_uri_header_add
(
url_headers,
#include <osip_uri.h>
Allocate and add a generic parameter element in a list.
- Parameters
-
url_headers The list of generic parameter element to work on.
name The token name.
value The token value.
Definition at line 148 of file osip_uri.h.
#define osip_uri_header_clone
(
url_header,
dest
#include <osip_uri.h>
Clone a generic parameter element.
- Parameters
-
url_header The element to work on.
dest The resulting new allocated element.
Definition at line 134 of file osip_uri.h.
#include <osip_uri.h>
Free a generic parameter element.
- Parameters
-
url_header The element to work on.
Definition at line 121 of file osip_uri.h.
#define osip_uri_header_get_byname
(
url_headers,
dest
#include <osip_uri.h>
Find in a generic parameter element in a list.
- Parameters
-
url_headers The list of generic parameter element to work on.
name The name of the parameter element to find.
dest A pointer on the element found.
Definition at line 155 of file osip_uri.h.
#include <osip_uri.h>
Allocate a generic parameter element.
- Parameters
-
url_header The element to work on.
Definition at line 116 of file osip_uri.h.
#define osip_uri_header_set
(
url_header,
#include <osip_uri.h>
Set values of a generic parameter element.
- Parameters
-
url_header The element to work on.
name The token name.
value The token value.
Definition at line 128 of file osip_uri.h.
#define osip_uri_set_maddr
(
url,
#include <osip_uri.h>
Set a maddr parameter in a url element.
- Parameters
-
url The element to work on.
value The value for the maddr parameter.
Definition at line 373 of file osip_uri.h.
#define osip_uri_set_method
(
url,
#include <osip_uri.h>
Set a method parameter in a url element.
- Parameters
-
url The element to work on.
value The value for the method parameter.
Definition at line 361 of file osip_uri.h.
#include <osip_uri.h>
Set a method parameter to ACK in a url element.
- Parameters
-
url The element to work on.
Definition at line 335 of file osip_uri.h.
#include <osip_uri.h>
Set a method parameter to BYE in a url element.
- Parameters
-
url The element to work on.
Definition at line 345 of file osip_uri.h.
#include <osip_uri.h>
Set a method parameter to CANCEL in a url element.
- Parameters
-
url The element to work on.
Definition at line 350 of file osip_uri.h.
#include <osip_uri.h>
Set a method parameter to INVITE in a url element.
- Parameters
-
url The element to work on.
Definition at line 330 of file osip_uri.h.
#include <osip_uri.h>
Set a method parameter to OPTIONS in a url element.
- Parameters
-
url The element to work on.
Definition at line 340 of file osip_uri.h.
#include <osip_uri.h>
Set a method parameter to REGISTER in a url element.
- Parameters
-
url The element to work on.
Definition at line 355 of file osip_uri.h.
#define osip_uri_set_transport
(
url,
#include <osip_uri.h>
Set the transport parameter to TLS in a url element.
- Parameters
-
url The element to work on.
value The value describing the transport protocol.
Definition at line 314 of file osip_uri.h.
#include <osip_uri.h>
Set the transport parameter to SCTP in a url element.
- Parameters
-
url The element to work on.
Definition at line 303 of file osip_uri.h.
#include <osip_uri.h>
Set the transport parameter to TCP in a url element.
- Parameters
-
url The element to work on.
Definition at line 298 of file osip_uri.h.
#include <osip_uri.h>
Set the transport parameter to TLS in a url element.
- Parameters
-
url The element to work on.
Definition at line 308 of file osip_uri.h.
#include <osip_uri.h>
Set the transport parameter to UDP in a url element.
- Parameters
-
url The element to work on.
Definition at line 293 of file osip_uri.h.
#define osip_uri_set_ttl
(
url,
#include <osip_uri.h>
Set a ttl parameter in a url element.
- Parameters
-
url The element to work on.
value The value for the ttl parameter.
Definition at line 367 of file osip_uri.h.
#include <osip_uri.h>
Set the user parameter to IP in a url element.
- Parameters
-
url The element to work on.
Definition at line 325 of file osip_uri.h.
#include <osip_uri.h>
Set the user parameter to PHONE in a url element.
- Parameters
-
url The element to work on.
Definition at line 320 of file osip_uri.h.
#define osip_uri_uheader_add
(
url,
#include <osip_uri.h>
Allocate and add a url header element in a url element.
- Parameters
-
url The element to work on.
name The token name.
value The token value.
Definition at line 396 of file osip_uri.h.
#define osip_uri_uheader_get_byname
(
url,
dest
#include <osip_uri.h>
Find in a url header element in a url element.
- Parameters
-
url The element to work on.
name The name of the url header element to find.
dest A pointer on the element found.
Definition at line 403 of file osip_uri.h.
#define osip_uri_uparam_add
(
url,
#include <osip_uri.h>
Allocate and add a url parameter element in a url element.
- Parameters
-
url The element to work on.
name The token name.
value The token value.
Definition at line 381 of file osip_uri.h.
#define osip_uri_uparam_get_byname
(
url,
dest
#include <osip_uri.h>
Find in a url parameter element in a url element.
- Parameters
-
url The element to work on.
name The name of the url parameter element to find.
dest A pointer on the element found.
Definition at line 388 of file osip_uri.h.
Typedef Documentation
Function Documentation
char* __osip_uri_escape_header_param
(
char *
string )
char* __osip_uri_escape_nonascii_and_nondef
(
const char *
string,
const char *
def
)
char* __osip_uri_escape_password
(
const char *
string )
char* __osip_uri_escape_uri_param
(
char *
string )
char* __osip_uri_escape_userinfo
(
const char *
string )
void __osip_uri_unescape
(
char *
string )
const char* next_separator
(
const char *
ch,
int
separator_osip_to_find,
int
before_separator
)
#include <osip_uri.h>
Clone a url element.
- Parameters
-
url The element to work on.
dest The resulting new allocated element.
#include <osip_uri.h>
Free a url element.
- Parameters
-
url The element to work on.
#include <osip_uri.h>
Get the host of a url element.
- Parameters
-
url The element to work on.
#include <osip_uri.h>
Get the password of a url element.
- Parameters
-
url The element to work on.
#include <osip_uri.h>
Get the port of a url element.
- Parameters
-
url The element to work on.
#include <osip_uri.h>
Get the scheme of a url element.
- Parameters
-
url The element to work on.
#include <osip_uri.h>
Get the username of a url element.
- Parameters
-
url The element to work on.
#include <osip_uri.h>
Allocate a url element.
- Parameters
-
url The element to work on.
char *
name,
char *
value
)
#include <osip_uri.h>
Allocate and add a url parameter element in a list.
- Parameters
-
url_params The list of url parameter element to work on.
name The token name.
value The token value.
#include <osip_uri.h>
Clone a url parameter element.
- Parameters
-
url_param The element to work on.
dest The resulting new allocated element.
#include <osip_uri.h>
Free a url parameter element.
- Parameters
-
url_param The element to work on.
void osip_uri_param_freelist
(
osip_list_t *
url_params )
int osip_uri_param_get_byname
(
osip_list_t *
url_params,
char *
name,
)
#include <osip_uri.h>
Find in a url parameter element in a list.
- Parameters
-
url_params The list of url parameter element to work on.
name The name of the parameter element to find.
dest A pointer on the element found.
#include <osip_uri.h>
Allocate a url parameter element.
- Parameters
-
url_param The element to work on.
char *
name,
char *
value
)
#include <osip_uri.h>
Set values of a url parameter element.
- Parameters
-
url_param The element to work on.
name The token name.
value The token value.
#include <osip_uri.h>
Parse a url.
- Parameters
-
url The element to work on.
buf The buffer to parse.
#include <osip_uri.h>
Parse the header part of a url.
- Parameters
-
url The element to work on.
buf The buffer to parse.
#include <osip_uri.h>
Parse the parameter part of a url.
- Parameters
-
url The element to work on.
buf The buffer to parse.
#include <osip_uri.h>
Set the host of a url element.
- Parameters
-
url The element to work on.
value The token value.
#include <osip_uri.h>
Set the password of a url element.
- Parameters
-
url The element to work on.
value The token value.
#include <osip_uri.h>
Set the port of a url element.
- Parameters
-
url The element to work on.
value The token value.
#include <osip_uri.h>
Set the scheme of a url element.
- Parameters
-
url The element to work on.
value The token value.
#include <osip_uri.h>
Set the username of a url element.
- Parameters
-
url The element to work on.
value The token value.
#include <osip_uri.h>
Get a string representation of a url element.
- Parameters
-
url The element to work on.
dest The resulting new allocated buffer.
int osip_uri_to_str_canonical
(
const
osip_uri_t *
url,
char **
dest
)
#include <osip_uri.h>
Get a canonical string representation of a url element.
as defined in 10.3-5
- Parameters
-
url The element to work on.
dest The resulting new allocated buffer.