anbox-platform-sdk  1.23.0
Anbox Platform SDK API documentation
public_api.h File Reference
+ Include dependency graph for public_api.h:

Go to the source code of this file.

Typedefs

typedef AnboxPlatform *(* AnboxInitializePlatformFunc) (const AnboxPlatformConfiguration *configuration)
 Initialize a platform instance. More...
 
typedef void(* AnboxReleasePlatformFunc) (AnboxPlatform *platform)
 Release a platform instance. More...
 
typedef const AnboxAudioProcessor *(* AnboxPlatformGetAudioProcessorFunc) (const AnboxPlatform *platform)
 Retrieve the platform audio processor instance. More...
 
typedef const AnboxInputProcessor *(* AnboxPlatformGetInputProcessorFunc) (const AnboxPlatform *platform)
 Retrieve the platform input processor instance. More...
 
typedef const AnboxGraphicsProcessor *(* AnboxPlatformGetGraphicsProcessorFunc) (const AnboxPlatform *platform)
 Retrieve the platform graphics processor instance. More...
 
typedef const AnboxSensorProcessor *(* AnboxPlatformGetSensorProcessorFunc) (const AnboxPlatform *platform)
 Retrieve the platform sensor processor instance. More...
 
typedef const AnboxGpsProcessor *(* AnboxPlatformGetGpsProcessorFunc) (const AnboxPlatform *platform)
 Retrieve the platform gps processor instance. More...
 
typedef const AnboxCameraProcessor *(* AnboxPlatformGetCameraProcessorFunc) (const AnboxPlatform *platform)
 Retrieve the platform camera processor instance. More...
 
typedef const AnboxProxy *(* AnboxPlatformGetAnboxProxyFunc) (const AnboxPlatform *platform)
 Retrieve the platform anbox proxy. More...
 
typedef AnboxVideoDecoder *(* AnboxPlatformCreateVideoDecoderFunc) (const AnboxPlatform *platform, AnboxVideoCodecType codec_type)
 Create a new video decoder for the given codec. More...
 
typedef bool(* AnboxPlatformReadyFunc) (const AnboxPlatform *platform)
 Query the platform for its ready status. More...
 
typedef int(* AnboxPlatformWaitUntilReadyFunc) (const AnboxPlatform *platform)
 Wait for platform plugin to be initialized. More...
 
typedef int(* AnboxPlatformGetConfigItemFunc) (const AnboxPlatform *platform, AnboxPlatformConfigurationKey key, void *data, size_t data_size)
 Retrieve the configuration options provided by platform plugin. More...
 
typedef int(* AnboxPlatformSetConfigItemFunc) (const AnboxPlatform *platform, AnboxPlatformConfigurationKey key, void *data, size_t data_size)
 Set the configuration options by Anbox to the platform. More...
 
typedef void(* AnboxPlatformSetupEventTracerFunc) (const AnboxPlatform *platform, AnboxTracerGetCategoryEnabledFunc get_category_enabled_func, AnboxTracerAddEventFunc add_event_func)
 Register an external event tracing implementation with the platform. More...
 
typedef int(* AnboxPlatformStopFunc) (const AnboxPlatform *platform)
 Ask the platform to stop any pending work it has to prepare for Anbox to terminate. More...
 
typedef void(* AnboxPlatformHandleEventFunc) (const AnboxPlatform *platform, AnboxEventType type)
 Handle an event fired from Anbox by a platform. More...
 
typedef size_t(* AnboxAudioProcessorProcessDataFunc) (const AnboxAudioProcessor *audio_processor, const uint8_t *data, size_t size)
 Process a chunk of audio data. More...
 
typedef ssize_t(* AnboxAudioProcessorWriteDataFunc) (const AnboxAudioProcessor *audio_processor, const uint8_t *data, size_t size)
 Write a chunk of audio data. More...
 
typedef ssize_t(* AnboxAudioProcessorReadDataFunc) (const AnboxAudioProcessor *audio_processor, uint8_t *data, size_t size)
 Read a chunk of audio data. More...
 
typedef int(* AnboxAudioProcessorStandbyFunc) (const AnboxAudioProcessor *audio_processor, AnboxAudioStreamType type)
 Notify the platform when an audio stream is in standby mode. More...
 
typedef int(* AnboxAudioProcessorActivateFunc) (const AnboxAudioProcessor *audio_processor, AnboxAudioStreamType type)
 Notify the platform when an audio stream is in activation mode. More...
 
typedef bool(* AnboxAudioProcessorNeedSilenceOnStandbyFunc) (const AnboxAudioProcessor *audio_processor)
 Produce a silent audio stream on need while the audio output stream goes into the standby state. More...
 
typedef int(* AnboxInputProcessorReadEventFunc) (const AnboxInputProcessor *input_processor, AnboxInputEvent *event, int timeout)
 Read next available input event. More...
 
typedef int(* AnboxInputProcessorInjectEventFunc) (const AnboxInputProcessor *input_processor, AnboxInputEvent event)
 Inject an input event into AnboxPlatform. More...
 
typedef int(* AnboxGraphicsProcessorInitializeFunc) (const AnboxGraphicsProcessor *graphics_processor, AnboxGraphicsConfiguration *configuration)
 Initialize the graphics processor. More...
 
typedef EGLDisplay(* AnboxGraphicsProcessorCreateDisplayFunc) (const AnboxGraphicsProcessor *graphics_processor)
 Create an EGL display. More...
 
typedef void(* AnboxGraphicsProcessorBeginFrameFunc) (const AnboxGraphicsProcessor *graphics_processor)
 Begin a new frame. More...
 
typedef void(* AnboxGraphicsProcessorFinishFrameFunc) (const AnboxGraphicsProcessor *graphics_processor)
 Finish the currently rendered frame. More...
 
typedef EGLSurface(* AnboxGraphicsProcessorCreateOffscreenSurfaceFunc) (const AnboxGraphicsProcessor *graphics_processor, EGLDisplay display, EGLConfig config, const EGLint *attribs)
 Create an offscreen EGL surface. More...
 
typedef bool(* AnboxGraphicsProcessorDestroyOffscreenSurfaceFunc) (const AnboxGraphicsProcessor *graphics_processor, EGLDisplay display, EGLSurface surface)
 Destroy an offscreen EGL surface. More...
 
typedef bool(* AnboxGraphicsProcessorPresentFunc) (const AnboxGraphicsProcessor *graphics_processor, AnboxGraphicsBuffer *buffer, AnboxCallback *callback)
 Present the given buffer to a display or other output. More...
 
typedef bool(* AnboxGraphicsProcessorPresent2Func) (const AnboxGraphicsProcessor *graphics_processor, AnboxGraphicsBuffer2 *buffer, AnboxCallback *callback)
 Present the given buffer to a display or other output. More...
 
typedef bool(* AnboxGraphicsProcessorCreateBufferFunc) (const AnboxGraphicsProcessor *graphics_processor, uint32_t width, uint32_t height, uint32_t format, uint32_t usage, AnboxGraphicsBuffer2 **buffer)
 
typedef AnboxSensorType(* AnboxSensorProcessorSupportedSensorsFunc) (const AnboxSensorProcessor *sensor_processor)
 Sensors supported by the platform. More...
 
typedef int(* AnboxSensorProcessorReadDataFunc) (const AnboxSensorProcessor *sensor_processor, AnboxSensorData *data, int timeout)
 Read next available sensor data. More...
 
typedef int(* AnboxSensorProcessorInjectDataFunc) (const AnboxSensorProcessor *sensor_processor, AnboxSensorData data)
 Inject a sensor data into AnboxPlatform. More...
 
typedef int(* AnboxProxySetChangeScreenOrientationCallbackFunc) (const AnboxProxy *anbox_proxy, const AnboxChangeScreenOrientationCallback &callback, void *user_data)
 Set the change screen orientation callback function. More...
 
typedef int(* AnboxProxySetChangeDisplayDensityCallbackFunc) (const AnboxProxy *anbox_proxy, const AnboxChangeDisplayDensityCallback &callback, void *user_data)
 Set the change display density callback function. More...
 
typedef int(* AnboxProxySetChangeDisplaySizeCallbackFunc) (const AnboxProxy *anbox_proxy, const AnboxChangeDisplaySizeCallback &callback, void *user_data)
 Set the change display size callback function. More...
 
typedef int(* AnboxProxySendMessageFunc) (const AnboxProxy *anbox_proxy, const char *type, size_t type_size, const char *data, size_t data_size)
 Send a message from Anbox to the platform. More...
 
typedef int(* AnboxProxySetTriggerActionCallbackFunc) (const AnboxProxy *proxy, const AnboxTriggerActionCallback &callback, void *user_data)
 Allows the platform to trigger an action within the Android system. More...
 
typedef int(* AnboxProxySetCreateAdbConnectionCallbackFunc) (const AnboxProxy *proxy, const AnboxCreateADBConnectionCallback &callback, void *user_data)
 Allows the platform to create ADB connection. More...
 
typedef int(* AnboxGpsProcessorStartFunc) (const AnboxGpsProcessor *gps_processor)
 Request Gps processor to start forwarding the GPS data to Android container. More...
 
typedef int(* AnboxGpsProcessorStopFunc) (const AnboxGpsProcessor *gps_processor)
 Request Gps processor to stop forwarding the GPS data to Android container. More...
 
typedef int(* AnboxGpsProcessorReadDataFunc) (const AnboxGpsProcessor *gps_processor, AnboxGpsData *data, int timeout)
 Read next available gps data. More...
 
typedef int(* AnboxGpsProcessorInjectDataFunc) (const AnboxGpsProcessor *gps_processor, AnboxGpsData data)
 Inject a gps data into AnboxPlatform. More...
 
typedef int(* AnboxCameraProcessorGetDeviceSpecsFunc) (const AnboxCameraProcessor *camera_processor, AnboxCameraSpec **specs, size_t *length)
 Open a camera device. More...
 
typedef int(* AnboxCameraProcessorOpenDeviceFunc) (const AnboxCameraProcessor *camera_processor, AnboxCameraSpec spec, AnboxCameraOrientation orientation)
 Open a camera device. More...
 
typedef int(* AnboxCameraProcessorCloseDeviceFunc) (const AnboxCameraProcessor *camera_processor)
 Close a camera device. More...
 
typedef int(* AnboxCameraProcessorReadFrameFunc) (const AnboxCameraProcessor *camera_processor, AnboxVideoFrame *frame, int timeout)
 Read next available video frame. More...
 
typedef int(* AnboxCameraProcessorInjectFrameFunc) (const AnboxCameraProcessor *camera_processor, AnboxVideoFrame frame)
 Inject a video frame into AnboxPlatform. More...
 
typedef int(* AnboxVideoDecoderReleaseFunc) (AnboxVideoDecoder *decoder)
 
typedef int(* AnboxVideoDecoderConfigureFunc) (const AnboxVideoDecoder *decoder, AnboxVideoDecoderConfig config)
 
typedef int(* AnboxVideoDecoderFlushFunc) (const AnboxVideoDecoder *decoder)
 
typedef uint64_t(* AnboxVideoDecoderDecodeFrameFunc) (const AnboxVideoDecoder *decoder, const AnboxVideoFrame *frame, uint64_t pts)
 
typedef int(* AnboxVideoDecoderRetrieveImageFunc) (const AnboxVideoDecoder *decoder, AnboxVideoImage *img)
 
typedef AnboxVhalConnector *(* AnboxPlatformGetVhalConnectorFunc) (const AnboxPlatform *platform)
 Retrieve the platform vhal connector instance. More...
 
typedef int(* AnboxVhalConnectorSetCallbacksFunc) (const AnboxVhalConnector *connector, const AnboxVhalConnectorCallbacks *callbacks, void *user_data)
 Allows the platform to call Android VHAL functions through Anbox. More...
 

Typedef Documentation

◆ AnboxAudioProcessorActivateFunc

typedef int(* AnboxAudioProcessorActivateFunc) (const AnboxAudioProcessor *audio_processor, AnboxAudioStreamType type)

Notify the platform when an audio stream is in activation mode.

The function prototype for C API function which stands for the C++ method of anbox::AudioProcessor::activate

Definition at line 242 of file public_api.h.

◆ AnboxAudioProcessorNeedSilenceOnStandbyFunc

typedef bool(* AnboxAudioProcessorNeedSilenceOnStandbyFunc) (const AnboxAudioProcessor *audio_processor)

Produce a silent audio stream on need while the audio output stream goes into the standby state.

The function prototype for C API function which stands for the C++ method of anbox::AudioProcessor::need_silence_on_standby

Definition at line 252 of file public_api.h.

◆ AnboxAudioProcessorProcessDataFunc

typedef size_t(* AnboxAudioProcessorProcessDataFunc) (const AnboxAudioProcessor *audio_processor, const uint8_t *data, size_t size)

Process a chunk of audio data.

The function prototype for C API function which stands for the C++ method of anbox::AudioProcessor::process_data

Definition at line 199 of file public_api.h.

◆ AnboxAudioProcessorReadDataFunc

typedef ssize_t(* AnboxAudioProcessorReadDataFunc) (const AnboxAudioProcessor *audio_processor, uint8_t *data, size_t size)

Read a chunk of audio data.

The function prototype for C API function which stands for the C++ method of anbox::AudioProcessor::read_data

Definition at line 221 of file public_api.h.

◆ AnboxAudioProcessorStandbyFunc

typedef int(* AnboxAudioProcessorStandbyFunc) (const AnboxAudioProcessor *audio_processor, AnboxAudioStreamType type)

Notify the platform when an audio stream is in standby mode.

The function prototype for C API function which stands for the C++ method of anbox::AudioProcessor::standby

Definition at line 232 of file public_api.h.

◆ AnboxAudioProcessorWriteDataFunc

typedef ssize_t(* AnboxAudioProcessorWriteDataFunc) (const AnboxAudioProcessor *audio_processor, const uint8_t *data, size_t size)

Write a chunk of audio data.

The function prototype for C API function which stands for the C++ method of anbox::AudioProcessor::write_data

Definition at line 210 of file public_api.h.

◆ AnboxCameraProcessorCloseDeviceFunc

typedef int(* AnboxCameraProcessorCloseDeviceFunc) (const AnboxCameraProcessor *camera_processor)

Close a camera device.

The function prototype for C API function which stands for the C++ method of anbox::CameraProcessor::close_device

Definition at line 529 of file public_api.h.

◆ AnboxCameraProcessorGetDeviceSpecsFunc

typedef int(* AnboxCameraProcessorGetDeviceSpecsFunc) (const AnboxCameraProcessor *camera_processor, AnboxCameraSpec **specs, size_t *length)

Open a camera device.

The function prototype for C API function which stands for the C++ method of anbox::CameraProcessor::get_device_specs

Definition at line 507 of file public_api.h.

◆ AnboxCameraProcessorInjectFrameFunc

typedef int(* AnboxCameraProcessorInjectFrameFunc) (const AnboxCameraProcessor *camera_processor, AnboxVideoFrame frame)

Inject a video frame into AnboxPlatform.

The function prototype for C API function which stands for the C++ method of anbox::CameraProcessor::inject_frame

Definition at line 550 of file public_api.h.

◆ AnboxCameraProcessorOpenDeviceFunc

typedef int(* AnboxCameraProcessorOpenDeviceFunc) (const AnboxCameraProcessor *camera_processor, AnboxCameraSpec spec, AnboxCameraOrientation orientation)

Open a camera device.

The function prototype for C API function which stands for the C++ method of anbox::CameraProcessor::open_device

Definition at line 518 of file public_api.h.

◆ AnboxCameraProcessorReadFrameFunc

typedef int(* AnboxCameraProcessorReadFrameFunc) (const AnboxCameraProcessor *camera_processor, AnboxVideoFrame *frame, int timeout)

Read next available video frame.

The function prototype for C API function which stands for the C++ method of anbox::CameraProcessor::read_frame

Definition at line 539 of file public_api.h.

◆ AnboxGpsProcessorInjectDataFunc

typedef int(* AnboxGpsProcessorInjectDataFunc) (const AnboxGpsProcessor *gps_processor, AnboxGpsData data)

Inject a gps data into AnboxPlatform.

The function prototype for C API function which stands for the C++ method of anbox::SensorProcessor::inject_data

Definition at line 497 of file public_api.h.

◆ AnboxGpsProcessorReadDataFunc

typedef int(* AnboxGpsProcessorReadDataFunc) (const AnboxGpsProcessor *gps_processor, AnboxGpsData *data, int timeout)

Read next available gps data.

The function prototype for C API function which stands for the C++ method of anbox::GpsProcessor::read_data

Definition at line 486 of file public_api.h.

◆ AnboxGpsProcessorStartFunc

typedef int(* AnboxGpsProcessorStartFunc) (const AnboxGpsProcessor *gps_processor)

Request Gps processor to start forwarding the GPS data to Android container.

The function prototype for C API function which stands for the C++ method of anbox::GpsProcessor::start

Definition at line 468 of file public_api.h.

◆ AnboxGpsProcessorStopFunc

typedef int(* AnboxGpsProcessorStopFunc) (const AnboxGpsProcessor *gps_processor)

Request Gps processor to stop forwarding the GPS data to Android container.

The function prototype for C API function which stands for the C++ method of anbox::GpsProcessor::stop

Definition at line 477 of file public_api.h.

◆ AnboxGraphicsProcessorBeginFrameFunc

typedef void(* AnboxGraphicsProcessorBeginFrameFunc) (const AnboxGraphicsProcessor *graphics_processor)

Begin a new frame.

The function prototype for C API function which stands for the C++ method of anbox::GraphicsProcessor::begin_frame

Definition at line 299 of file public_api.h.

◆ AnboxGraphicsProcessorCreateBufferFunc

typedef bool(* AnboxGraphicsProcessorCreateBufferFunc) (const AnboxGraphicsProcessor *graphics_processor, uint32_t width, uint32_t height, uint32_t format, uint32_t usage, AnboxGraphicsBuffer2 **buffer)

Definition at line 359 of file public_api.h.

◆ AnboxGraphicsProcessorCreateDisplayFunc

typedef EGLDisplay(* AnboxGraphicsProcessorCreateDisplayFunc) (const AnboxGraphicsProcessor *graphics_processor)

Create an EGL display.

The function prototype for C API function which stands for the C++ method of anbox::GraphicsProcessor::create_display

Definition at line 290 of file public_api.h.

◆ AnboxGraphicsProcessorCreateOffscreenSurfaceFunc

typedef EGLSurface(* AnboxGraphicsProcessorCreateOffscreenSurfaceFunc) (const AnboxGraphicsProcessor *graphics_processor, EGLDisplay display, EGLConfig config, const EGLint *attribs)

Create an offscreen EGL surface.

The function prototype for C API function which stands for the C++ method of anbox::GraphicsProcessor::create_offscreen_surface

Definition at line 317 of file public_api.h.

◆ AnboxGraphicsProcessorDestroyOffscreenSurfaceFunc

typedef bool(* AnboxGraphicsProcessorDestroyOffscreenSurfaceFunc) (const AnboxGraphicsProcessor *graphics_processor, EGLDisplay display, EGLSurface surface)

Destroy an offscreen EGL surface.

The function prototype for C API function which stands for the C++ method of anbox::GraphicsProcessor::destroy_offscreen_surface

Definition at line 329 of file public_api.h.

◆ AnboxGraphicsProcessorFinishFrameFunc

typedef void(* AnboxGraphicsProcessorFinishFrameFunc) (const AnboxGraphicsProcessor *graphics_processor)

Finish the currently rendered frame.

The function prototype for C API function which stands for the C++ method of anbox::GraphicsProcessor::finish_frame

Definition at line 308 of file public_api.h.

◆ AnboxGraphicsProcessorInitializeFunc

typedef int(* AnboxGraphicsProcessorInitializeFunc) (const AnboxGraphicsProcessor *graphics_processor, AnboxGraphicsConfiguration *configuration)

Initialize the graphics processor.

The function prototype for C API function which stands for the C++ method of anbox::GraphicsProcessor::initialize

Definition at line 281 of file public_api.h.

◆ AnboxGraphicsProcessorPresent2Func

typedef bool(* AnboxGraphicsProcessorPresent2Func) (const AnboxGraphicsProcessor *graphics_processor, AnboxGraphicsBuffer2 *buffer, AnboxCallback *callback)

Present the given buffer to a display or other output.

The function prototype for C API function which stands for the C++ method of anbox::GraphicsProcessor::present

Definition at line 349 of file public_api.h.

◆ AnboxGraphicsProcessorPresentFunc

typedef bool(* AnboxGraphicsProcessorPresentFunc) (const AnboxGraphicsProcessor *graphics_processor, AnboxGraphicsBuffer *buffer, AnboxCallback *callback)

Present the given buffer to a display or other output.

The function prototype for C API function which stands for the C++ method of anbox::GraphicsProcessor::present

Definition at line 339 of file public_api.h.

◆ AnboxInitializePlatformFunc

typedef AnboxPlatform*(* AnboxInitializePlatformFunc) (const AnboxPlatformConfiguration *configuration)

Initialize a platform instance.

Every platform implementation has to export a symbol named 'anbox_initialize' implementing the AnboxInitializePlatformFunc function prototype.

Definition at line 32 of file public_api.h.

◆ AnboxInputProcessorInjectEventFunc

typedef int(* AnboxInputProcessorInjectEventFunc) (const AnboxInputProcessor *input_processor, AnboxInputEvent event)

Inject an input event into AnboxPlatform.

The function prototype for C API function which stands for the C++ method of anbox::InputProcessor::inject_event

Definition at line 272 of file public_api.h.

◆ AnboxInputProcessorReadEventFunc

typedef int(* AnboxInputProcessorReadEventFunc) (const AnboxInputProcessor *input_processor, AnboxInputEvent *event, int timeout)

Read next available input event.

The function prototype for C API function which stands for the C++ method of anbox::InputProcessor::read_event

Definition at line 261 of file public_api.h.

◆ AnboxPlatformCreateVideoDecoderFunc

typedef AnboxVideoDecoder*(* AnboxPlatformCreateVideoDecoderFunc) (const AnboxPlatform *platform, AnboxVideoCodecType codec_type)

Create a new video decoder for the given codec.

Every platform implementation has to export a symbol named 'anbox_platform_create_video_decoder' implementing the AnboxPlatformCreateVideoDecoder function prototype.

Definition at line 121 of file public_api.h.

◆ AnboxPlatformGetAnboxProxyFunc

typedef const AnboxProxy*(* AnboxPlatformGetAnboxProxyFunc) (const AnboxPlatform *platform)

Retrieve the platform anbox proxy.

Every platform implementation has to export a symbol named 'anbox_platform_get_anbox_proxy' implementing the AnboxPlatformGetAnboxProxyFunc function prototype.

Definition at line 112 of file public_api.h.

◆ AnboxPlatformGetAudioProcessorFunc

typedef const AnboxAudioProcessor*(* AnboxPlatformGetAudioProcessorFunc) (const AnboxPlatform *platform)

Retrieve the platform audio processor instance.

Every platform implementation has to export a symbol named 'anbox_platform_get_audio_processor' implementing the AnboxPlatformGetAudioProcessorFunc function prototype.

Definition at line 52 of file public_api.h.

◆ AnboxPlatformGetCameraProcessorFunc

typedef const AnboxCameraProcessor*(* AnboxPlatformGetCameraProcessorFunc) (const AnboxPlatform *platform)

Retrieve the platform camera processor instance.

Every platform implementation has to export a symbol named 'anbox_platform_get_camera_processor' implementing the AnboxPlatformGetCameraProcessorFunc function prototype.

Definition at line 102 of file public_api.h.

◆ AnboxPlatformGetConfigItemFunc

typedef int(* AnboxPlatformGetConfigItemFunc) (const AnboxPlatform *platform, AnboxPlatformConfigurationKey key, void *data, size_t data_size)

Retrieve the configuration options provided by platform plugin.

The function prototype for C API function which stands for the C++ method of anbox::Platform::get_config_item

Definition at line 148 of file public_api.h.

◆ AnboxPlatformGetGpsProcessorFunc

typedef const AnboxGpsProcessor*(* AnboxPlatformGetGpsProcessorFunc) (const AnboxPlatform *platform)

Retrieve the platform gps processor instance.

Every platform implementation has to export a symbol named 'anbox_platform_get_gps_processor' implementing the AnboxPlatformGetGpsProcessorFunc function prototype.

Definition at line 92 of file public_api.h.

◆ AnboxPlatformGetGraphicsProcessorFunc

typedef const AnboxGraphicsProcessor*(* AnboxPlatformGetGraphicsProcessorFunc) (const AnboxPlatform *platform)

Retrieve the platform graphics processor instance.

Every platform implementation has to export a symbol named 'anbox_platform_get_graphics_processor' implementing the AnboxPlatformGetGraphicsProcessorFunc function prototype.

Definition at line 72 of file public_api.h.

◆ AnboxPlatformGetInputProcessorFunc

typedef const AnboxInputProcessor*(* AnboxPlatformGetInputProcessorFunc) (const AnboxPlatform *platform)

Retrieve the platform input processor instance.

Every platform implementation has to export a symbol named 'anbox_platform_get_input_processor' implementing the AnboxPlatformGetInputProcessorFunc function prototype.

Definition at line 62 of file public_api.h.

◆ AnboxPlatformGetSensorProcessorFunc

typedef const AnboxSensorProcessor*(* AnboxPlatformGetSensorProcessorFunc) (const AnboxPlatform *platform)

Retrieve the platform sensor processor instance.

Every platform implementation has to export a symbol named 'anbox_platform_get_sensor_processor' implementing the AnboxPlatformGetSensorProcessorFunc function prototype.

Definition at line 82 of file public_api.h.

◆ AnboxPlatformGetVhalConnectorFunc

typedef AnboxVhalConnector*(* AnboxPlatformGetVhalConnectorFunc) (const AnboxPlatform *platform)

Retrieve the platform vhal connector instance.

Every platform implementation has to export a symbol named 'anbox_platform_get_vhal_connector' implementing the AnboxPlatformGetVhalConnector function prototype.

Definition at line 601 of file public_api.h.

◆ AnboxPlatformHandleEventFunc

typedef void(* AnboxPlatformHandleEventFunc) (const AnboxPlatform *platform, AnboxEventType type)

Handle an event fired from Anbox by a platform.

The function prototype for C API function which stands for the C++ method of anbox::Platform::handle_event

Definition at line 190 of file public_api.h.

◆ AnboxPlatformReadyFunc

typedef bool(* AnboxPlatformReadyFunc) (const AnboxPlatform *platform)

Query the platform for its ready status.

The function prototype for C API function which stands for the C++ method of anbox::Platform::ready

Definition at line 130 of file public_api.h.

◆ AnboxPlatformSetConfigItemFunc

typedef int(* AnboxPlatformSetConfigItemFunc) (const AnboxPlatform *platform, AnboxPlatformConfigurationKey key, void *data, size_t data_size)

Set the configuration options by Anbox to the platform.

The function prototype for C API function which stands for the C++ method of anbox::Platform::set_config_item

Definition at line 159 of file public_api.h.

◆ AnboxPlatformSetupEventTracerFunc

typedef void(* AnboxPlatformSetupEventTracerFunc) (const AnboxPlatform *platform, AnboxTracerGetCategoryEnabledFunc get_category_enabled_func, AnboxTracerAddEventFunc add_event_func)

Register an external event tracing implementation with the platform.

The function prototype for C API function which stands for the C++ method of anbox::Platform::setup_tevent_tracer

Definition at line 170 of file public_api.h.

◆ AnboxPlatformStopFunc

typedef int(* AnboxPlatformStopFunc) (const AnboxPlatform *platform)

Ask the platform to stop any pending work it has to prepare for Anbox to terminate.

The function prototype for C API function which stands for the C++ method of anbox::Platform::stop

Definition at line 181 of file public_api.h.

◆ AnboxPlatformWaitUntilReadyFunc

typedef int(* AnboxPlatformWaitUntilReadyFunc) (const AnboxPlatform *platform)

Wait for platform plugin to be initialized.

The function prototype for C API function which stands for the C++ method of anbox::Platform::wait_until_ready

Definition at line 139 of file public_api.h.

◆ AnboxProxySendMessageFunc

typedef int(* AnboxProxySendMessageFunc) (const AnboxProxy *anbox_proxy, const char *type, size_t type_size, const char *data, size_t data_size)

Send a message from Anbox to the platform.

The function prototype for C API function which stands for the C++ method of anbox::AnboxProxy::send_message

Definition at line 433 of file public_api.h.

◆ AnboxProxySetChangeDisplayDensityCallbackFunc

typedef int(* AnboxProxySetChangeDisplayDensityCallbackFunc) (const AnboxProxy *anbox_proxy, const AnboxChangeDisplayDensityCallback &callback, void *user_data)

Set the change display density callback function.

The function prototype for C API function which stands for the C++ method of anbox::AnboxProxy::set_change_display_density_callback

Definition at line 411 of file public_api.h.

◆ AnboxProxySetChangeDisplaySizeCallbackFunc

typedef int(* AnboxProxySetChangeDisplaySizeCallbackFunc) (const AnboxProxy *anbox_proxy, const AnboxChangeDisplaySizeCallback &callback, void *user_data)

Set the change display size callback function.

The function prototype for C API function which stands for the C++ method of anbox::AnboxProxy::set_change_display_size_callback

Definition at line 422 of file public_api.h.

◆ AnboxProxySetChangeScreenOrientationCallbackFunc

typedef int(* AnboxProxySetChangeScreenOrientationCallbackFunc) (const AnboxProxy *anbox_proxy, const AnboxChangeScreenOrientationCallback &callback, void *user_data)

Set the change screen orientation callback function.

The function prototype for C API function which stands for the C++ method of anbox::AnboxProxy::set_change_screen_orientation_callback

Definition at line 400 of file public_api.h.

◆ AnboxProxySetCreateAdbConnectionCallbackFunc

typedef int(* AnboxProxySetCreateAdbConnectionCallbackFunc) (const AnboxProxy *proxy, const AnboxCreateADBConnectionCallback &callback, void *user_data)

Allows the platform to create ADB connection.

The function prototype for C API function which stands for the C++ method of anbox::AnboxProxy::set_create_adb_connection_callback

Definition at line 457 of file public_api.h.

◆ AnboxProxySetTriggerActionCallbackFunc

typedef int(* AnboxProxySetTriggerActionCallbackFunc) (const AnboxProxy *proxy, const AnboxTriggerActionCallback &callback, void *user_data)

Allows the platform to trigger an action within the Android system.

The function prototype for C API function which stands for the C++ method of anbox::AnboxProxy::set_trigger_action_callback

Definition at line 446 of file public_api.h.

◆ AnboxReleasePlatformFunc

typedef void(* AnboxReleasePlatformFunc) (AnboxPlatform *platform)

Release a platform instance.

Every platform implementation has to export a symbol named 'anbox_deinitialize' implementing the AnboxReleasePlatformFunc function prototype.

Definition at line 42 of file public_api.h.

◆ AnboxSensorProcessorInjectDataFunc

typedef int(* AnboxSensorProcessorInjectDataFunc) (const AnboxSensorProcessor *sensor_processor, AnboxSensorData data)

Inject a sensor data into AnboxPlatform.

The function prototype for C API function which stands for the C++ method of anbox::SensorProcessor::inject_data

Definition at line 390 of file public_api.h.

◆ AnboxSensorProcessorReadDataFunc

typedef int(* AnboxSensorProcessorReadDataFunc) (const AnboxSensorProcessor *sensor_processor, AnboxSensorData *data, int timeout)

Read next available sensor data.

The function prototype for C API function which stands for the C++ method of anbox::SensorProcessor::read_data

Definition at line 379 of file public_api.h.

◆ AnboxSensorProcessorSupportedSensorsFunc

typedef AnboxSensorType(* AnboxSensorProcessorSupportedSensorsFunc) (const AnboxSensorProcessor *sensor_processor)

Sensors supported by the platform.

The function prototype for C API function which stands for the C++ method of anbox::SensorProcessor::supported_sensors

Definition at line 370 of file public_api.h.

◆ AnboxVhalConnectorSetCallbacksFunc

typedef int(* AnboxVhalConnectorSetCallbacksFunc) (const AnboxVhalConnector *connector, const AnboxVhalConnectorCallbacks *callbacks, void *user_data)

Allows the platform to call Android VHAL functions through Anbox.

The function prototype for C API function which stands for the C++ method of anbox::AnboxVhalConnector::set_callbacks

Definition at line 610 of file public_api.h.

◆ AnboxVideoDecoderConfigureFunc

typedef int(* AnboxVideoDecoderConfigureFunc) (const AnboxVideoDecoder *decoder, AnboxVideoDecoderConfig config)

Definition at line 565 of file public_api.h.

◆ AnboxVideoDecoderDecodeFrameFunc

typedef uint64_t(* AnboxVideoDecoderDecodeFrameFunc) (const AnboxVideoDecoder *decoder, const AnboxVideoFrame *frame, uint64_t pts)

Definition at line 583 of file public_api.h.

◆ AnboxVideoDecoderFlushFunc

typedef int(* AnboxVideoDecoderFlushFunc) (const AnboxVideoDecoder *decoder)

Definition at line 574 of file public_api.h.

◆ AnboxVideoDecoderReleaseFunc

typedef int(* AnboxVideoDecoderReleaseFunc) (AnboxVideoDecoder *decoder)

Definition at line 556 of file public_api.h.

◆ AnboxVideoDecoderRetrieveImageFunc

typedef int(* AnboxVideoDecoderRetrieveImageFunc) (const AnboxVideoDecoder *decoder, AnboxVideoImage *img)

Definition at line 592 of file public_api.h.