Logo Search packages:      
Sourcecode: sofia-sip version File versions

url.h File Reference


Detailed Description

URL struct and helper functions.

Author:
Pekka Pessi <Pekka.Pessi@nokia.com>
Date:
Created: Thu Jun 8 19:28:55 2000 ppessi

Definition in file url.h.

#include <sofia-sip/su_alloc.h>

Go to the source code of this file.

Classes

union  url_string_t
struct  url_t

Defines

#define URL_DUP(buf, end, dst, src)   (buf) += url_dup((buf), (isize_t)((buf) < (end) ? (end) - (buf) : 0), (dst), (src))
#define URL_E(buf, end, url)
#define URL_FORMAT_STRING   URL_PRINT_FORMAT
#define URL_INIT_AS(type)   { "\0\0", url_##type, 0, url_##type != url_any ? #type : "*" }
#define URL_IS_STRING(u)   ((u) && *((url_string_t*)(u))->us_str != 0)
#define URL_PORT(u)
#define URL_PRINT_ARGS(u)
#define URL_PRINT_FORMAT   "%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s"
#define URL_RESERVED_CHARS   ";/?:@&=+$,"
#define URL_STRING_MAKE(s)   ((url_string_t *)((s) && *((char *)(s)) ? (s) : NULL))
#define URL_STRING_P(u)   ((u) && *((url_string_t*)(u))->us_str != 0)

Enumerations

enum  { URL_MAXLEN = 65536 }
enum  url_type_e {
  url_invalid = -2, url_unknown = -1, url_any = 0, url_sip,
  url_sips, url_tel, url_fax, url_modem,
  url_http, url_https, url_ftp, url_file,
  url_rtsp, url_rtspu, url_mailto, url_im,
  url_pres, url_cid, url_msrp, url_msrps,
  url_wv, _url_none
}

Functions

SOFIAPUBFUN char * url_as_string (su_home_t *home, url_t const *url)
SOFIAPUBFUN int url_cmp (url_t const *a, url_t const *b)
SOFIAPUBFUN int url_cmp_all (url_t const *a, url_t const *b)
SOFIAPUBFUN int url_d (url_t *url, char *s)
SOFIAPUBFUN void url_digest (void *hash, int hsize, url_t const *, char const *key)
SOFIAPUBFUN issize_t url_dup (char *, isize_t, url_t *dst, url_t const *src)
SOFIAPUBFUN issize_t url_e (char buffer[], isize_t n, url_t const *url)
SOFIAPUBFUN char * url_escape (char *d, char const *s, char const reserved[])
SOFIAPUBFUN isize_t url_esclen (char const *s, char const reserved[])
SOFIAPUBFUN url_turl_format (su_home_t *h, char const *fmt,...)
SOFIAPUBFUN int url_has_param (url_t const *url, char const *name)
SOFIAPUBFUN isize_t url_have_param (char const *params, char const *tag)
SOFIAPUBFUN int url_have_transport (url_t const *u)
SOFIAPUBFUN url_turl_hdup (su_home_t *h, url_t const *src)
SOFIAPUBFUN void url_init (url_t *url, enum url_type_e type)
SOFIAPUBFUN int url_is_string (url_string_t const *url)
SOFIAPUBFUN isize_t url_len (url_t const *url)
SOFIA_BEGIN_DECLS SOFIAPUBFUN
url_t
url_make (su_home_t *h, char const *str)
SOFIAPUBFUN isize_t url_param (char const *params, char const *tag, char value[], isize_t vlen)
SOFIAPUBFUN int url_param_add (su_home_t *h, url_t *url, char const *param)
SOFIAPUBFUN char const * url_port (url_t const *u)
SOFIAPUBFUN char const * url_port_default (enum url_type_e url_type)
SOFIAPUBFUN char * url_query_as_header_string (su_home_t *home, char const *query)
SOFIAPUBFUN int url_reserved_p (char const *s)
SOFIAPUBFUN int url_sanitize (url_t *u)
SOFIAPUBFUN char const * url_scheme (enum url_type_e type)
SOFIAPUBFUN int url_string_p (url_string_t const *url)
SOFIAPUBFUN char * url_strip_param_string (char *params, char const *name)
SOFIAPUBFUN int url_strip_transport (url_t *u)
SOFIAPUBFUN char const * url_tport_default (enum url_type_e url_type)
SOFIAPUBFUN char * url_unescape (char *d, char const *s)
SOFIAPUBFUN size_t url_unescape_to (char *d, char const *s, size_t n)
SOFIAPUBFUN void url_update (struct su_md5_t *md5, url_t const *url)
SOFIAPUBFUN isize_t url_xtra (url_t const *url)


Generated by  Doxygen 1.6.0   Back to index