|
Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
|
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. | |
MAP Client MAS callbacks.
Callbacks for MAP Client MAS events.
| 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.
| mce_mas | MAS client instance. |
| rsp_code | Response code bt_obex_rsp_code. |
| buf | Buffer containing response headers. |
| 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.
| mce_mas | MAS client instance. |
| rsp_code | Response code bt_obex_rsp_code (BT_OBEX_RSP_CODE_SUCCESS on success). |
| version | OBEX protocol version supported by server. |
| mopl | Maximum OBEX packet length supported by server. |
| buf | Buffer containing additional response headers (connection ID, etc.). |
| 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.
| mce_mas | MAS client instance. |
| rsp_code | Response code bt_obex_rsp_code. |
| buf | Buffer containing response headers. |
| 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.
| mce_mas | MAS client instance. |
| rsp_code | Response code bt_obex_rsp_code (BT_OBEX_RSP_CODE_CONTINUE for partial data). |
| buf | Buffer containing conversation listing XML data and headers. |
| 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.
| mce_mas | MAS client instance. |
| rsp_code | Response code bt_obex_rsp_code (BT_OBEX_RSP_CODE_CONTINUE for partial data). |
| buf | Buffer containing folder listing XML data and headers. |
| 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.
| mce_mas | MAS client instance. |
| rsp_code | Response code bt_obex_rsp_code (BT_OBEX_RSP_CODE_CONTINUE for partial data). |
| buf | Buffer containing instance information XML data and headers. |
| 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.
| mce_mas | MAS client instance. |
| rsp_code | Response code bt_obex_rsp_code (BT_OBEX_RSP_CODE_CONTINUE for partial data). |
| buf | Buffer containing message bMessage data and headers. |
| 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.
| mce_mas | MAS client instance. |
| rsp_code | Response code bt_obex_rsp_code (BT_OBEX_RSP_CODE_CONTINUE for partial data). |
| buf | Buffer containing message listing XML data and headers. |
| 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.
| mce_mas | MAS client instance. |
| rsp_code | Response code bt_obex_rsp_code (BT_OBEX_RSP_CODE_CONTINUE for partial data). |
| buf | Buffer containing owner status data and headers. |
| 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.
| conn | Bluetooth connection object. |
| mce_mas | MAS client instance. |
| 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.
| mce_mas | MAS client instance. |
| 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).
| mce_mas | MAS client instance. |
| rsp_code | Response code bt_obex_rsp_code (BT_OBEX_RSP_CODE_CONTINUE for partial upload). |
| buf | Buffer containing message handle (on success) and headers. |
| 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.
| conn | Bluetooth connection object. |
| mce_mas | MAS client instance. |
| 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.
| mce_mas | MAS client instance. |
| 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.
| mce_mas | MAS client instance. |
| rsp_code | Response code bt_obex_rsp_code. |
| buf | Buffer containing response headers. |
| 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.
| mce_mas | MAS client instance. |
| rsp_code | Response code bt_obex_rsp_code. |
| buf | Buffer containing response headers. |
| 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.
| mce_mas | MAS client instance. |
| rsp_code | Response code bt_obex_rsp_code. |
| buf | Buffer containing response headers. |
| 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.
| mce_mas | MAS client instance. |
| rsp_code | Response code bt_obex_rsp_code. |
| buf | Buffer containing response headers. |
| 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.
| mce_mas | MAS client instance. |
| rsp_code | Response code bt_obex_rsp_code. |
| buf | Buffer containing response headers. |
| 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.
| mce_mas | MAS client instance. |
| rsp_code | Response code bt_obex_rsp_code. |
| buf | Buffer containing response headers. |