PebbleOS
Loading...
Searching...
No Matches
Data Structures | Enumerations | Functions

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.
 

Detailed Description

Protocol error responses sent on the meta endpoint (ID 0).


Data Structure Documentation

◆ MetaResponseInfo

struct MetaResponseInfo

Meta endpoint response to send.

Data Fields
struct MetaResponseInfo.payload payload Response payload.
CommSession * session Session to send the response to.

◆ MetaResponseInfo.payload

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.

Enumeration Type Documentation

◆ MetaResponseCode

Meta endpoint error code.

Enumerator
MetaResponseCodeNoError 

No error.

MetaResponseCodeCorruptedMessage 

Message could not be parsed; the response carries no endpoint ID.

MetaResponseCodeDisallowed 

Sender is not allowed to use the endpoint.

MetaResponseCodeUnhandled 

No handler for the endpoint.

Function Documentation

◆ meta_endpoint_send_response_async()

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.

Parameters
meta_response_infoResponse to send.