XenevaOS
Loading...
Searching...
No Matches
Functions
parse.c File Reference
#include "parse.h"
#include <string.h>
Include dependency graph for parse.c:

Functions

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)
 
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)
 

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 
)