|
PebbleOS
|
Connectivity analytics hooks for session open and close. More...
Enumerations | |
| enum | CommSessionCloseReason { CommSessionCloseReason_UnderlyingDisconnection = 0 , CommSessionCloseReason_ClosedRemotely = 1 , CommSessionCloseReason_ClosedLocally = 2 , CommSessionCloseReason_TransportSpecificBegin = 100 , CommSessionCloseReason_TransportSpecificEnd = 255 } |
| Why a session was closed. More... | |
| enum | CommSessionTransportType { CommSessionTransportType_PlainSPP = 0 , CommSessionTransportType_iAP = 1 , CommSessionTransportType_PPoGATT = 2 , CommSessionTransportType_QEMU = 3 , CommSessionTransportType_PULSE = 4 } |
| Transport type carrying a session. More... | |
Functions | |
| CommSessionTransportType | comm_session_analytics_get_transport_type (CommSession *session) |
| Get the transport type of a session. | |
| void | comm_session_analytics_open_session (CommSession *session) |
| Record a session being opened. | |
| void | comm_session_analytics_close_session (CommSession *session, CommSessionCloseReason reason) |
| Record a session being closed. | |
Connectivity analytics hooks for session open and close.
Why a session was closed.
Transport type carrying a session.
| void comm_session_analytics_close_session | ( | CommSession * | session, |
| CommSessionCloseReason | reason | ||
| ) |
Record a session being closed.
Stops the connected-time timer for system sessions.
| session | Closed session. |
| reason | Close reason. |
| CommSessionTransportType comm_session_analytics_get_transport_type | ( | CommSession * | session | ) |
Get the transport type of a session.
The caller must hold bt_lock().
| session | Session to query. |
| void comm_session_analytics_open_session | ( | CommSession * | session | ) |
Record a session being opened.
Starts the connectivity timers for system sessions.
| session | Opened session. |