Zephyr Project API 4.2.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
bt_obex_server_ops Struct Reference

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.
 

Detailed Description

OBEX server operations structure.

The object has to stay valid and constant for the lifetime of the OBEX server.

Field Documentation

◆ abort

void(* bt_obex_server_ops::abort) (struct bt_obex *obex, struct net_buf *buf)

OBEX abort request callback.

If this callback is provided it will be called whenever the OBEX abort request is received.

Parameters
obexThe OBEX object.
bufOptional headers.

◆ action

void(* bt_obex_server_ops::action) (struct bt_obex *obex, bool final, struct net_buf *buf)

OBEX action request callback.

If this callback is provided it will be called whenever the OBEX action request is received.

Parameters
obexThe OBEX object.
finalIf the final bit is set.
bufSequence of headers (Including action identifier header if it exists).

◆ connect

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.

Parameters
obexThe OBEX object.
versionOBEX version number.
moplMaximum OBEX packet length.
bufSequence of headers.

◆ disconnect

void(* bt_obex_server_ops::disconnect) (struct bt_obex *obex, struct net_buf *buf)

OBEX disconnect request callback.

If this callback is provided it will be called whenever the OBEX disconnect request is received.

Parameters
obexThe OBEX object.
bufSequence of headers.

◆ get

void(* bt_obex_server_ops::get) (struct bt_obex *obex, bool final, struct net_buf *buf)

OBEX get request callback.

If this callback is provided it will be called whenever the OBEX get request is received.

Parameters
obexThe OBEX object.
finalIf the final bit is set.
bufSequence of headers.

◆ put

void(* bt_obex_server_ops::put) (struct bt_obex *obex, bool final, struct net_buf *buf)

OBEX put request callback.

If this callback is provided it will be called whenever the OBEX put request is received.

Parameters
obexThe OBEX object.
finalIf the final bit is set.
bufSequence of headers.

◆ setpath

void(* bt_obex_server_ops::setpath) (struct bt_obex *obex, uint8_t flags, struct net_buf *buf)

OBEX SetPath request callback.

If this callback is provided it will be called whenever the OBEX SetPath request is received.

Parameters
obexThe OBEX object.
flagsThe flags.
bufOptional headers.

The documentation for this struct was generated from the following file: