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

📄 smsg.h

📁 libosip-0.9.7源码
💻 H
📖 第 1 页 / 共 5 页
字号:
 */  int header_init (header_t ** header);/** * Free a header element. * @param header The element to work on. */  void header_free (header_t * header);/** * Get a string representation of a header element. * @param header The element to work on. * @param dest A pointer on the new allocated buffer. */  int header_2char (header_t * header, char **dest);/** * Get the token name a header element. * @param header The element to work on. */  char *header_getname (header_t * header);/** * Set the token name a header element. * @param header The element to work on. * @param pname The token name to set. */  void header_setname (header_t * header, char *pname);/** * Get the token value a header element. * @param header The element to work on. */  char *header_getvalue (header_t * header);/** * Set the token value a header element. * @param header The element to work on. * @param pvalue The token value to set. */  void header_setvalue (header_t * header, char *pvalue);/** * Clone a header element. * @param header The element to work on. * @param dest A pointer on the copy of the element. */  int header_clone (header_t * header, header_t ** dest);/** * Allocate an Accept element. * @param header The element to work on. */#define accept_init(header)     content_type_init(header)/** * Free an Accept element. * @param header The element to work on. */#define accept_free(header)     content_type_free(header)/** * Parse an Accept element. * @param header The element to work on. * @param hvalue The string to parse. */#define accept_parse(header, hvalue) content_type_parse(header, hvalue)/** * Get a string representation of an Accept element. * @param header The element to work on. * @param dest A pointer on the new allocated string. */#define accept_2char(header, dest) content_type_2char(header, dest)/** * Clone an Accept element. * @param header The element to work on. * @param dest A pointer on the copy of the element. */#define accept_clone(header, dest) content_type_clone(header, dest)/** * Allocate and add a header parameter in an Accept element. * @param header The element to work on. * @param name The token name. * @param value The token value. */#define accept_param_add(header,name,value)  generic_param_add((header)->gen_params,name,value)/** * Find a header parameter in an Accept element. * @param header The element to work on. * @param name The token name to search. * @param dest A pointer on the element found. */#define accept_param_getbyname(header,name,dest) generic_param_getbyname((header)->gen_params,name,dest)/** * Allocate a Accept-Encoding element. * @param header The element to work on. */  int accept_encoding_init (accept_encoding_t ** header);/** * Parse a Accept-Encoding element. * @param header The element to work on. * @param hvalue The string to parse. */  int accept_encoding_parse (accept_encoding_t * header, char *hvalue);/** * Get a string representation of a Accept-Encoding element. * @param header The element to work on. * @param dest A pointer on the new allocated string. */  int accept_encoding_2char (accept_encoding_t * header, char **dest);/** * Free a Accept-Encoding element. * @param header The element to work on. */  void accept_encoding_free (accept_encoding_t * header);/** * Clone a Accept-Encoding element. * @param header The element to work on. * @param dest A pointer on the copy of the element. */  int accept_encoding_clone (accept_encoding_t * header,			     accept_encoding_t ** dest);/** * Set the value of an Accept-Encoding element. * @param header The element to work on. * @param value The token value to set. */  void accept_encoding_setelement (accept_encoding_t * header, char *value);/** * Get the value of an Accept-Encoding element. * @param header The element to work on. */  char *accept_encoding_getelement (accept_encoding_t * header);/** * Allocate and Add a header parameter in an Accept-Encoding element. * @param header The element to work on. * @param name The token name for the new parameter. * @param value The token value for the new parameter. */#define accept_encoding_param_add(header,name,value)  generic_param_add((header)->gen_params,name,value)/** * Find a header parameter in an Accept-Encoding element. * @param header The element to work on. * @param name The token name to search. * @param dest A pointer on the element found. */#define accept_encoding_param_getbyname(header,name,dest) generic_param_getbyname((header)->gen_params,name,dest)/** * Allocate an Accept-Language element. * @param header The element to work on. */#define accept_language_init(header)      accept_encoding_init(header)/** * Parse an Accept-Language element. * @param header The element to work on. * @param hvalue The string to parse. */#define accept_language_parse(header, hvalue)  accept_encoding_parse(header, hvalue)/** * Get a string representation of an Accept-Language element. * @param header The element to work on. * @param dest A pointer on the new allocated string. */#define accept_language_2char(header, dest)  accept_encoding_2char(header, dest)/** * Free an Accept-Language element. * @param header The element to work on. */#define accept_language_free(header)      accept_encoding_free(header)/** * Clone an Accept-Language element. * @param header The element to work on. * @param dest A pointer on the copy of the element. */#define accept_language_clone(header, dest) accept_encoding_clone(header, dest)/** * Get the value of an Accept-Language element. * @param header The element to work on. */#define accept_language_getelement(header)     accept_encoding_getelement(header)/** * Set the value of an Accept-Language element. * @param header The element to work on. * @param value The value to set. */#define accept_language_setelement(header, value)  accept_encoding_setelement(header, value)/** * Allocate and add a generic parameter element in an Accept-Language element. * @param header The element to work on. * @param name The token name. * @param value The token value. */#define accept_language_param_add(header,name,value)  generic_param_add((header)->gen_params,name,value)/** * Find a header parameter in a Accept-Language element. * @param header The element to work on. * @param name The token name to search. * @param dest A pointer on the element found. */#define accept_language_param_getbyname(header,name,dest) generic_param_getbyname((header)->gen_params,name,dest)/** * Allocate a Alert-Info element. * @param header The element to work on. */#define  alert_info_init(header)      call_info_init(header)/** * Free a Alert-Info element. * @param header The element to work on. */#define  alert_info_free(header)      call_info_free(header)/** * Parse a Alert-Info element. * @param header The element to work on. * @param hvalue The string to parse. */#define  alert_info_parse(header, hvalue)  call_info_parse(header, hvalue)/** * Get a string representation of a Alert-Info element. * @param header The element to work on. * @param dest A pointer on the new allocated string. */#define  alert_info_2char(header,dest)   call_info_2char(header,dest)/** * Clone a Alert-Info element. * @param header The element to work on. * @param dest A pointer on the copy of the element. */#define  alert_info_clone(header, dest)  call_info_clone(header, dest)/** * Get uri from an Alert-Info element. * @param header The element to work on. */#define  alert_info_geturi(header)    call_info_geturi(header)/** * Set the uri of an Alert-Info element. * @param header The element to work on. * @param uri The value of the new parameter. */#define  alert_info_seturi(header, uri) call_info_seturi(header, uri)/** * Allocate a Allow element. * @param header The element to work on. */#define allow_init(header)      content_length_init(header)/** * Parse a Allow element. * @param header The element to work on. * @param hvalue The string to parse. */#define allow_parse(header, hvalue)  content_length_parse(header, hvalue)/** * Get a string representation of a Allow element. * @param header The element to work on. * @param dest A pointer on the new allocated string. */#define allow_2char(header, dest)  content_length_2char(header, dest)/** * Free a Allow element. * @param header The element to work on. */#define allow_free(header)      content_length_free(header)/** * Clone a Allow element. * @param header The element to work on. * @param dest A pointer on the copy of the element. */#define allow_clone(header, dest)  content_length_clone(header, dest)/** * Allocate a Authorization element. * @param header The element to work on. */  int authorization_init (authorization_t ** header);/** * Parse a Authorization element. * @param header The element to work on. * @param hvalue The string to parse. */  int authorization_parse (authorization_t * header, char *hvalue);/** * Get a string representation of a Authorization element. * @param header The element to work on. * @param dest A pointer on the new allocated string. */  int authorization_2char (authorization_t * header, char **dest);/** * Free a Authorization element. * @param header The element to work on. */  void authorization_free (authorization_t * header);/** * Clone a Authorization element. * @param header The element to work on. * @param dest A pointer on the copy of the element. */  int authorization_clone (authorization_t * header, authorization_t ** dest);/** * Get value of the auth_type parameter from a Authorization element. * @param header The element to work on. */  char *authorization_getauth_type (authorization_t * header);/** * Add the auth_type parameter from a Authorization element. * @param header The element to work on. * @param value The value of the new parameter. */  void authorization_setauth_type (authorization_t * header, char *value);/** * Get value of the username parameter from a Authorization element. * @param header The element to work on. */  char *authorization_getusername (authorization_t * header);/** * Add the username parameter from a Authorization element. * @param header The element to work on. * @param value The value of the new parameter. */  void authorization_setusername (authorization_t * header, char *value);/** * Get value of the realm parameter from a Authorization element. * @param header The element to work on. */  char *authorization_getrealm (authorization_t * header);/** * Add the realm parameter from a Authorization element. * @param header The element to work on. * @param value The value of the new parameter. */  void authorization_setrealm (authorization_t * header, char *value);/** * Get value of the nonce parameter from a Authorization element. * @param header The element to work on. */  char *authorization_getnonce (authorization_t * header);/** * Add the nonce parameter from a Authorization element. * @param header The element to work on. * @param value The value of the new parameter. */  void authorization_setnonce (authorization_t * header, char *value);/** * Get value of the uri parameter from a Authorization element. * @param header The element to work on. */  char *authorization_geturi (authorization_t * header);/** * Add the uri parameter from a Authorization element. * @param header The element to work on. * @param value The value of the new parameter. */  void authorization_seturi (authorization_t * header, char *value);/** * Get value of the response parameter from a Authorization element. * @param header The element to work on. */  char *authorization_getresponse (authorization_t * header);/** * Add the response parameter from a Authorization element. * @param header The element to work on. * @param value The value of the new parameter. */  void authorization_setresponse (authorization_t * header, char *value);/** * Get value of the digest parameter from a Authorization element. * @param header The element to work on. */  char *authorization_getdigest (authorization_t * header);/** * Add the digest parameter from a Authorization element. * @param header The element to work on. * @param value The value of the new parameter. */  void authorization_setdigest (authorization_t * header, char *value);/** * Get value of the algorithm parameter from a Authorization element. * @param header The element to work on. */  char *authorization_getalgorithm (authorization_t * header);/** * Add the algorithm parameter from a Authorization element. * @param header The element to work on. * @param value The value of the new parameter. */  void authorization_setalgorithm (authorization_t * header, char *value);/** * Get value of the cnonce parameter from a Authorization element. * @param header The element to work on. */  char *authorization_getcnonce (authorization_t * header);/** * Add the cnonce parameter from a Authorization element. * @param header The element to work on. * @param value The value of the new parameter. */  void authorization_setcnonce (authorization_t * header, char *value);/** * Get value of the opaque parameter from a Authorization element.

⌨️ 快捷键说明

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