Zephyr Project API 4.2.99
A Scalable Open Source RTOS
|
OBEX server operations structure. More...
#include <obex.h>
Data Fields | |
void(* | connect )(struct bt_obex *obex, uint8_t version, uint16_t mopl, struct net_buf *buf) |
OBEX connect request callback. | |
void(* | disconnect )(struct bt_obex *obex, struct net_buf *buf) |
OBEX disconnect request callback. | |
void(* | put )(struct bt_obex *obex, bool final, struct net_buf *buf) |
OBEX put request callback. | |
void(* | get )(struct bt_obex *obex, bool final, struct net_buf *buf) |
OBEX get request callback. | |
void(* | abort )(struct bt_obex *obex, struct net_buf *buf) |
OBEX abort request callback. | |
void(* | setpath )(struct bt_obex *obex, uint8_t flags, struct net_buf *buf) |
OBEX SetPath request callback. | |
void(* | action )(struct bt_obex *obex, bool final, struct net_buf *buf) |
OBEX action request callback. | |
OBEX server operations structure.
The object has to stay valid and constant for the lifetime of the OBEX server.
OBEX abort request callback.
If this callback is provided it will be called whenever the OBEX abort request is received.
obex | The OBEX object. |
buf | Optional headers. |
OBEX action request callback.
If this callback is provided it will be called whenever the OBEX action request is received.
obex | The OBEX object. |
final | If the final bit is set. |
buf | Sequence of headers (Including action identifier header if it exists). |
void(* bt_obex_server_ops::connect) (struct bt_obex *obex, uint8_t version, uint16_t mopl, struct net_buf *buf) |
OBEX connect request callback.
If this callback is provided it will be called whenever the OBEX connect request is received.
obex | The OBEX object. |
version | OBEX version number. |
mopl | Maximum OBEX packet length. |
buf | Sequence of headers. |
OBEX disconnect request callback.
If this callback is provided it will be called whenever the OBEX disconnect request is received.
obex | The OBEX object. |
buf | Sequence of headers. |
OBEX get request callback.
If this callback is provided it will be called whenever the OBEX get request is received.
obex | The OBEX object. |
final | If the final bit is set. |
buf | Sequence of headers. |
OBEX put request callback.
If this callback is provided it will be called whenever the OBEX put request is received.
obex | The OBEX object. |
final | If the final bit is set. |
buf | Sequence of headers. |
OBEX SetPath request callback.
If this callback is provided it will be called whenever the OBEX SetPath request is received.
obex | The OBEX object. |
flags | The flags. |
buf | Optional headers. |