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

OBEX client operations structure. More...

#include <obex.h>

Data Fields

void(* connect )(struct bt_obex *obex, uint8_t rsp_code, uint8_t version, uint16_t mopl, struct net_buf *buf)
 OBEX connect response callback.
 
void(* disconnect )(struct bt_obex *obex, uint8_t rsp_code, struct net_buf *buf)
 OBEX disconnect response callback.
 
void(* put )(struct bt_obex *obex, uint8_t rsp_code, struct net_buf *buf)
 OBEX put response callback.
 
void(* get )(struct bt_obex *obex, uint8_t rsp_code, struct net_buf *buf)
 OBEX get response callback.
 
void(* abort )(struct bt_obex *obex, uint8_t rsp_code, struct net_buf *buf)
 OBEX abort response callback.
 
void(* setpath )(struct bt_obex *obex, uint8_t rsp_code, struct net_buf *buf)
 OBEX SetPath response callback.
 
void(* action )(struct bt_obex *obex, uint8_t rsp_code, struct net_buf *buf)
 OBEX action response callback.
 

Detailed Description

OBEX client operations structure.

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

Field Documentation

◆ abort

void(* bt_obex_client_ops::abort) (struct bt_obex *obex, 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.

Parameters
obexThe OBEX object.
rsp_codeResponse code.
bufOptional response headers.

◆ action

void(* bt_obex_client_ops::action) (struct bt_obex *obex, 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.

Parameters
obexThe OBEX object.
rsp_codeResponse code.
bufOptional response headers.

◆ connect

void(* bt_obex_client_ops::connect) (struct bt_obex *obex, 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.

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

◆ disconnect

void(* bt_obex_client_ops::disconnect) (struct bt_obex *obex, 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.

Parameters
obexThe OBEX object.
rsp_codeResponse code.
bufSequence of headers.

◆ get

void(* bt_obex_client_ops::get) (struct bt_obex *obex, 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.

Parameters
obexThe OBEX object.
rsp_codeResponse code.
bufOptional response headers.

◆ put

void(* bt_obex_client_ops::put) (struct bt_obex *obex, 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.

Parameters
obexThe OBEX object.
rsp_codeResponse code.
bufOptional response headers.

◆ setpath

void(* bt_obex_client_ops::setpath) (struct bt_obex *obex, 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.

Parameters
obexThe OBEX object.
rsp_codeResponse code.
bufOptional response headers.

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