亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? osip_uri.h

?? SIP協議棧實現
?? H
字號:
/*  The oSIP library implements the Session Initiation Protocol (SIP -rfc2543-)  Copyright (C) 2001  Aymeric MOIZARD jack@atosc.org    This library is free software; you can redistribute it and/or  modify it under the terms of the GNU Lesser General Public  License as published by the Free Software Foundation; either  version 2.1 of the License, or (at your option) any later version.    This library is distributed in the hope that it will be useful,  but WITHOUT ANY WARRANTY; without even the implied warranty of  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU  Lesser General Public License for more details.    You should have received a copy of the GNU Lesser General Public  License along with this library; if not, write to the Free Software  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA*/#ifndef _URLS_H_#define _URLS_H_#include <osipparser2/osip_const.h>#include <osipparser2/osip_list.h>/** * @file urls.h * @brief oSIP url parser Routines * * This is the implementation of sip url scheme. It also partially support * any unrecognised scheme (not starting with 'sip:' or 'sips:'). Unrecognised * scheme are stored in url->string. *//** * @defgroup oSIP_URLS oSIP url parser Handling * @ingroup oSIP * @{ */#ifdef __cplusplusextern "C"{#endif/** * Structure for referencing url parameters. * @defvar osip_uri_param_t */  typedef struct osip_uri_param osip_uri_param_t;  struct osip_uri_param  {    char *gname;    char *gvalue;  };/** * Structure for referencing url headers. * @defvar osip_uri_header_t */  typedef osip_uri_param_t osip_uri_header_t;/** * Allocate a url parameter element. * @param url_param The element to work on. */  int osip_uri_param_init (osip_uri_param_t ** url_param);/** * Free a url parameter element. * @param url_param The element to work on. */  void osip_uri_param_free (osip_uri_param_t * url_param);/** * Set values of a url parameter element. * @param url_param The element to work on. * @param name The token name. * @param value The token value. */  int osip_uri_param_set (osip_uri_param_t * url_param, char *name, char *value);/** * Clone a url parameter element. * @param url_param The element to work on. * @param dest The resulting new allocated element. */  int osip_uri_param_clone (const osip_uri_param_t * url_param, osip_uri_param_t ** dest);#ifndef DOXYGEN/* * Free a list of a url parameter element. * @param url_params The list of url parameter element to free. */  void osip_uri_param_freelist (osip_list_t * url_params);#endif/** * Allocate and add a url parameter element in a list. * @param url_params The list of url parameter element to work on. * @param name The token name. * @param value The token value. */  int osip_uri_param_add (osip_list_t * url_params, char *name, char *value);/** * Find in a url parameter element in a list. * @param url_params The list of url parameter element to work on. * @param name The name of the parameter element to find. * @param dest A pointer on the element found. */  int osip_uri_param_get_byname (osip_list_t * url_params, char *name,			   osip_uri_param_t ** dest);/** * Allocate a generic parameter element. * @param url_header The element to work on. */#define osip_uri_header_init(url_header) osip_uri_param_init(url_header)/** * Free a generic parameter element. * @param url_header The element to work on. */#define osip_uri_header_free(url_header) osip_uri_param_free(url_header)/** * Set values of a generic parameter element. * @param url_header The element to work on. * @param name The token name. * @param value The token value. */#define osip_uri_header_set(url_header, name, value)  osip_uri_param_set(url_header, name, value)/** * Clone a generic parameter element. * @param url_header The element to work on. * @param dest The resulting new allocated element. */#define osip_uri_header_clone(url_header,dest)    osip_uri_param_clone(url_header,dest)#ifndef DOXYGEN/* * Free a list of a generic parameter element. * @param LIST The list of generic parameter element to free. */#define osip_uri_header_freelist(LIST)       osip_uri_param_freelist(LIST)#endif/** * Allocate and add a generic parameter element in a list. * @param url_headers The list of generic parameter element to work on. * @param name The token name. * @param value The token value. */#define osip_uri_header_add(url_headers,name,value)        osip_uri_param_add(url_headers,name,value)/** * Find in a generic parameter element in a list. * @param url_headers The list of generic parameter element to work on. * @param name The name of the parameter element to find. * @param dest A pointer on the element found. */#define osip_uri_header_get_byname(url_headers,name,dest) osip_uri_param_get_byname(url_headers,name,dest)/** * Structure for referencing SIP urls. * @defvar osip_uri_t */  typedef struct osip_uri osip_uri_t;  struct osip_uri  {    char *scheme;    char *username;    char *password;    char *host;    char *port;    osip_list_t *url_params;    osip_list_t *url_headers;    char *string;		/** other url schemes are strings. (http, mailto...) */  };/** * Allocate a url element. * @param url The element to work on. */  int osip_uri_init (osip_uri_t ** url);/** * Free a url element. * @param url The element to work on. */  void osip_uri_free (osip_uri_t * url);/** * Parse a url. * @param url The element to work on. * @param buf The buffer to parse. */  int osip_uri_parse (osip_uri_t * url, const char *buf);#ifndef DOXYGEN/** * Parse the header part of a url. * @param url The element to work on. * @param buf The buffer to parse. */  int osip_uri_parse_headers (osip_uri_t * url, const char *buf);/** * Parse the parameter part of a url. * @param url The element to work on. * @param buf The buffer to parse. */  int osip_uri_parse_params (osip_uri_t * url, const char *buf);#endif/** * Get a string representation of a url element. * @param url The element to work on. * @param dest The resulting new allocated buffer. */  int osip_uri_to_str (const osip_uri_t * url, char **dest);/** * Clone a url element. * @param url The element to work on. * @param dest The resulting new allocated element. */  int osip_uri_clone (const osip_uri_t * url, osip_uri_t ** dest);/*** Get a canonical string representation of a url element.* as defined in 10.3-5* @param url The element to work on.* @param dest The resulting new allocated buffer.*/  int osip_uri_to_str_canonical (const osip_uri_t * url, char **dest);/** * Set the scheme of a url element. * @param url The element to work on. * @param value The token value. */  void osip_uri_set_scheme (osip_uri_t * url, char *value);/** * Get the scheme of a url element. * @param url The element to work on. */  char *osip_uri_get_scheme (osip_uri_t * url);/** * Set the host of a url element. * @param url The element to work on. * @param value The token value. */  void osip_uri_set_host (osip_uri_t * url, char *value);/** * Get the host of a url element. * @param url The element to work on. */  char *osip_uri_get_host (osip_uri_t * url);/** * Set the username of a url element. * @param url The element to work on. * @param value The token value. */  void osip_uri_set_username (osip_uri_t * url, char *value);/** * Get the username of a url element. * @param url The element to work on. */  char *osip_uri_get_username (osip_uri_t * url);/** * Set the password of a url element. * @param url The element to work on. * @param value The token value. */  void osip_uri_set_password (osip_uri_t * url, char *value);/** * Get the password of a url element. * @param url The element to work on. */  char *osip_uri_get_password (osip_uri_t * url);/** * Set the host of a url element. * @param url The element to work on. * @param value The token value. */  void osip_uri_set_host (osip_uri_t * url, char *value);/** * Get the host of a url element. * @param url The element to work on. */  char *osip_uri_get_host (osip_uri_t * url);/** * Set the port of a url element. * @param url The element to work on. * @param value The token value. */  void osip_uri_set_port (osip_uri_t * url, char *value);/** * Get the port of a url element. * @param url The element to work on. */  char *osip_uri_get_port (osip_uri_t * url);/** * Set the transport parameter to UDP in a url element. * @param url The element to work on. */#define osip_uri_set_transport_udp(url)   osip_uri_param_add((url)->url_params, osip_strdup("transport"), osip_strdup("udp"))/** * Set the transport parameter to TCP in a url element. * @param url The element to work on. */#define osip_uri_set_transport_tcp(url)   osip_uri_param_add((url)->url_params, osip_strdup("transport"), osip_strdup("tcp"))/** * Set the transport parameter to SCTP in a url element. * @param url The element to work on. */#define osip_uri_set_transport_sctp(url)  osip_uri_param_add((url)->url_params, osip_strdup("transport"), osip_strdup("sctp"))/** * Set the transport parameter to TLS in a url element. * @param url The element to work on. */#define osip_uri_set_transport_tls(url)   osip_uri_param_add((url)->url_params, osip_strdup("transport"), osip_strdup("tls"))/** * Set the transport parameter to TLS in a url element. * @param url The element to work on. * @param value The value describing the transport protocol. */#define osip_uri_set_transport(url,value) osip_uri_param_add((url)->url_params, osip_strdup("transport"), value)/** * Set the user parameter to PHONE in a url element. * @param url The element to work on. */#define osip_uri_set_user_phone(url)   osip_uri_param_add((url)->url_params, osip_strdup("user"), osip_strdup("phone"))/** * Set the user parameter to IP in a url element. * @param url The element to work on. */#define osip_uri_set_user_ip(url)      osip_uri_param_add((url)->url_params, osip_strdup("user"), osip_strdup("ip"))/** * Set a method parameter to INVITE in a url element. * @param url The element to work on. */#define osip_uri_set_method_invite(url)  osip_uri_param_add((url)->url_params, osip_strdup("method"), osip_strdup("INVITE"))/** * Set a method parameter to ACK in a url element. * @param url The element to work on. */#define osip_uri_set_method_ack(url)     osip_uri_param_add((url)->url_params, osip_strdup("method"), osip_strdup("ACK"))/** * Set a method parameter to OPTIONS in a url element. * @param url The element to work on. */#define osip_uri_set_method_options(url) osip_uri_param_add((url)->url_params, osip_strdup("method"), osip_strdup("OPTIONS"))/** * Set a method parameter to BYE in a url element. * @param url The element to work on. */#define osip_uri_set_method_bye(url)     osip_uri_param_add((url)->url_params, osip_strdup("method"), osip_strdup("BYE"))/** * Set a method parameter to CANCEL in a url element. * @param url The element to work on. */#define osip_uri_set_method_cancel(url)  osip_uri_param_add((url)->url_params, osip_strdup("method"), osip_strdup("CANCEL"))/** * Set a method parameter to REGISTER in a url element. * @param url The element to work on. */#define osip_uri_set_method_register(url) osip_uri_param_add((url)->url_params,osip_strdup("method"), osip_strdup("REGISTER"))/** * Set a method parameter in a url element. * @param url The element to work on. * @param value The value for the method parameter. */#define osip_uri_set_method(url, value) osip_uri_param_add((url)->url_params, osip_strdup("method"), value)/** * Set a ttl parameter in a url element. * @param url The element to work on. * @param value The value for the ttl parameter. */#define osip_uri_set_ttl(url, value)    osip_uri_param_add((url)->url_params, osip_strdup("ttl"), value)/** * Set a maddr parameter in a url element. * @param url The element to work on. * @param value The value for the maddr parameter. */#define osip_uri_set_maddr(url, value)  osip_uri_param_add((url)->url_params, osip_strdup("maddr"), value)/** * Allocate and add a url parameter element in a url element. * @param url The element to work on. * @param name The token name. * @param value The token value. */#define osip_uri_uparam_add(url,name,value) osip_uri_param_add((url)->url_params,name,value)/** * Find in a url parameter element in a url element. * @param url The element to work on. * @param name The name of the url parameter element to find. * @param dest A pointer on the element found. */#define osip_uri_uparam_get_byname(url,name,dest)  osip_uri_param_get_byname((url)->url_params,name,dest)/** * Allocate and add a url header element in a url element. * @param url The element to work on. * @param name The token name. * @param value The token value. */#define osip_uri_uheader_add(url,name,value)    osip_uri_header_add(url->url_headers,name,value)/** * Find in a url header element in a url element. * @param url The element to work on. * @param name The name of the url header element to find. * @param dest A pointer on the element found. */#define osip_uri_uheader_get_byname(url,name,dest) osip_uri_header_get_byname(url->url_headers,name,dest)#ifndef DOXYGEN/* internal method */  char *next_separator (const char *ch, int separator_osip_to_find,			int before_separator);  char *__osip_uri_escape_nonascii_and_nondef (const char *string, const char *def);  char *__osip_uri_escape_userinfo (const char *string);  char *__osip_uri_escape_password (const char *string);  char *__osip_uri_escape_uri_param (char *string);  char *__osip_uri_escape_header_param (char *string);  void __osip_uri_unescape (char *string);#endif/** @} */#ifdef __cplusplus}#endif#endif				/*  _URLS_H_ */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久久久久电影| 欧美一区中文字幕| 国产日产欧美精品一区二区三区| 精品伊人久久久久7777人| 日韩天堂在线观看| 国产麻豆91精品| 亚洲视频免费观看| 欧美美女一区二区在线观看| 日韩高清一级片| 久久―日本道色综合久久| 不卡的av电影| 五月天亚洲婷婷| 精品对白一区国产伦| 高清av一区二区| 亚洲黄色录像片| 91精品国产欧美日韩| 国产精品亚洲综合一区在线观看| 亚洲丝袜另类动漫二区| 欧美精品久久久久久久多人混战 | 日韩av电影天堂| 欧美变态口味重另类| 99视频国产精品| 日韩电影在线免费观看| 日本一区二区成人在线| 精品视频在线免费| 国产成人在线视频网站| 亚洲一区二区三区视频在线| xnxx国产精品| 欧美三级乱人伦电影| 国产成人亚洲综合a∨猫咪| 一区二区三区四区激情 | 国产在线精品一区二区三区不卡 | 色综合色综合色综合色综合色综合 | 日韩精品久久理论片| 久久久久久亚洲综合| 91国偷自产一区二区使用方法| 日本在线不卡视频一二三区| 国产精品美女www爽爽爽| 欧美日韩高清一区二区不卡| 丁香婷婷综合激情五月色| 亚洲成人免费在线观看| 欧美国产一区二区在线观看| 69久久99精品久久久久婷婷| 99这里都是精品| 精品无码三级在线观看视频| 亚洲女厕所小便bbb| 国产欧美一区二区三区在线看蜜臀| 在线亚洲精品福利网址导航| 国产成人自拍网| 麻豆一区二区三| 亚洲一区二区视频在线观看| 国产欧美精品一区二区色综合 | 国内一区二区视频| 亚洲福利视频一区二区| 国产精品国产三级国产有无不卡| 欧美一级在线视频| 欧美猛男gaygay网站| 91麻豆swag| youjizz久久| 国产精品小仙女| 久久99精品国产.久久久久久| 午夜伦理一区二区| 亚洲国产精品自拍| 亚洲愉拍自拍另类高清精品| 亚洲欧美视频一区| 亚洲欧美自拍偷拍| 亚洲狠狠爱一区二区三区| 国产精品第13页| 国产精品欧美一区喷水| 久久久久久久精| 久久久久久久久久电影| 337p粉嫩大胆色噜噜噜噜亚洲| 欧美一区日韩一区| 欧美一级精品在线| 日韩一区二区在线观看视频播放| 欧美一区二区三区日韩视频| 欧美精品一卡二卡| 日韩一区二区三区免费看| 欧美日本韩国一区| 日韩一区二区三区电影在线观看| 91精品国产综合久久香蕉麻豆 | 久久免费的精品国产v∧| 精品国产乱码久久久久久蜜臀| 欧美v日韩v国产v| 精品美女一区二区| 久久精品视频在线免费观看| 欧美国产日韩a欧美在线观看| 国产精品欧美极品| 亚洲欧美视频在线观看视频| 夜夜嗨av一区二区三区中文字幕| 亚洲大片一区二区三区| 日韩国产在线观看一区| 蜜桃av一区二区三区| 久久99精品国产.久久久久久| 国产精品一区在线观看乱码 | 欧美日韩国产经典色站一区二区三区| 欧美羞羞免费网站| 日韩欧美一级二级三级久久久| 日韩欧美视频一区| 国产精品另类一区| 亚洲国产精品久久久男人的天堂| 日本欧美加勒比视频| 国产一区二区三区四区五区美女 | 久久午夜色播影院免费高清| 国产精品网站导航| 亚洲一二三四久久| 黑人精品欧美一区二区蜜桃| caoporen国产精品视频| 欧美色视频在线| 日韩精品在线网站| **性色生活片久久毛片| 日日夜夜精品视频天天综合网| 久久99精品久久只有精品| 成人成人成人在线视频| 欧美丰满少妇xxxxx高潮对白| 久久久久久久综合日本| 亚洲精品videosex极品| 日韩vs国产vs欧美| www.66久久| 91麻豆精品国产91久久久更新时间| 久久久久久久网| 亚洲图片自拍偷拍| 国产一区91精品张津瑜| 欧洲av一区二区嗯嗯嗯啊| 欧美精品一区二区三区四区| 亚洲与欧洲av电影| 国产福利一区二区三区视频在线| 欧美日韩视频在线观看一区二区三区 | 欧洲日韩一区二区三区| 26uuu欧美| 亚洲一区二区三区免费视频| 丁香五精品蜜臀久久久久99网站 | 精品一区二区影视| 91精品1区2区| 国产女主播一区| 美国毛片一区二区| 欧美色图第一页| 国产精品高潮久久久久无| 美女爽到高潮91| 欧美日韩国产精品自在自线| 亚洲三级在线播放| 高清不卡在线观看av| 日韩精品中文字幕一区| 亚洲18色成人| 色播五月激情综合网| 日本一区二区三区免费乱视频| 日本人妖一区二区| 欧美日韩一区国产| 一区二区三区成人| 91丝袜美腿高跟国产极品老师 | 激情六月婷婷久久| 欧美日韩精品高清| 亚洲国产色一区| 91玉足脚交白嫩脚丫在线播放| 国产视频一区二区在线| 激情成人午夜视频| 日韩亚洲欧美一区二区三区| 香蕉影视欧美成人| 在线不卡a资源高清| 午夜激情综合网| 欧美日韩一区中文字幕| 亚洲愉拍自拍另类高清精品| 欧美在线一区二区三区| 亚洲免费观看高清完整版在线观看 | 一区二区激情小说| 一本高清dvd不卡在线观看| 亚洲欧美日本在线| 欧美在线观看视频一区二区三区| 亚洲视频电影在线| 欧美在线视频不卡| 亚洲国产va精品久久久不卡综合| 欧美日韩综合一区| 丝袜美腿一区二区三区| 日韩视频一区二区三区在线播放| 麻豆精品久久精品色综合| 欧美大黄免费观看| 精品中文字幕一区二区小辣椒| 久久人人爽爽爽人久久久| 国产成人鲁色资源国产91色综| 亚洲欧洲韩国日本视频 | 在线看国产一区| 亚洲午夜av在线| 日韩网站在线看片你懂的| 精东粉嫩av免费一区二区三区| 国产色产综合色产在线视频 | 在线观看国产精品网站| 亚洲一区二区高清| 91精品婷婷国产综合久久性色| 狠狠色丁香九九婷婷综合五月| 久久精品在线观看| 97精品电影院| 日韩激情视频网站| 欧美精品一区二区三区四区| av不卡免费电影| 午夜视频在线观看一区二区三区 | 成人av电影在线网| 亚洲成a人片在线不卡一二三区| 欧美成人女星排名| 色偷偷成人一区二区三区91| 日韩专区欧美专区|