XenevaOS
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Functions
parse.h File Reference
#include <stdint.h>
Include dependency graph for parse.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _bt_bond_rec_
 

Macros

#define SDP_PSM   1
 
#define SDP_ERR_RSP   0x01
 
#define SDP_SS_REQ   0x02
 
#define SDP_SS_RSP   0x03
 
#define SDP_SA_REQ   0x04
 
#define SDP_SA_RSP   0x05
 
#define SDP_SSA_REQ   0x06
 
#define SDP_SSA_RSP   0x07
 
#define SDP_UUID_AUDIOSINK   0x110B
 
#define SDP_UUID_L2CAP   0x0100
 
#define SDP_UUID_AVDTP   0x0019
 
#define SDP_ATTR_PROTO_LIST   0x0004
 
#define BT_BOND_MAGIC   0x31444e42u /* 'BND1' little-endian */
 

Typedefs

typedef struct _bt_bond_rec_ BtBondRec
 

Functions

int bt_ad_name (const uint8_t *ad, int len, char *out, int cap)
 
int bt_hci_cmd (uint8_t *out, uint16_t opcode, const uint8_t *param, uint8_t plen)
 
int bt_att_read_req (uint8_t *out, uint16_t handle)
 
int bt_att_read_rsp (const uint8_t *pdu, int len, uint8_t *val, int cap)
 
int sdp_build_search (uint8_t *o, uint16_t tid, uint16_t uuid16)
 
int sdp_build_attr (uint8_t *o, uint16_t tid, uint32_t handle, uint16_t attr)
 
int sdp_build_search_attr (uint8_t *o, uint16_t tid, uint16_t uuid16, uint16_t attr)
 
int sdp_cont_get (const uint8_t *p, int len, const uint8_t **state)
 
int sdp_cont_append (uint8_t *o, int clen, const uint8_t *state, int slen)
 
int sdp_parse_search_rsp (const uint8_t *p, int len, uint16_t tid, uint32_t *handle)
 
int sdp_parse_attr_psm (const uint8_t *p, int len, uint16_t tid, uint16_t *psm, uint16_t *ver)
 
int sdp_parse_ssa_psm (const uint8_t *p, int len, uint16_t tid, uint16_t *psm, uint16_t *ver)
 

Macro Definition Documentation

◆ BT_BOND_MAGIC

#define BT_BOND_MAGIC   0x31444e42u /* 'BND1' little-endian */

◆ SDP_ATTR_PROTO_LIST

#define SDP_ATTR_PROTO_LIST   0x0004

◆ SDP_ERR_RSP

#define SDP_ERR_RSP   0x01

◆ SDP_PSM

#define SDP_PSM   1

◆ SDP_SA_REQ

#define SDP_SA_REQ   0x04

◆ SDP_SA_RSP

#define SDP_SA_RSP   0x05

◆ SDP_SS_REQ

#define SDP_SS_REQ   0x02

◆ SDP_SS_RSP

#define SDP_SS_RSP   0x03

◆ SDP_SSA_REQ

#define SDP_SSA_REQ   0x06

◆ SDP_SSA_RSP

#define SDP_SSA_RSP   0x07

◆ SDP_UUID_AUDIOSINK

#define SDP_UUID_AUDIOSINK   0x110B

◆ SDP_UUID_AVDTP

#define SDP_UUID_AVDTP   0x0019

◆ SDP_UUID_L2CAP

#define SDP_UUID_L2CAP   0x0100

Typedef Documentation

◆ BtBondRec

typedef struct _bt_bond_rec_ BtBondRec

Function Documentation

◆ bt_ad_name()

int bt_ad_name ( const uint8_t *  ad,
int  len,
char *  out,
int  cap 
)

BSD 2-Clause License

Copyright (c) 2022-2026, Manas Kamal Choudhury All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

◆ bt_att_read_req()

int bt_att_read_req ( uint8_t *  out,
uint16_t  handle 
)

◆ bt_att_read_rsp()

int bt_att_read_rsp ( const uint8_t *  pdu,
int  len,
uint8_t *  val,
int  cap 
)

◆ bt_hci_cmd()

int bt_hci_cmd ( uint8_t *  out,
uint16_t  opcode,
const uint8_t *  param,
uint8_t  plen 
)

◆ sdp_build_attr()

int sdp_build_attr ( uint8_t *  o,
uint16_t  tid,
uint32_t  handle,
uint16_t  attr 
)

◆ sdp_build_search()

int sdp_build_search ( uint8_t *  o,
uint16_t  tid,
uint16_t  uuid16 
)

◆ sdp_build_search_attr()

int sdp_build_search_attr ( uint8_t *  o,
uint16_t  tid,
uint16_t  uuid16,
uint16_t  attr 
)

◆ sdp_cont_append()

int sdp_cont_append ( uint8_t *  o,
int  clen,
const uint8_t *  state,
int  slen 
)

◆ sdp_cont_get()

int sdp_cont_get ( const uint8_t *  p,
int  len,
const uint8_t **  state 
)

◆ sdp_parse_attr_psm()

int sdp_parse_attr_psm ( const uint8_t *  p,
int  len,
uint16_t  tid,
uint16_t *  psm,
uint16_t *  ver 
)

◆ sdp_parse_search_rsp()

int sdp_parse_search_rsp ( const uint8_t *  p,
int  len,
uint16_t  tid,
uint32_t *  handle 
)

◆ sdp_parse_ssa_psm()

int sdp_parse_ssa_psm ( const uint8_t *  p,
int  len,
uint16_t  tid,
uint16_t *  psm,
uint16_t *  ver 
)