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

📄 smsg.h

📁 libosip-0.9.7源码
💻 H
📖 第 1 页 / 共 5 页
字号:
 * @param header The element to work on. */  char *authorization_getopaque (authorization_t * header);/** * Add the opaque parameter from a Authorization element. * @param header The element to work on. * @param value The value of the new parameter. */  void authorization_setopaque (authorization_t * header, char *value);/** * Get value of the message_qop parameter from a Authorization element. * @param header The element to work on. */  char *authorization_getmessage_qop (authorization_t * header);/** * Add the message_qop parameter from a Authorization element. * @param header The element to work on. * @param value The value of the new parameter. */  void authorization_setmessage_qop (authorization_t * header, char *value);/** * Get value of the nonce_count parameter from a Authorization element. * @param header The element to work on. */  char *authorization_getnonce_count (authorization_t * header);/** * Add the nonce_count parameter from a Authorization element. * @param header The element to work on. * @param value The value of the new parameter. */  void authorization_setnonce_count (authorization_t * header, char *value);/** * Allocate a Call-id element. * @param header The element to work on. */  int call_id_init (call_id_t ** header);/** * Free a Call-id element. * @param header The element to work on. */  void call_id_free (call_id_t * header);/** * Parse a Call-id element. * @param header The element to work on. * @param hvalue The string to parse. */  int call_id_parse (call_id_t * header, char *hvalue);/** * Get a string representation of a Call-id element. * @param header The element to work on. * @param dest A pointer on the new allocated string. */  int call_id_2char (call_id_t * header, char **dest);/** * Clone a Call-id element. * @param header The element to work on. * @param dest A pointer on the copy of the element. */  int call_id_clone (call_id_t * header, call_id_t ** dest);/** * Set the number in the Call-Id element. * @param header The element to work on. * @param value The value of the element. */  void call_id_setnumber (call_id_t * header, char *value);/** * Get the number from a Call-Id header. * @param header The element to work on. */  char *call_id_getnumber (call_id_t * header);/** * Set the host in the Call-Id element. * @param header The element to work on. * @param value The value of the element. */  void call_id_sethost (call_id_t * header, char *value);/** * Get the host from a Call-Id header. * @param header The element to work on. */  char *call_id_gethost (call_id_t * header);/** * Allocate a Call-Info element. * @param header The element to work on. */  int call_info_init (call_info_t ** header);/** * Free a Call-Info element. * @param header The element to work on. */  void call_info_free (call_info_t * header);/** * Parse a Call-Info element. * @param header The element to work on. * @param hvalue The string to parse. */  int call_info_parse (call_info_t * header, char *hvalue);/** * Get a string representation of a Call-Info element. * @param header The element to work on. * @param dest A pointer on the new allocated string. */  int call_info_2char (call_info_t * header, char **dest);/** * Clone a Call-Info element. * @param header The element to work on. * @param dest A pointer on the copy of the element. */  int call_info_clone (call_info_t * header, call_info_t ** dest);/** * Get the uri from a Call_Info header. * @param header The element to work on. */  char *call_info_geturi (call_info_t * header);/** * Set the uri in the Call_Info element. * @param header The element to work on. * @param uri The value of the element. */  void call_info_seturi (call_info_t * header, char *uri);/** * Allocate a Contact element. * @param header The element to work on. */  int contact_init (contact_t ** header);/** * Free a Contact element. * @param header The element to work on. */  void contact_free (contact_t * header);/** * Parse a Contact element. * @param header The element to work on. * @param hvalue The string to parse. */  int contact_parse (contact_t * header, char *hvalue);/** * Get a string representation of a Contact element. * @param header The element to work on. * @param dest A pointer on the new allocated string. */  int contact_2char (contact_t * header, char **dest);/** * Clone a Contact element. * @param header The element to work on. * @param dest A pointer on the copy of the element. */  int contact_clone (contact_t * header, contact_t ** dest);/** * Get the displayname from a Contact header. * @param header The element to work on. */#define contact_getdisplayname(header) from_getdisplayname((from_t*)header)/** * Set the displayname in the Contact element. * @param header The element to work on. * @param value The value of the element. */#define contact_setdisplayname(header,value) from_setdisplayname((from_t*)header, value)/** * Get the url from a Contact header. * @param header The element to work on. */#define contact_geturl(header)         from_geturl((from_t*)header)/** * Set the url in the Contact element. * @param header The element to work on. * @param url The value of the element. */#define contact_seturl(header,url)       from_seturl((from_t*)header,url)/** * Get a header parameter from a Contact 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. */#define contact_param_get(header,pos,dest) from_param_get((from_t*)header,pos,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 contact_param_add(header,name, value) generic_param_add((header)->gen_params, name,value)/** * Find a header parameter in a Contact element. * @param header The element to work on. * @param name The token name to search. * @param dest A pointer on the element found. */#define contact_param_getbyname(header,name,dest) generic_param_getbyname((header)->gen_params,name,dest)/** * Allocate a Content-Disposition element. * @param header The element to work on. */#define content_disposition_init(header)      call_info_init(header)/** * Free a Content-Disposition element. * @param header The element to work on. */#define content_disposition_free(header)      call_info_free(header)/** * Parse a Content-Disposition element. * @param header The element to work on. * @param hvalue The string to parse. */  int content_disposition_parse (content_disposition_t * header,				 char *hvalue);/** * Get a string representation of a Content-Disposition element. * @param header The element to work on. * @param dest A pointer on the new allocated string. */#define content_disposition_2char(header,dest)   call_info_2char(header,dest)/** * Clone a Content-Disposition element. * @param header The element to work on. * @param dest A pointer on the copy of the element. */#define content_disposition_clone(header, dest)  call_info_clone(header, dest)/* type is of: "render" | "session" | "icon" | "alert" *//** * Set the type in the Content-Disposition element. * @param header The element to work on. * @param value The value of the element. */#define content_disposition_settype(header, value) call_info_seturi(header, value)/** * Get the type from a Content-Disposition header. * @param header The element to work on. */#define content_disposition_gettype(header)    call_info_geturi(header)/** * Allocate a Content-Encoding element. * @param header The element to work on. */#define content_encoding_init(header)      content_length_init(header)/** * Parse a Content-Encoding element. * @param header The element to work on. * @param hvalue The string to parse. */#define content_encoding_parse(header, hvalue)  content_length_parse(header, hvalue)/** * Get a string representation of a Content-Encoding element. * @param header The element to work on. * @param dest A pointer on the new allocated string. */#define content_encoding_2char(header, dest)  content_length_2char(header, dest)/** * Free a Content-Encoding element. * @param header The element to work on. */#define content_encoding_free(header)      content_length_free(header)/** * Clone a Content-Encoding element. * @param header The element to work on. * @param dest A pointer on the copy of the element. */#define content_encoding_clone(header, dest)  content_length_clone(header, dest)/** * Allocate a Content-Length element. * @param header The element to work on. */  int content_length_init (content_length_t ** header);/** * Free a Content-Length element. * @param header The element to work on. */  void content_length_free (content_length_t * header);/** * Parse a Content-Length element. * @param header The element to work on. * @param hvalue The string to parse. */  int content_length_parse (content_length_t * header, char *hvalue);/** * Get a string representation of a Content-Length element. * @param header The element to work on. * @param dest A pointer on the new allocated string. */  int content_length_2char (content_length_t * header, char **dest);/** * Clone a Content-Length element. * @param header The element to work on. * @param dest A pointer on the copy of the element. */  int content_length_clone (content_length_t * header,			    content_length_t ** dest);/** * Allocate a Content-Type element. * @param header The element to work on. */  int content_type_init (content_type_t ** header);/** * Free a Content-Type element. * @param header The element to work on. */  void content_type_free (content_type_t * header);/** * Parse a Content-Type element. * @param header The element to work on. * @param hvalue The string to parse. */  int content_type_parse (content_type_t * header, char *hvalue);/** * Get a string representation of a Content-Type element. * @param header The element to work on. * @param dest A pointer on the new allocated string. */  int content_type_2char (content_type_t * header, char **dest);/** * Clone a Content-Type element. * @param header The element to work on. * @param dest A pointer on the copy of the element. */  int content_type_clone (content_type_t * header, content_type_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 content_type_param_add(header,name,value)  generic_param_add((header)->gen_params,name,value)/** * Find a header parameter in a Content-Type element. * @param header The element to work on. * @param name The token name to search. * @param dest A pointer on the element found. */#define content_type_param_getbyname(header,name,dest) generic_param_getbyname((header)->gen_params,name,dest)/** * Allocate a CSeq element. * @param header The element to work on. */  int cseq_init (cseq_t ** header);/** * Free a CSeq element. * @param header The element to work on. */  void cseq_free (cseq_t * header);/** * Parse a CSeq element. * @param header The element to work on. * @param hvalue The string to parse. */  int cseq_parse (cseq_t * header, char *hvalue);/** * Get a string representation of a CSeq element. * @param header The element to work on. * @param dest A pointer on the new allocated string. */  int cseq_2char (cseq_t * header, char **dest);/** * Clone a CSeq element. * @param header The element to work on. * @param dest A pointer on the copy of the element. */  int cseq_clone (cseq_t * header, cseq_t ** dest);/** * Set the number in the CSeq element. * @param header The element to work on. * @param value The value of the element. */  void cseq_setnumber (cseq_t * header, char *value);/** * Get the number from a CSeq header. * @param header The element to work on. */  char *cseq_getnumber (cseq_t * header);/** * Set the method in the CSeq element. * @param header The element to work on. * @param value The value of the element. */  void cseq_setmethod (cseq_t * header, char *value);/** * Get the method from a CSeq header. * @param header The element to work on. */  char *cseq_getmethod (cseq_t * header);/** * Allocate a Error-Info element. * @param header The element to work on.

⌨️ 快捷键说明

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