Go to the documentation of this file.
71 char url_pad[
sizeof(
void *) - 2];
148 char value[], isize_t vlen);
193 #define URL_RESERVED_CHARS ";/?:@&=+$,"
206 #define URL_INIT_AS(type) \
207 { "\0", url_##type, 0, url_##type != url_any ? #type : "*" }
225 #define URL_PORT(u) \
226 ((u) && (u)->url_port ? (u)->url_port : \
227 url_port_default((u) ? (enum url_type_e)(u)->url_type : url_any))
234 #define URL_STRING_P(u) ((u) && *((url_string_t*)(u))->us_str != 0)
238 #define URL_IS_STRING(u) ((u) && *((url_string_t*)(u))->us_str != 0)
249 #define URL_STRING_MAKE(s) \
250 ((url_string_t *)((s) && *((char *)(s)) ? (s) : NULL))
256 #define URL_PRINT_FORMAT "%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s"
257 #define URL_FORMAT_STRING URL_PRINT_FORMAT
260 #define URL_PRINT_ARGS(u) \
261 (u)->url_scheme ? (u)->url_scheme : "", \
262 (u)->url_type != url_any && (u)->url_scheme && (u)->url_scheme[0] \
264 (u)->url_root && ((u)->url_host || (u)->url_user) ? "//" : "", \
265 (u)->url_user ? (u)->url_user : "", \
266 (u)->url_user && (u)->url_password ? ":" : "", \
267 (u)->url_user && (u)->url_password ? (u)->url_password : "", \
268 (u)->url_user && (u)->url_host ? "@" : "", \
269 (u)->url_host ? (u)->url_host : "", \
270 (u)->url_host && (u)->url_port ? ":" : "", \
271 (u)->url_host && (u)->url_port ? (u)->url_port : "", \
272 (u)->url_root && (u)->url_path ? "/" : "", \
273 (u)->url_path ? (u)->url_path : "", \
274 (u)->url_params ? ";" : "", (u)->url_params ? (u)->url_params : "", \
275 (u)->url_headers ? "?" : "", (u)->url_headers ? (u)->url_headers : "", \
276 (u)->url_fragment ? "#" : "", (u)->url_fragment ? (u)->url_fragment : ""
288 url_t const *,
char const *key);
303 #define URL_E(buf, end, url) \
304 (buf) += url_e((buf), (buf) < (end) ? (end) - (buf) : 0, (url))
313 #define URL_DUP(buf, end, dst, src) \
314 (buf) += url_dup((buf), (isize_t)((buf) < (end) ? (end) - (buf) : 0), (dst), (src))
Sofia-SIP 1.12.11devel -
Copyright (C) 2006 Nokia Corporation. All rights reserved.
Licensed under the terms of the GNU Lesser General Public License.