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

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

?? sdp_lib.h

?? Bluezan implementation of the Bluetooth&#8482 wireless standards specifications for Linux. The code
?? H
?? 第 1 頁 / 共 2 頁
字號:
/* * *  BlueZ - Bluetooth protocol stack for Linux * *  Copyright (C) 2001-2002  Nokia Corporation *  Copyright (C) 2002-2003  Maxim Krasnyansky <maxk@qualcomm.com> *  Copyright (C) 2002-2005  Marcel Holtmann <marcel@holtmann.org> *  Copyright (C) 2002-2003  Stephen Crane <steve.crane@rococosoft.com> * * *  This program is free software; you can redistribute it and/or modify *  it under the terms of the GNU General Public License version 2 as *  published by the Free Software Foundation; * *  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *  OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. *  IN NO EVENT SHALL THE COPYRIGHT HOLDER(S) AND AUTHOR(S) BE LIABLE FOR ANY *  CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES  *  WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN  *  ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF  *  OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * *  ALL LIABILITY, INCLUDING LIABILITY FOR INFRINGEMENT OF ANY PATENTS,  *  COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS, RELATING TO USE OF THIS  *  SOFTWARE IS DISCLAIMED. * * *  $Id: sdp_lib.h,v 1.8 2005/03/02 10:23:16 jscrane Exp $ */#ifndef __SDP_LIB_H#define __SDP_LIB_H#include <sys/socket.h>#include <bluetooth/bluetooth.h>#include <bluetooth/hci.h>#ifdef __cplusplusextern "C" {#endif/* * SDP lists */typedef void(*sdp_list_func_t)(void *, void *);typedef void(*sdp_free_func_t)(void *);typedef int (*sdp_comp_func_t)(const void *, const void *);sdp_list_t *sdp_list_append(sdp_list_t *list, void *d);sdp_list_t *sdp_list_remove(sdp_list_t *list, void *d);sdp_list_t *sdp_list_insert_sorted(sdp_list_t *list, void *data, sdp_comp_func_t f);void        sdp_list_free(sdp_list_t *list, sdp_free_func_t f);static inline int sdp_list_len(const sdp_list_t *list) {	int n = 0;	for (; list; list = list->next)		n++;	return n;}static inline sdp_list_t *sdp_list_find(sdp_list_t *list, void *u, sdp_comp_func_t f){	for (; list; list = list->next)		if (f(list->data, u) == 0)			return list;	return NULL;}static inline void sdp_list_foreach(sdp_list_t *list, sdp_list_func_t f, void *u){	for (; list; list = list->next)		f(list->data, u);}/* * create an L2CAP connection to a Bluetooth device *  * INPUT: *   *  bdaddr_t *src: *	Address of the local device to use to make the connection *	(or BDADDR_ANY) * *  bdaddr_t *dst: *    Address of the SDP server device */sdp_session_t *sdp_connect(const bdaddr_t *src, const bdaddr_t *dst, uint32_t flags);int sdp_close(sdp_session_t *session);static inline int sdp_get_socket(const sdp_session_t *s){	return s->sock;}/* * find all devices in the piconet */int sdp_general_inquiry(inquiry_info *ii, int dev_num, int duration, uint8_t *found);/* flexible extraction of basic attributes - Jean II */int sdp_get_int_attr(const sdp_record_t *rec, uint16_t attr, int *value);int sdp_get_string_attr(const sdp_record_t *rec, uint16_t attr, char *value, int valuelen);/* * Basic sdp data functions */sdp_data_t *sdp_data_alloc(uint8_t dtd, const void *value);void sdp_data_free(sdp_data_t *data);sdp_data_t *sdp_data_get(const sdp_record_t *rec, uint16_t attr_id);sdp_data_t *sdp_seq_alloc(void **dtds, void **values, int len);sdp_data_t *sdp_seq_append(sdp_data_t *seq, sdp_data_t *data);int sdp_attr_add(sdp_record_t *rec, uint16_t attr, sdp_data_t *data);void sdp_attr_remove(sdp_record_t *rec, uint16_t attr);void sdp_attr_replace(sdp_record_t *rec, uint16_t attr, sdp_data_t *data);int sdp_set_uuidseq_attr(sdp_record_t *rec, uint16_t attr, sdp_list_t *seq);int sdp_get_uuidseq_attr(const sdp_record_t *rec, uint16_t attr, sdp_list_t **seqp);/* * NOTE that none of the functions below will update the SDP server,  * unless the {register, update}sdp_record_t() function is invoked. * All functions which return an integer value, return 0 on success  * or -1 on failure. *//* * Create an attribute and add it to the service record's attribute list. * This consists of the data type descriptor of the attribute,  * the value of the attribute and the attribute identifier. */int sdp_attr_add_new(sdp_record_t *rec, uint16_t attr, uint8_t dtd, const void *p);/* * Set the information attributes of the service record. * The set of attributes comprises service name, description  * and provider name */void sdp_set_info_attr(sdp_record_t *rec, const char *name, const char *prov, const char *desc);/* * Set the ServiceClassID attribute to the sequence specified by seq. * Note that the identifiers need to be in sorted order from the most  * specific to the most generic service class that this service * conforms to. */static inline int sdp_set_service_classes(sdp_record_t *rec, sdp_list_t *seq){	return sdp_set_uuidseq_attr(rec, SDP_ATTR_SVCLASS_ID_LIST, seq);}/* * Get the service classes to which the service conforms. *  * When set, the list contains elements of ServiceClassIdentifer(uint16_t)  * ordered from most specific to most generic */static inline int sdp_get_service_classes(const sdp_record_t *rec, sdp_list_t **seqp){	return sdp_get_uuidseq_attr(rec, SDP_ATTR_SVCLASS_ID_LIST, seqp);}/* * Set the BrowseGroupList attribute to the list specified by seq. *  * A service can belong to one or more service groups  * and the list comprises such group identifiers (UUIDs) */static inline int sdp_set_browse_groups(sdp_record_t *rec, sdp_list_t *seq){	return sdp_set_uuidseq_attr(rec, SDP_ATTR_BROWSE_GRP_LIST, seq);}/* * Set the access protocols of the record to those specified in proto */int sdp_set_access_protos(sdp_record_t *rec, const sdp_list_t *proto);/* * Get protocol port (i.e. PSM for L2CAP, Channel for RFCOMM)  */int sdp_get_proto_port(const sdp_list_t *list, int proto);/* * Get protocol descriptor.  */sdp_data_t *sdp_get_proto_desc(sdp_list_t *list, int proto);/* * Set the LanguageBase attributes to the values specified in list  * (a linked list of sdp_lang_attr_t objects, one for each language in  * which user-visible attributes are present). */int sdp_set_lang_attr(sdp_record_t *rec, const sdp_list_t *list);/* * Set the ServiceInfoTimeToLive attribute of the service.   * This is the number of seconds that this record is guaranteed * not to change after being obtained by a client. */static inline int sdp_set_service_ttl(sdp_record_t *rec, uint32_t ttl){	return sdp_attr_add_new(rec, SDP_ATTR_SVCINFO_TTL, SDP_UINT32, &ttl);}/* * Set the ServiceRecordState attribute of a service. This is * guaranteed to change if there is any kind of modification to  * the record.  */static inline int sdp_set_record_state(sdp_record_t *rec, uint32_t state){	return sdp_attr_add_new(rec, SDP_ATTR_RECORD_STATE, SDP_UINT32, &state);}/* * Set the ServiceID attribute of a service.  */void sdp_set_service_id(sdp_record_t *rec, uuid_t uuid);/* * Set the GroupID attribute of a service */void sdp_set_group_id(sdp_record_t *rec, uuid_t grouuuid);/* * Set the ServiceAvailability attribute of a service. *  * Note that this represents the relative availability * of the service: 0x00 means completely unavailable; * 0xFF means maximum availability. */static inline int sdp_set_service_avail(sdp_record_t *rec, uint8_t avail){	return sdp_attr_add_new(rec, SDP_ATTR_SERVICE_AVAILABILITY, SDP_UINT8, &avail);}/* * Set the profile descriptor list attribute of a record. *  * Each element in the list is an object of type * sdp_profile_desc_t which is a definition of the * Bluetooth profile that this service conforms to. */int sdp_set_profile_descs(sdp_record_t *rec, const sdp_list_t *desc);/* * Set URL attributes of a record. *  * ClientExecutableURL: a URL to a client's platform specific (WinCE,  * PalmOS) executable code that can be used to access this service. *  * DocumentationURL: a URL pointing to service documentation *  * IconURL: a URL to an icon that can be used to represent this service. *  * Note: pass NULL for any URLs that you don't want to set or remove */void sdp_set_url_attr(sdp_record_t *rec, const char *clientExecURL, const char *docURL, const char *iconURL);/* * a service search request.  *  *  INPUT : *  *    sdp_list_t *search_list *      list containing elements of the search *      pattern. Each entry in the list is a UUID *      of the service to be searched *  *    uint16_t max_rec_num *       An integer specifying the maximum number of *       entries that the client can handle in the response. *  *  OUTPUT : *  *    int return value *      0  *        The request completed successfully. This does not *        mean the requested services were found *      -1 *        The request completed unsuccessfully *  *    sdp_list_t *rsp_list *      This variable is set on a successful return if there are *      non-zero service handles. It is a singly linked list of

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久成人羞羞网站| 琪琪一区二区三区| 国产日韩欧美一区二区三区综合| 欧美精品三级在线观看| 在线成人免费视频| 日韩三级在线观看| 精品国产污网站| 久久久国产午夜精品| 26uuu国产一区二区三区| 久久久国产精品麻豆| 国产精品久久久久四虎| 日韩伦理av电影| 天天色综合成人网| 美女尤物国产一区| 国产白丝精品91爽爽久久| 成人激情免费视频| 91国偷自产一区二区三区观看| 在线观看91视频| 日韩一区二区在线观看| 久久综合av免费| 亚洲天堂久久久久久久| 午夜婷婷国产麻豆精品| 极品少妇一区二区| 91麻豆精品视频| 91精品国产综合久久久蜜臀图片| 欧美成人国产一区二区| 一区在线观看视频| 日韩在线一二三区| 国产成人免费xxxxxxxx| 在线区一区二视频| 日韩欧美卡一卡二| 国产精品久久久久9999吃药| 丝袜美腿高跟呻吟高潮一区| 国产一区二区不卡老阿姨| 色香蕉成人二区免费| 日韩一级二级三级精品视频| 国产精品网曝门| 亚洲成在人线在线播放| 国产在线不卡一卡二卡三卡四卡| 色哟哟精品一区| 久久综合av免费| 亚洲成a人v欧美综合天堂| 国产精品主播直播| 51精品国自产在线| 亚洲欧洲精品一区二区三区不卡| 蜜桃精品视频在线观看| 在线中文字幕一区| 国产欧美日韩在线| 日韩不卡在线观看日韩不卡视频| 99在线视频精品| 久久久一区二区| 日本不卡123| 欧美日韩免费高清一区色橹橹| 国产三区在线成人av| 男人操女人的视频在线观看欧美| 91同城在线观看| 国产精品网站导航| 国产美女精品在线| 日韩精品一区二区三区在线播放 | 国产亚洲欧美色| 性做久久久久久免费观看欧美| 成人福利视频网站| 国产欧美日韩不卡| 国产成人午夜视频| 久久综合久久综合亚洲| 美腿丝袜一区二区三区| 欧美日韩日日骚| 天天免费综合色| 欧美另类高清zo欧美| 亚洲电影激情视频网站| 在线观看日产精品| 亚洲影院久久精品| 欧美视频自拍偷拍| 亚洲v精品v日韩v欧美v专区| 色美美综合视频| 亚洲在线一区二区三区| 欧洲国产伦久久久久久久| 亚洲人成人一区二区在线观看 | 免费在线看一区| 91麻豆精品国产91久久久| 日韩综合小视频| 日韩情涩欧美日韩视频| 久久99日本精品| 久久亚洲精品小早川怜子| 国产精品主播直播| 国产精品国产自产拍高清av| 91网上在线视频| 亚洲成av人片在线观看无码| 在线成人av网站| 久久成人免费电影| 欧美激情在线看| 日本精品一区二区三区高清| 香蕉加勒比综合久久| 日韩精品专区在线影院观看| 狠狠色丁香婷综合久久| 中文字幕av资源一区| 色综合久久久久久久| 日韩精品一区第一页| 2024国产精品| 91免费国产在线| 免费观看一级特黄欧美大片| 久久久天堂av| 91成人国产精品| 久久精品国产久精国产爱| 国产精品视频线看| 欧美色老头old∨ideo| 久国产精品韩国三级视频| 国产精品国产三级国产三级人妇 | 免费成人美女在线观看| 国产欧美日韩精品在线| 欧美日韩一区不卡| 国产精品一二三区| 亚洲成人免费看| 精品国产sm最大网站免费看| 91免费国产在线| 国产综合成人久久大片91| 一区二区三区不卡在线观看| 精品久久久久久久久久久久久久久 | 91视视频在线观看入口直接观看www| 亚洲午夜成aⅴ人片| 日本一区二区免费在线观看视频| 欧美午夜片在线看| 国产传媒一区在线| 日本欧美一区二区三区| 国产精品私人影院| 日韩欧美一区二区视频| 91福利视频久久久久| 日本aⅴ精品一区二区三区| 中文字幕欧美一区| 国产亚洲综合在线| 日韩欧美久久久| 欧美久久久久久久久久| 91蜜桃传媒精品久久久一区二区| 老司机精品视频线观看86| 亚洲国产美国国产综合一区二区 | 成人av先锋影音| 麻豆国产精品视频| 日韩国产高清影视| 亚洲国产精品久久人人爱蜜臀 | 又紧又大又爽精品一区二区| 久久精品人人做| 精品国产乱码久久久久久牛牛| 欧美日韩高清在线播放| 色伊人久久综合中文字幕| 99精品欧美一区二区蜜桃免费| 国产呦萝稀缺另类资源| 精品一区二区三区视频在线观看| 亚洲成人综合网站| 亚洲国产精品视频| 亚洲香蕉伊在人在线观| 亚洲一区二区精品久久av| 亚洲欧美一区二区久久| 亚洲欧美在线观看| 亚洲丝袜制服诱惑| 亚洲六月丁香色婷婷综合久久| 国产精品久久夜| 亚洲色大成网站www久久九九| 国产精品欧美一级免费| 中文字幕在线观看不卡视频| 中文字幕日韩av资源站| 亚洲情趣在线观看| 亚洲国产一区二区a毛片| 国产精品国产三级国产aⅴ入口| 国产精品日日摸夜夜摸av| 久久精品一区二区三区四区| 成人性生交大合| 91色九色蝌蚪| 在线观看视频91| 69av一区二区三区| 精品免费国产二区三区| 国产女同性恋一区二区| 中文字幕一区二区日韩精品绯色| 亚洲欧美日韩国产一区二区三区| 亚洲综合免费观看高清完整版在线| 亚洲一区二区不卡免费| 麻豆精品久久精品色综合| 国产精一品亚洲二区在线视频| 丁香婷婷深情五月亚洲| 在线亚洲一区二区| 日韩欧美另类在线| 中文字幕在线不卡视频| 日本中文在线一区| 国产精品18久久久久久久网站| 91美女片黄在线| 日韩一区二区麻豆国产| 国产精品国产精品国产专区不片 | 综合欧美一区二区三区| 日韩成人精品在线观看| 国产一区二区三区最好精华液| 99久久99久久综合| 欧美一区二区三区的| 1024亚洲合集| 久久精品久久久精品美女| av在线这里只有精品| 欧美一卡2卡3卡4卡| 亚洲色图视频网| 国内精品国产三级国产a久久| 一本一道久久a久久精品 | 亚洲男女一区二区三区| 精品一区二区三区免费观看|