|
PebbleOS
|
Protocol error responses sent on the meta endpoint (ID 0). More...
Data Structures | |
| struct | MetaResponseInfo |
| Meta endpoint response to send. More... | |
| struct | MetaResponseInfo.payload |
| Response payload. More... | |
Enumerations | |
| enum | MetaResponseCode { MetaResponseCodeNoError = 0x0 , MetaResponseCodeCorruptedMessage = 0xd0 , MetaResponseCodeDisallowed = 0xdd , MetaResponseCodeUnhandled = 0xdc } |
| Meta endpoint error code. More... | |
Functions | |
| void | meta_endpoint_send_response_async (const MetaResponseInfo *meta_response_info) |
| Send a meta endpoint response asynchronously from KernelBG. | |
Protocol error responses sent on the meta endpoint (ID 0).
| struct MetaResponseInfo |
Meta endpoint response to send.
| Data Fields | ||
|---|---|---|
| struct MetaResponseInfo.payload | payload | Response payload. |
| CommSession * | session | Session to send the response to. |
| struct MetaResponseInfo.payload |
Response payload.
| Data Fields | ||
|---|---|---|
| uint16_t | endpoint_id | Endpoint ID the error refers to. |
| uint8_t | error_code | Error code, a MetaResponseCode. |
| enum MetaResponseCode |
| void meta_endpoint_send_response_async | ( | const MetaResponseInfo * | meta_response_info | ) |
Send a meta endpoint response asynchronously from KernelBG.
The response is copied, so meta_response_info need not outlive the call. Set payload.endpoint_id in CPU byte order; it is converted to big endian before sending.
| meta_response_info | Response to send. |