anbox-platform-sdk  1.23.0
Anbox Platform SDK API documentation
vhal_connector.h File Reference
#include <stdbool.h>
#include <stdint.h>
+ Include dependency graph for vhal_connector.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  AnboxVhalConnectorCallbacks
 AnboxVhalConnectorCallbacks is the structure holding all VHAL-related callbacks. More...
 
class  anbox::VhalConnector
 Connects a platform with the Android VHAL interface. The platform can invoke the callbacks which are provided by Anbox on demand when answering a request. More...
 

Namespaces

 anbox
 

Typedefs

typedef AnboxVhalAnswerStatus(* AnboxVhalGetAllPropConfigsCallback) (AnboxVhalAnswerGetConfigs *result, void *user_data)
 AnboxVhalGetAllPropConfigsCallback is invoked when requesting all prop configs. More...
 
typedef AnboxVhalAnswerStatus(* AnboxVhalGetPropConfigsCallback) (int32_t *props, size_t props_size, AnboxVhalAnswerGetConfigs *result, void *user_data)
 AnboxVhalGetPropConfigsCallback is invoked when requesting some prop configs. More...
 
typedef bool(* AnboxVhalIsAvailableCallback) (void *user_data)
 AnboxVhalIsAvailableCallback is invoked when checking if the Android VHAL is supported and available. More...
 
typedef AnboxVhalAnswerStatus(* AnboxVhalGetCallback) (AnboxVhalCommandGet *request, AnboxVhalPropertyValue *result, void *user_data)
 AnboxVhalGetCallback is invoked when requesting property values. More...
 
typedef AnboxVhalAnswerStatus(* AnboxVhalSetCallback) (AnboxVhalCommandSet *request, void *user_data)
 AnboxVhalSetCallback is invoked when requesting to change property values. More...
 

Typedef Documentation

◆ AnboxVhalGetAllPropConfigsCallback

typedef AnboxVhalAnswerStatus(* AnboxVhalGetAllPropConfigsCallback) (AnboxVhalAnswerGetConfigs *result, void *user_data)

AnboxVhalGetAllPropConfigsCallback is invoked when requesting all prop configs.

Returns
ANBOX_VHAL_ANSWER_STATUS_OK on success, error code otherwise.

Definition at line 30 of file vhal_connector.h.

◆ AnboxVhalGetCallback

typedef AnboxVhalAnswerStatus(* AnboxVhalGetCallback) (AnboxVhalCommandGet *request, AnboxVhalPropertyValue *result, void *user_data)

AnboxVhalGetCallback is invoked when requesting property values.

Returns
ANBOX_VHAL_ANSWER_STATUS_OK on success, error code otherwise.

Definition at line 53 of file vhal_connector.h.

◆ AnboxVhalGetPropConfigsCallback

typedef AnboxVhalAnswerStatus(* AnboxVhalGetPropConfigsCallback) (int32_t *props, size_t props_size, AnboxVhalAnswerGetConfigs *result, void *user_data)

AnboxVhalGetPropConfigsCallback is invoked when requesting some prop configs.

Returns
ANBOX_VHAL_ANSWER_STATUS_OK on success, error code otherwise.

Definition at line 38 of file vhal_connector.h.

◆ AnboxVhalIsAvailableCallback

typedef bool(* AnboxVhalIsAvailableCallback) (void *user_data)

AnboxVhalIsAvailableCallback is invoked when checking if the Android VHAL is supported and available.

Returns
1 if available, 0 otherwise

Definition at line 47 of file vhal_connector.h.

◆ AnboxVhalSetCallback

typedef AnboxVhalAnswerStatus(* AnboxVhalSetCallback) (AnboxVhalCommandSet *request, void *user_data)

AnboxVhalSetCallback is invoked when requesting to change property values.

Returns
ANBOX_VHAL_ANSWER_STATUS_OK on success, error code otherwise.

Definition at line 62 of file vhal_connector.h.