|
PebbleOS v4.47.0-512-g5285d4236
|
#include <stdint.h>#include <pbl/bluetooth/responsiveness.h>#include <pbl/kernel/compiler.h>#include <pbl/kernel/section.h>#include <pbl/pp/protocol.h>#include <pbl/util/uuid.h>Data Structures | |
| struct | pbl_pp_session_listener |
| Session listener. More... | |
Macros | |
| #define | PBL_PP_SESSION_LISTENER_DEFINE(_name, _callback, _user_data) |
| Define a listener of session events. | |
Enumerations | |
| enum | pbl_pp_session_type : int8_t { PBL_PP_SESSION_INVALID = -1 , PBL_PP_SESSION_SYSTEM = 0 , PBL_PP_SESSION_APP = 1 } |
| Kind of session. More... | |
| enum | pbl_pp_session_event : uint8_t { PBL_PP_SESSION_OPENED , PBL_PP_SESSION_CLOSED , PBL_PP_SESSION_CAPABILITIES } |
| Session life cycle events, see PBL_PP_SESSION_LISTENER_DEFINE(). More... | |
Functions | |
| struct pbl_pp_session * | pbl_pp_session_get_system (void) |
| Get the system session. | |
| struct pbl_pp_session * | pbl_pp_session_get_app (const Uuid *app_uuid) |
| Get the session serving a watch app. | |
| enum pbl_pp_session_type | pbl_pp_session_get_type (const struct pbl_pp_session *session) |
| Get the kind of a session. | |
| bool | pbl_pp_session_is_system (const struct pbl_pp_session *session) |
| Check whether a session is a system session. | |
| uint32_t | pbl_pp_session_get_capabilities (const struct pbl_pp_session *session) |
| Get the capabilities announced on a session. | |
| bool | pbl_pp_session_has_capability (const struct pbl_pp_session *session, enum pbl_pp_capability capability) |
| Check whether a session announced a capability. | |
| void | pbl_pp_session_reset (struct pbl_pp_session *session) |
| Ask the transport to reset a session. | |
| void | pbl_pp_session_set_responsiveness (struct pbl_pp_session *session, enum pbl_bt_consumer consumer, enum pbl_bt_response_time_state state, uint16_t max_period_secs, pbl_bt_responsiveness_granted_cb_t granted) |
| Request a connection response time for a session. | |