Zephyr API Documentation 4.2.99
A Scalable Open Source RTOS
|
OBEX client operations structure. More...
#include <zephyr/bluetooth/classic/obex.h>
Data Fields | |
void(* | connect )(struct bt_obex_client *client, uint8_t rsp_code, uint8_t version, uint16_t mopl, struct net_buf *buf) |
OBEX connect response callback. | |
void(* | disconnect )(struct bt_obex_client *client, uint8_t rsp_code, struct net_buf *buf) |
OBEX disconnect response callback. | |
void(* | put )(struct bt_obex_client *client, uint8_t rsp_code, struct net_buf *buf) |
OBEX put response callback. | |
void(* | get )(struct bt_obex_client *client, uint8_t rsp_code, struct net_buf *buf) |
OBEX get response callback. | |
void(* | abort )(struct bt_obex_client *client, uint8_t rsp_code, struct net_buf *buf) |
OBEX abort response callback. | |
void(* | setpath )(struct bt_obex_client *client, uint8_t rsp_code, struct net_buf *buf) |
OBEX SetPath response callback. | |
void(* | action )(struct bt_obex_client *client, uint8_t rsp_code, struct net_buf *buf) |
OBEX action response callback. |
OBEX client operations structure.
The object has to stay valid and constant for the lifetime of the OBEX client.
void(* bt_obex_client_ops::abort) (struct bt_obex_client *client, uint8_t rsp_code, struct net_buf *buf) |
OBEX abort response callback.
If this callback is provided it will be called whenever the OBEX abort response is received.
client | The OBEX client object. |
rsp_code | Response code. |
buf | Optional response headers. |
void(* bt_obex_client_ops::action) (struct bt_obex_client *client, uint8_t rsp_code, struct net_buf *buf) |
OBEX action response callback.
If this callback is provided it will be called whenever the OBEX action response is received.
client | The OBEX client object. |
rsp_code | Response code. |
buf | Optional response headers. |
void(* bt_obex_client_ops::connect) (struct bt_obex_client *client, uint8_t rsp_code, uint8_t version, uint16_t mopl, struct net_buf *buf) |
OBEX connect response callback.
If this callback is provided it will be called whenever the OBEX connect response is received.
client | The OBEX client object. |
rsp_code | Response code. |
version | OBEX version number. |
mopl | Maximum OBEX packet length. |
buf | Sequence of headers. |
void(* bt_obex_client_ops::disconnect) (struct bt_obex_client *client, uint8_t rsp_code, struct net_buf *buf) |
OBEX disconnect response callback.
If this callback is provided it will be called whenever the OBEX disconnect response is received.
client | The OBEX client object. |
rsp_code | Response code. |
buf | Sequence of headers. |
void(* bt_obex_client_ops::get) (struct bt_obex_client *client, uint8_t rsp_code, struct net_buf *buf) |
OBEX get response callback.
If this callback is provided it will be called whenever the OBEX get response is received.
client | The OBEX client object. |
rsp_code | Response code. |
buf | Optional response headers. |
void(* bt_obex_client_ops::put) (struct bt_obex_client *client, uint8_t rsp_code, struct net_buf *buf) |
OBEX put response callback.
If this callback is provided it will be called whenever the OBEX put response is received.
client | The OBEX client object. |
rsp_code | Response code. |
buf | Optional response headers. |
void(* bt_obex_client_ops::setpath) (struct bt_obex_client *client, uint8_t rsp_code, struct net_buf *buf) |
OBEX SetPath response callback.
If this callback is provided it will be called whenever the OBEX SetPath response is received.
client | The OBEX client object. |
rsp_code | Response code. |
buf | Optional response headers. |