Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

MAP Client MAS callbacks. More...

#include <zephyr/bluetooth/classic/map.h>

Data Fields

void(* rfcomm_connected )(struct bt_conn *conn, struct bt_map_mce_mas *mce_mas)
 RFCOMM transport connected callback.
void(* rfcomm_disconnected )(struct bt_map_mce_mas *mce_mas)
 RFCOMM transport disconnected callback.
void(* l2cap_connected )(struct bt_conn *conn, struct bt_map_mce_mas *mce_mas)
 L2CAP transport connected callback.
void(* l2cap_disconnected )(struct bt_map_mce_mas *mce_mas)
 L2CAP transport disconnected callback.
void(* connect )(struct bt_map_mce_mas *mce_mas, uint8_t rsp_code, uint8_t version, uint16_t mopl, struct net_buf *buf)
 Connect callback.
void(* disconnect )(struct bt_map_mce_mas *mce_mas, uint8_t rsp_code, struct net_buf *buf)
 Disconnect callback.
void(* abort )(struct bt_map_mce_mas *mce_mas, uint8_t rsp_code, struct net_buf *buf)
 Abort callback.
void(* set_ntf_reg )(struct bt_map_mce_mas *mce_mas, uint8_t rsp_code, struct net_buf *buf)
 Set notification registration callback.
void(* set_folder )(struct bt_map_mce_mas *mce_mas, uint8_t rsp_code, struct net_buf *buf)
 Set folder callback.
void(* get_folder_listing )(struct bt_map_mce_mas *mce_mas, uint8_t rsp_code, struct net_buf *buf)
 Get folder listing callback.
void(* get_msg_listing )(struct bt_map_mce_mas *mce_mas, uint8_t rsp_code, struct net_buf *buf)
 Get message listing callback.
void(* get_msg )(struct bt_map_mce_mas *mce_mas, uint8_t rsp_code, struct net_buf *buf)
 Get message callback.
void(* set_msg_status )(struct bt_map_mce_mas *mce_mas, uint8_t rsp_code, struct net_buf *buf)
 Set message status callback.
void(* push_msg )(struct bt_map_mce_mas *mce_mas, uint8_t rsp_code, struct net_buf *buf)
 Push message callback.
void(* update_inbox )(struct bt_map_mce_mas *mce_mas, uint8_t rsp_code, struct net_buf *buf)
 Update inbox callback.
void(* get_mas_inst_info )(struct bt_map_mce_mas *mce_mas, uint8_t rsp_code, struct net_buf *buf)
 Get MAS instance info callback.
void(* set_owner_status )(struct bt_map_mce_mas *mce_mas, uint8_t rsp_code, struct net_buf *buf)
 Set owner status callback.
void(* get_owner_status )(struct bt_map_mce_mas *mce_mas, uint8_t rsp_code, struct net_buf *buf)
 Get owner status callback.
void(* get_convo_listing )(struct bt_map_mce_mas *mce_mas, uint8_t rsp_code, struct net_buf *buf)
 Get conversation listing callback.
void(* set_ntf_filter )(struct bt_map_mce_mas *mce_mas, uint8_t rsp_code, struct net_buf *buf)
 Set notification filter callback.

Detailed Description

MAP Client MAS callbacks.

Callbacks for MAP Client MAS events.

Field Documentation

◆ abort

void(* bt_map_mce_mas_cb::abort) (struct bt_map_mce_mas *mce_mas, uint8_t rsp_code, struct net_buf *buf)

Abort callback.

Called when OBEX ABORT response is received.

Parameters
mce_masMAS client instance.
rsp_codeResponse code bt_obex_rsp_code.
bufBuffer containing response headers.

◆ connect

void(* bt_map_mce_mas_cb::connect) (struct bt_map_mce_mas *mce_mas, uint8_t rsp_code, uint8_t version, uint16_t mopl, struct net_buf *buf)

Connect callback.

Called when OBEX CONNECT response is received.

Parameters
mce_masMAS client instance.
rsp_codeResponse code bt_obex_rsp_code (BT_OBEX_RSP_CODE_SUCCESS on success).
versionOBEX protocol version supported by server.
moplMaximum OBEX packet length supported by server.
bufBuffer containing additional response headers (connection ID, etc.).

◆ disconnect

void(* bt_map_mce_mas_cb::disconnect) (struct bt_map_mce_mas *mce_mas, uint8_t rsp_code, struct net_buf *buf)

Disconnect callback.

Called when OBEX DISCONNECT response is received.

Parameters
mce_masMAS client instance.
rsp_codeResponse code bt_obex_rsp_code.
bufBuffer containing response headers.

◆ get_convo_listing

void(* bt_map_mce_mas_cb::get_convo_listing) (struct bt_map_mce_mas *mce_mas, uint8_t rsp_code, struct net_buf *buf)

Get conversation listing callback.

Called when GetConversationListing response is received. May be called multiple times for a single request if response is fragmented.

Parameters
mce_masMAS client instance.
rsp_codeResponse code bt_obex_rsp_code (BT_OBEX_RSP_CODE_CONTINUE for partial data).
bufBuffer containing conversation listing XML data and headers.

◆ get_folder_listing

void(* bt_map_mce_mas_cb::get_folder_listing) (struct bt_map_mce_mas *mce_mas, uint8_t rsp_code, struct net_buf *buf)

Get folder listing callback.

Called when GetFolderListing response is received. May be called multiple times for a single request if response is fragmented.

Parameters
mce_masMAS client instance.
rsp_codeResponse code bt_obex_rsp_code (BT_OBEX_RSP_CODE_CONTINUE for partial data).
bufBuffer containing folder listing XML data and headers.

◆ get_mas_inst_info

void(* bt_map_mce_mas_cb::get_mas_inst_info) (struct bt_map_mce_mas *mce_mas, uint8_t rsp_code, struct net_buf *buf)

Get MAS instance info callback.

Called when GetMASInstanceInformation response is received. May be called multiple times for a single request if response is fragmented.

Parameters
mce_masMAS client instance.
rsp_codeResponse code bt_obex_rsp_code (BT_OBEX_RSP_CODE_CONTINUE for partial data).
bufBuffer containing instance information XML data and headers.

◆ get_msg

void(* bt_map_mce_mas_cb::get_msg) (struct bt_map_mce_mas *mce_mas, uint8_t rsp_code, struct net_buf *buf)

Get message callback.

Called when GetMessage response is received. May be called multiple times for a single request if response is fragmented.

Parameters
mce_masMAS client instance.
rsp_codeResponse code bt_obex_rsp_code (BT_OBEX_RSP_CODE_CONTINUE for partial data).
bufBuffer containing message bMessage data and headers.

◆ get_msg_listing

void(* bt_map_mce_mas_cb::get_msg_listing) (struct bt_map_mce_mas *mce_mas, uint8_t rsp_code, struct net_buf *buf)

Get message listing callback.

Called when GetMessageListing response is received. May be called multiple times for a single request if response is fragmented.

Parameters
mce_masMAS client instance.
rsp_codeResponse code bt_obex_rsp_code (BT_OBEX_RSP_CODE_CONTINUE for partial data).
bufBuffer containing message listing XML data and headers.

◆ get_owner_status

void(* bt_map_mce_mas_cb::get_owner_status) (struct bt_map_mce_mas *mce_mas, uint8_t rsp_code, struct net_buf *buf)

Get owner status callback.

Called when GetOwnerStatus response is received. May be called multiple times for a single request if response is fragmented.

Parameters
mce_masMAS client instance.
rsp_codeResponse code bt_obex_rsp_code (BT_OBEX_RSP_CODE_CONTINUE for partial data).
bufBuffer containing owner status data and headers.

◆ l2cap_connected

void(* bt_map_mce_mas_cb::l2cap_connected) (struct bt_conn *conn, struct bt_map_mce_mas *mce_mas)

L2CAP transport connected callback.

Called when the underlying transport (L2CAP) connection is established. OBEX connection has not yet been negotiated at this point.

Parameters
connBluetooth connection object.
mce_masMAS client instance.

◆ l2cap_disconnected

void(* bt_map_mce_mas_cb::l2cap_disconnected) (struct bt_map_mce_mas *mce_mas)

L2CAP transport disconnected callback.

Called when the underlying transport (L2CAP) connection is closed. All pending operations are cancelled.

Parameters
mce_masMAS client instance.

◆ push_msg

void(* bt_map_mce_mas_cb::push_msg) (struct bt_map_mce_mas *mce_mas, uint8_t rsp_code, struct net_buf *buf)

Push message callback.

Called when PushMessage response is received. May be called multiple times if request is fragmented (BT_OBEX_RSP_CODE_CONTINUE).

Parameters
mce_masMAS client instance.
rsp_codeResponse code bt_obex_rsp_code (BT_OBEX_RSP_CODE_CONTINUE for partial upload).
bufBuffer containing message handle (on success) and headers.

◆ rfcomm_connected

void(* bt_map_mce_mas_cb::rfcomm_connected) (struct bt_conn *conn, struct bt_map_mce_mas *mce_mas)

RFCOMM transport connected callback.

Called when the underlying transport (RFCOMM) connection is established. OBEX connection has not yet been negotiated at this point.

Parameters
connBluetooth connection object.
mce_masMAS client instance.

◆ rfcomm_disconnected

void(* bt_map_mce_mas_cb::rfcomm_disconnected) (struct bt_map_mce_mas *mce_mas)

RFCOMM transport disconnected callback.

Called when the underlying transport (RFCOMM) connection is closed. All pending operations are cancelled.

Parameters
mce_masMAS client instance.

◆ set_folder

void(* bt_map_mce_mas_cb::set_folder) (struct bt_map_mce_mas *mce_mas, uint8_t rsp_code, struct net_buf *buf)

Set folder callback.

Called when SetFolder response is received.

Parameters
mce_masMAS client instance.
rsp_codeResponse code bt_obex_rsp_code.
bufBuffer containing response headers.

◆ set_msg_status

void(* bt_map_mce_mas_cb::set_msg_status) (struct bt_map_mce_mas *mce_mas, uint8_t rsp_code, struct net_buf *buf)

Set message status callback.

Called when SetMessageStatus response is received.

Parameters
mce_masMAS client instance.
rsp_codeResponse code bt_obex_rsp_code.
bufBuffer containing response headers.

◆ set_ntf_filter

void(* bt_map_mce_mas_cb::set_ntf_filter) (struct bt_map_mce_mas *mce_mas, uint8_t rsp_code, struct net_buf *buf)

Set notification filter callback.

Called when SetNotificationFilter response is received.

Parameters
mce_masMAS client instance.
rsp_codeResponse code bt_obex_rsp_code.
bufBuffer containing response headers.

◆ set_ntf_reg

void(* bt_map_mce_mas_cb::set_ntf_reg) (struct bt_map_mce_mas *mce_mas, uint8_t rsp_code, struct net_buf *buf)

Set notification registration callback.

Called when SetNotificationRegistration response is received.

Parameters
mce_masMAS client instance.
rsp_codeResponse code bt_obex_rsp_code.
bufBuffer containing response headers.

◆ set_owner_status

void(* bt_map_mce_mas_cb::set_owner_status) (struct bt_map_mce_mas *mce_mas, uint8_t rsp_code, struct net_buf *buf)

Set owner status callback.

Called when SetOwnerStatus response is received.

Parameters
mce_masMAS client instance.
rsp_codeResponse code bt_obex_rsp_code.
bufBuffer containing response headers.

◆ update_inbox

void(* bt_map_mce_mas_cb::update_inbox) (struct bt_map_mce_mas *mce_mas, uint8_t rsp_code, struct net_buf *buf)

Update inbox callback.

Called when UpdateInbox response is received.

Parameters
mce_masMAS client instance.
rsp_codeResponse code bt_obex_rsp_code.
bufBuffer containing response headers.

The documentation for this struct was generated from the following file:
  • zephyr/bluetooth/classic/map.h