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

📄 sdp.h

📁 bluetooth 驱动
💻 H
字号:
/* * sdp.h -- Implementation of Bluetooth Service Discovery Protocol  * * Copyright (C) 2000, 2001  Axis Communications AB * * Author: Mats Friden <mats.friden@axis.com>  * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. * * Exceptionally, Axis Communications AB grants discretionary and * conditional permissions for additional use of the text contained * in the company's release of the AXIS OpenBT Stack under the * provisions set forth hereunder. * * Provided that, if you use the AXIS OpenBT Stack with other files, * that do not implement functionality as specified in the Bluetooth * System specification, to produce an executable, this does not by * itself cause the resulting executable to be covered by the GNU * General Public License. Your use of that executable is in no way * restricted on account of using the AXIS OpenBT Stack code with it. * * This exception does not however invalidate any other reasons why * the executable file might be covered by the provisions of the GNU * General Public License. * * $Id: sdp.h,v 1.27 2001/10/10 14:59:17 anderstj Exp $ * */#ifndef SDP_H#define SDP_H/****************** INCLUDE FILES SECTION ***********************************/#ifdef __KERNEL__#include <linux/types.h>#include <linux/bluetooth/btcommon.h>#include <linux/bluetooth/l2cap.h>#else#include "btcommon.h"#include "local.h"#include "l2cap.h"#endif/****************** CONSTANT AND MACRO SECTION ******************************/#define SERPORT_PROFILE 0#define LAN_PROFILE 1/*--------------------------------------------------------------------------*//* SDP connection ID macros.                                                *//* line = bt connection line.  Really not relevant to SDP....only relevant  *//* to the bluetooth.c connection layer.  (provides the index into the       *//* bt_ctrl data structure).                                                 *//* index = The SDP connection data structure.                               *//*--------------------------------------------------------------------------*/#define CREATE_SDP_ID(line, index) ( ((SDP_LAYER << 16) & 0xffff0000) | ((line << 8) & 0x0000ff00) | (index & 0xff) )#define GET_SDPINDEX(conID) ( (conID & 0xff) )/****************** TYPE DEFINITION SECTION *********************************//****************** EXPORTED FUNCTION DECLARATION SECTION *******************/extern struct proc_dir_entry sdp_proc_entry;void sdp_init(s32 server);void sdp_shutdown(void);#ifdef __KERNEL__s32 sdp_create_proc_file(void);s32 sdp_remove_proc_file(void);#endifs32 sdp_connect_req(u8* bd_addr, u8 line);void sdp_connect_ind(l2cap_con *l2cap);void sdp_connect_pnd(l2cap_con *l2cap, int status);void sdp_connect_cfm(l2cap_con *l2cap, s32 status);void sdp_config_ind(l2cap_con* l2cap);void sdp_config_cfm(l2cap_con *l2cap, s32 status);void sdp_disconnect_req(u32 sdp_hdl);void sdp_disconnect_ind(l2cap_con *l2cap);void sdp_disconnect_cfm(l2cap_con *l2cap);void sdp_receive_data(l2cap_con *l2cap, u8* data, u32 len);s32 sdp_send_data(sdp_con *sdp, u8 *data, u32 len);#ifdef __KERNEL__s32 sdpStartRequest(u8 sdpIndex, u8 sdpCommand, u8 *pduData, u16 pduLength);#endif#endif/****************** END OF FILE sdp.h ***************************************/

⌨️ 快捷键说明

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