|
Zephyr API Documentation 4.3.0-rc1
A Scalable Open Source RTOS
|
OBEX transport operations structure. More...
#include <zephyr/bluetooth/classic/obex.h>
Data Fields | |
| struct net_buf *(* | alloc_buf )(struct bt_obex *obex, struct net_buf_pool *pool) |
| allocate buf callback | |
| int(* | send )(struct bt_obex *obex, struct net_buf *buf) |
| Send OBEX data via transport. | |
| int(* | disconnect )(struct bt_obex *obex) |
| Disconnect from transport. | |
OBEX transport operations structure.
The object has to stay valid and constant for the lifetime of the OBEX client/server.
| struct net_buf *(* bt_obex_transport_ops::alloc_buf) (struct bt_obex *obex, struct net_buf_pool *pool) |
allocate buf callback
If this callback is provided it will be called to allocate a net buffer to store the outgoing data.
| obex | The OBEX object. |
| pool | Which pool to take the buffer from. |
| int(* bt_obex_transport_ops::disconnect) (struct bt_obex *obex) |
Disconnect from transport.
If this callback is provided it will be called to disconnect transport.
| obex | The OBEX object. |
Send OBEX data via transport.
If this callback is provided it will be called to send data via OBEX transport.
| obex | The OBEX object. |
| buf | OBEX packet. |