btstack/docs/manual/api_sdp_queries.tex

29 lines
1.0 KiB
TeX
Raw Normal View History

2014-11-06 14:09:12 +00:00
% !TEX root = btstack_gettingstarted.tex
2015-04-09 12:49:03 +00:00
\section{SDP RFCOMM Query}
\label{appendix:api_sdp_queries}
2014-11-06 14:09:12 +00:00
$ $
2015-04-09 12:49:03 +00:00
\begin{lstlisting}
// SDP Query RFCOMM event to deliver channel number and service name
// byte by byte.
2014-11-06 14:09:12 +00:00
typedef struct sdp_query_rfcomm_service_event {
uint8_t type;
uint8_t channel_nr;
uint8_t * service_name;
} sdp_query_rfcomm_service_event_t;
2015-04-09 12:49:03 +00:00
// Registers a callback to receive RFCOMM service and query complete
// event.
void sdp_query_rfcomm_register_callback(void(*sdp_app_callback)(sdp_query_event_t * event, void * context), void * context);
void sdp_query_rfcomm_deregister_callback();
2014-11-06 14:09:12 +00:00
// Searches SDP records on a remote device for RFCOMM services with
// a given UUID.
void sdp_query_rfcomm_channel_and_name_for_uuid(bd_addr_t remote, uint16_t uuid);
2015-04-09 12:49:03 +00:00
// Searches SDP records on a remote device for RFCOMM services with
2014-11-06 14:09:12 +00:00
// a given service search pattern.
void sdp_query_rfcomm_channel_and_name_for_search_pattern(bd_addr_t remote, uint8_t * des_serviceSearchPattern);
\end{lstlisting}
2015-04-09 12:49:03 +00:00
\pagebreak