anbox-platform-sdk
1.23.0
Anbox Platform SDK API documentation
|
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...
#include <vhal_connector.h>
Public Member Functions | |
VhalConnector ()=default | |
virtual | ~VhalConnector ()=default |
VhalConnector (const VhalConnector &)=delete | |
VhalConnector & | operator= (const VhalConnector &)=delete |
bool | is_available () |
Check if the Android VHAL is supported and available. More... | |
AnboxVhalAnswerStatus | get_all_prop_configs (AnboxVhalAnswerGetConfigs *result) |
Get all property configs. More... | |
AnboxVhalAnswerStatus | get_prop_configs (int32_t *props, size_t props_size, AnboxVhalAnswerGetConfigs *result) |
Get requested property configs. More... | |
AnboxVhalAnswerStatus | get (AnboxVhalCommandGet *request, AnboxVhalPropertyValue *result) |
Get the requested value. More... | |
AnboxVhalAnswerStatus | set (AnboxVhalCommandSet *request) |
Set the requested value. More... | |
void | set_callbacks (const AnboxVhalConnectorCallbacks &callbacks, void *user_data) |
Set all VHAL-related callbacks. More... | |
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.
Definition at line 83 of file vhal_connector.h.
|
default |
|
virtualdefault |
|
delete |
|
inline |
Get the requested value.
request | structure holding the Get request. It will not be modified by the callee. |
result | structure holding the returned value. All array members (int32_values, int64_values, float_values, bytes, string_value) are allocated on the heap. The caller is responsible for freeing their memory after the call. |
Definition at line 151 of file vhal_connector.h.
References ANBOX_VHAL_ANSWER_STATUS_INVALID, and AnboxVhalConnectorCallbacks::get_callback.
|
inline |
Get all property configs.
result | structure holding the returned configs. The 'configs' member will be allocated on the heap, as well as all arrays for each AnboxVhalPropertyConfig (area_configs, config_array, config_string, prop_name). Each AnboxVhalAreaConfig has the area_names array also allocated on the heap. The caller is responsible for freeing their memory after the call. |
Definition at line 112 of file vhal_connector.h.
References ANBOX_VHAL_ANSWER_STATUS_INVALID, and AnboxVhalConnectorCallbacks::get_all_prop_configs_callback.
|
inline |
Get requested property configs.
props | pointer to an array of size props_size. The array will not be modified by the callee. |
props_size | Size of the array pointed to by props. |
result | structure holding the returned configs. The 'configs' member will be allocated on the heap, as well as all arrays for each AnboxVhalPropertyConfig (area_configs, config_array, config_string, prop_name). The caller is responsible for freeing their memory after the call. |
Definition at line 132 of file vhal_connector.h.
References ANBOX_VHAL_ANSWER_STATUS_INVALID, and AnboxVhalConnectorCallbacks::get_prop_configs_callback.
|
inline |
Check if the Android VHAL is supported and available.
Definition at line 95 of file vhal_connector.h.
References AnboxVhalConnectorCallbacks::is_available_callback.
|
delete |
|
inline |
Set the requested value.
request | structure holding the Set request. It will not be modified by the callee. |
Definition at line 165 of file vhal_connector.h.
References ANBOX_VHAL_ANSWER_STATUS_INVALID, and AnboxVhalConnectorCallbacks::set_callback.
|
inline |
Set all VHAL-related callbacks.
callbacks | Structure holding all the callbacks. |
user_data | Pointer that will be passed to callbacks. |
Definition at line 177 of file vhal_connector.h.