19#ifndef ANBOX_PLATFORM_SDK_PLATFORM_H_
20#define ANBOX_PLATFORM_SDK_PLATFORM_H_
205 virtual int stop() {
return 0; }
281 (void) get_category_enabled_callback;
282 (void) add_event_callback;
305#define ANBOX_PLATFORM_PLUGIN_DESCRIBE(platform_type, name, vendor, \
307 AnboxPlatformDescriptor anbox_platform_descriptor \
308 __attribute((section(ANBOX_PLATFORM_DESCRIPTOR_SECTION))) = { \
309 name, vendor, description, ANBOX_PLATFORM_VERSION}; \
311 ANBOX_EXPORT AnboxPlatform* anbox_initialize( \
312 const AnboxPlatformConfiguration* configuration) { \
314 auto platform = std::make_unique<platform_type>(configuration); \
315 return anbox_platform_plugin_register(std::move(platform)); \
316 } catch (const std::exception& e) { \
317 std::cerr << "Anbox Platform SDK caught exception: " << e.what() \
321 std::cerr << "Anbox Platform SDK caught unknown exception." \
327 ANBOX_EXPORT void anbox_deinitialize(AnboxPlatform* platform) { \
328 anbox_platform_plugin_unregister(platform); \
AnboxProxy provides a proxy layer which encapsulates callbacks that can be used by a platform to chan...
AudioProcessor allows processing audio data from the Android container and perform audio processing l...
CameraProcessor allows a plugin to respond to the camera actions triggered from Anobx and post video ...
GpsProcessor allows forwarding the gps data from platform plugin to Android container and process gps...
GraphicsProcessor allows integration with the graphics engine inside Anbox.
SensorProcessor allows processing sensor events from the Android container and perform sensor process...
Connects a platform with the Android VHAL interface. The platform can invoke the callbacks which are ...
Provides access to a video decoder which will be used by both Anbox and the Android instance for hard...
AnboxPlatformConfigurationKey
AnboxPlatformConfigurationKey specifies configuration items which allow to influence the behavior and...
AnboxVideoCodecType
AnboxVideoCodecType describes the type of a video codec.
void(* AnboxTracerAddEventFunc)(char phase, const unsigned char *category, const char *name, unsigned long long id, int num_args, const char **arg_names, const unsigned char *arg_types, const unsigned long long *arg_values, unsigned char flags)
Method prototype which will be used by the platform to submit trace events to the tracing implementat...
const unsigned char *(* AnboxTracerGetCategoryEnabledFunc)(const char *name)
Method prototype which will be used to determine if the given tracing category is enabled for tracing...
AnboxEventType
AnboxEventType describes the type of event sent from Anbox.