⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 smsg.h

📁 libosip-0.9.7源码
💻 H
📖 第 1 页 / 共 5 页
字号:
 */#define  error_info_init(header)      call_info_init(header)/** * Free a Error-Info element. * @param header The element to work on. */#define  error_info_free(header)      call_info_free(header)/** * Parse a Error-Info element. * @param header The element to work on. * @param hvalue The string to parse. */#define  error_info_parse(header, hvalue)  call_info_parse(header, hvalue)/** * Get a string representation of a Error-Info element. * @param header The element to work on. * @param dest A pointer on the new allocated string. */#define  error_info_2char(header,dest)   call_info_2char(header,dest)/** * Clone a Error-Info element. * @param header The element to work on. * @param dest A pointer on the copy of the element. */#define  error_info_clone(header, dest)  call_info_clone(header, dest)/** * Set the uri in the Error-Info element. * @param header The element to work on. * @param uri The uri of the element. */#define  error_info_seturi(header, uri) call_info_seturi(header, uri)/** * Get the uri from a Error-Info header. * @param header The element to work on. */#define  error_info_geturi(header)    call_info_geturi(header)/** * Allocate a From element. * @param header The element to work on. */  int from_init (from_t ** header);/** * Free a From element. * @param header The element to work on. */  void from_free (from_t * header);/** * Parse a From element. * @param header The element to work on. * @param hvalue The string to parse. */  int from_parse (from_t * header, char *hvalue);/** * Get a string representation of a From element. * @param header The element to work on. * @param dest A pointer on the new allocated string. */  int from_2char (from_t * header, char **dest);/** * Clone a From element. * @param header The element to work on. * @param dest A pointer on the copy of the element. */  int from_clone (from_t * header, from_t ** dest);/** * Set the displayname in the From element. * @param header The element to work on. * @param value The value of the element. */  void from_setdisplayname (from_t * header, char *value);/** * Get the displayname from a From header. * @param header The element to work on. */  char *from_getdisplayname (from_t * header);/** * Set the url in the From element. * @param header The element to work on. * @param url The value of the element. */  void from_seturl (from_t * header, url_t * url);/** * Get the url from a From header. * @param header The element to work on. */  url_t *from_geturl (from_t * header);/** * Get a header parameter from a From element. * @param header The element to work on. * @param pos The index of the element to get. * @param dest A pointer on the element found. */  int from_param_get (from_t * header, int pos, generic_param_t ** dest);/** * Allocate and add a generic parameter element in a list. * @param header The element to work on. * @param name The token name. * @param value The token value. */#define from_param_add(header,name,value)      generic_param_add((header)->gen_params,name,value)/** * Find a header parameter in a From element. * @param header The element to work on. * @param name The token name to search. * @param dest A pointer on the element found. */#define from_param_getbyname(header,name,dest) generic_param_getbyname((header)->gen_params,name,dest)/** * Find the tag parameter in a From element. * @param header The element to work on. * @param dest A pointer on the element found. */#define from_get_tag(header,dest)    generic_param_getbyname((header)->gen_params, "tag",dest)/** * Allocate and add a tag parameter element in a Contact element. * @param header The element to work on. * @param value The token value. */#define from_set_tag(header,value)     generic_param_add((header)->gen_params, sgetcopy("tag"),value)#ifndef DOXYGEN			/* avoid DOXYGEN warning *//* Compare the username, host and tag part (if exist) of the two froms */  int from_compare (from_t * header1, from_t * header2);#endif/** * Allocate a Mime-Version element. * @param header The element to work on. */#define mime_version_init(header)      content_length_init(header)/** * Parse a Mime-Version element. * @param header The element to work on. * @param hvalue The string to parse. */#define mime_version_parse(header, hvalue)  content_length_parse(header, hvalue)/** * Get a string representation of a Mime-Version element. * @param header The element to work on. * @param dest A pointer on the new allocated string. */#define mime_version_2char(header, dest)  content_length_2char(header, dest)/** * Free a Mime-Version element. * @param header The element to work on. */#define mime_version_free(header)      content_length_free(header)/** * Clone a Mime-Version element. * @param header The element to work on. * @param dest A pointer on the copy of the element. */#define mime_version_clone(header, dest)  content_length_clone(header, dest)/** * Allocate a Proxy-Authenticate element. * @param header The element to work on. */#define proxy_authenticate_init(header)     www_authenticate_init(header)/** * Parse a Proxy-Authenticate element. * @param header The element to work on. * @param hvalue The string to parse. */#define proxy_authenticate_parse(header, hvalue) www_authenticate_parse(header, hvalue)/** * Get a string representation of a Proxy-Authenticate element. * @param header The element to work on. * @param dest A pointer on the new allocated string. */#define proxy_authenticate_2char(header, dest) www_authenticate_2char(header, dest)/** * Free a Proxy-Authenticate element. * @param header The element to work on. */#define proxy_authenticate_free(header)     www_authenticate_free(header)/** * Clone a Proxy-Authenticate element. * @param header The element to work on. * @param dest A pointer on the copy of the element. */#define proxy_authenticate_clone(header, dest) www_authenticate_clone(header, dest)/** * Get value of the auth_type parameter from a Proxy-Authenticate element. * @param header The element to work on. */#define proxy_authenticate_getauth_type(header)   www_authenticate_getauth_type(header)/** * Add the auth_type parameter from a Proxy-Authenticate element. * @param header The element to work on. * @param value The value of the new parameter. */#define proxy_authenticate_setauth_type(header,value) www_authenticate_setauth_type(header, value)/** * Get value of the realm parameter from a Proxy-Authenticate element. * @param header The element to work on. */#define proxy_authenticate_getrealm(header)     www_authenticate_getrealm(header)/** * Add the realm parameter from a Proxy-Authenticate element. * @param header The element to work on. * @param value The value of the new parameter. */#define proxy_authenticate_setrealm(header, value)  www_authenticate_setrealm(header, value)/** * Get value of the domain parameter from a Proxy-Authenticate element. * @param header The element to work on. */#define proxy_authenticate_getdomain(header)    www_authenticate_getdomain(header)/** * Add the domain parameter from a Proxy-Authenticate element. * @param header The element to work on. * @param value The value of the new parameter. */#define proxy_authenticate_setdomain(header, value) www_authenticate_setdomain(header, value)/** * Get value of the nonce parameter from a Proxy-Authenticate element. * @param header The element to work on. */#define proxy_authenticate_getnonce(header)     www_authenticate_getnonce(header)/** * Add the nonce parameter from a Proxy-Authenticate element. * @param header The element to work on. * @param value The value of the new parameter. */#define proxy_authenticate_setnonce(header, value)  www_authenticate_setnonce(header, value)/** * Get value of the opaque parameter from a Proxy-Authenticate element. * @param header The element to work on. */#define proxy_authenticate_getopaque(header)    www_authenticate_getopaque(header)/** * Add the opaque parameter from a Proxy-Authenticate element. * @param header The element to work on. * @param value The value of the new parameter. */#define proxy_authenticate_setopaque(header, value) www_authenticate_setopaque(header, value)/** * Get value of the stale parameter from a Proxy-Authenticate element. * @param header The element to work on. */#define proxy_authenticate_getstale(header)     www_authenticate_getstale(header)/** * Add the stale parameter from a Proxy-Authenticate element. * @param header The element to work on. * @param value The value of the new parameter. */#define proxy_authenticate_setstale(header, value)  www_authenticate_setstale(header, value)/** * Add a stale parameter set to "true" in a proxy-Authenticate element. * @param header The element to work on. */#define proxy_authenticate_setstale_true(header) www_authenticate_setstale(header,sgetcopy("true"))/** * Add a stale parameter set to "false" in a Proxy-Authenticate element. * @param header The element to work on. */#define proxy_authenticate_setstale_false(header) www_authenticate_setstale(header,sgetcopy("false"))/** * Get value of the algorithm parameter from a Proxy-Authenticate element. * @param header The element to work on. */#define proxy_authenticate_getalgorithm(header) www_authenticate_getalgorithm(header)/** * Add the algorithm parameter from a Proxy-Authenticate element. * @param header The element to work on. * @param value The value of the new parameter. */#define proxy_authenticate_setalgorithm(header, value) www_authenticate_setalgorithm(header, value)/** * Add the algorithm parameter set to "MD5" in a Proxy-Authenticate element. * @param header The element to work on. */#define proxy_authenticate_setalgorithm_MD5(header) www_authenticate_setalgorithm(header,sgetcopy("MD5"))/** * Get value of the qop_options parameter from a Proxy-Authenticate element. * @param header The element to work on. */#define proxy_authenticate_getqop_options(header) www_authenticate_getqop_options(header)/** * Add the qop_options parameter from a Proxy-Authenticate element. * @param header The element to work on. * @param value The value of the new parameter. */#define proxy_authenticate_setqop_options(header,value) www_authenticate_setqop_options(header,value)/** * Allocate a Proxy-Authorization element. * @param header The element to work on. */#define proxy_authorization_init(header)     authorization_init(header)/** * Parse a Proxy-Authorization element. * @param header The element to work on. * @param hvalue The string to parse. */#define proxy_authorization_parse(header, hvalue) authorization_parse(header, hvalue)/** * Get a string representation of a Proxy-Authorization element. * @param header The element to work on. * @param dest A pointer on the new allocated string. */#define proxy_authorization_2char(header, dest) authorization_2char(header, dest)/** * Free a Proxy-Authorization element. * @param header The element to work on. */#define proxy_authorization_free(header)     authorization_free(header)/** * Clone a Proxy-Authorization element. * @param header The element to work on. * @param dest A pointer on the copy of the element. */#define proxy_authorization_clone(header, dest) authorization_clone(header, dest)/** * Get value of the auth_type parameter from a Proxy-Authorization element. * @param header The element to work on. */#define proxy_authorization_getauth_type(header)    authorization_getauth_type(header)/** * Add the auth_type parameter from a Proxy-Authorization element. * @param header The element to work on. * @param value The value of the new parameter. */#define proxy_authorization_setauth_type(header, value) authorization_setauth_type(header, value)/** * Get value of the username parameter from a Proxy-Authorization element. * @param header The element to work on. */#define proxy_authorization_getusername(header)    authorization_getusername(header)/** * Add the username parameter from a Proxy-Authorization element. * @param header The element to work on. * @param value The value of the new parameter. */#define proxy_authorization_setusername(header, value) authorization_setusername(header, value)/** * Get value of the realm parameter from a Proxy-Authorization element. * @param header The element to work on. */#define proxy_authorization_getrealm(header)       authorization_getrealm(header)/** * Add the realm parameter from a Proxy-Authorization element. * @param header The element to work on. * @param value The value of the new parameter. */#define proxy_authorization_setrealm(header, value)    authorization_setrealm(header, value)/** * Get value of the nonce parameter from a Proxy-Authorization element. * @param header The element to work on. */#define proxy_authorization_getnonce(header)       authorization_getnonce(header)/** * Add the nonce parameter from a Proxy-Authorization element. * @param header The element to work on. * @param value The value of the new parameter. */#define proxy_authorization_setnonce(header, value)    authorization_setnonce(header, value)/** * Get value of the uri parameter from a Proxy-Authorization element. * @param header The element to work on. */#define proxy_authorization_geturi(header)         authorization_geturi(header)/** * Add the uri parameter from a Proxy-Authorization element. * @param header The element to work on. * @param value The value of the new parameter. */#define proxy_authorization_seturi(header, value)      authorization_seturi(header, value)/** * Get value of the response parameter from a Proxy-Authorization element. * @param header The element to work on. */#define proxy_authorization_getresponse(header)    authorization_getresponse(header)/** * Add the response parameter from a Proxy-Authorization element. * @param header The element to work on. * @param value The value of the new parameter. */#define proxy_authorization_setresponse(header, value) authorization_setresponse(header, value)/** * Get value of the digest parameter from a Proxy-Authorization element. * @param header The element to work on. */#define proxy_authorization_getdigest(header)      authorization_getdigest(header)/** * Add the digest parameter from a Proxy-Authorization element. * @param header The element to work on.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -