anbox-platform-sdk 1.28.0
Anbox Platform SDK API documentation
plugin.h
Go to the documentation of this file.
1/*
2 * This file is part of Anbox Platform SDK
3 *
4 * Copyright 2021 Canonical Ltd.
5 *
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18
19#ifndef ANBOX_PLATFORM_SDK_PLUGIN_H_
20#define ANBOX_PLATFORM_SDK_PLUGIN_H_
21
23
24#include <memory>
25
29
33
37
41
45
49
50struct AnboxProxy {
52};
53
55 std::unique_ptr<anbox::VideoDecoder> instance;
56};
57
61
73
81extern AnboxPlatform* anbox_platform_plugin_register(std::unique_ptr<anbox::Platform>&& platform) noexcept;
82
92
93#endif
AnboxProxy provides a proxy layer which encapsulates callbacks that can be used by a platform to chan...
Definition anbox_proxy.h:71
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.
InputProcessor allows a plugin to propagate input events to Anbox which will forward them to the Andr...
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 ...
void anbox_platform_plugin_unregister(AnboxPlatform *) noexcept
Unregister a platform plugin.
AnboxPlatform * anbox_platform_plugin_register(std::unique_ptr< anbox::Platform > &&platform) noexcept
Register a platform plugin.
anbox::AudioProcessor * instance
Definition plugin.h:27
anbox::CameraProcessor * instance
Definition plugin.h:47
anbox::GpsProcessor * instance
Definition plugin.h:43
anbox::GraphicsProcessor * instance
Definition plugin.h:35
anbox::InputProcessor * instance
Definition plugin.h:31
AnboxGraphicsProcessor graphics_processor
Definition plugin.h:68
AnboxAudioProcessor audio_processor
Definition plugin.h:64
std::unique_ptr< anbox::Platform > instance
Definition plugin.h:63
AnboxGpsProcessor gps_processor
Definition plugin.h:67
AnboxSensorProcessor sensor_processor
Definition plugin.h:66
AnboxProxy anbox_proxy
Definition plugin.h:70
AnboxInputProcessor input_processor
Definition plugin.h:65
AnboxVhalConnector vhal_connector
Definition plugin.h:71
AnboxCameraProcessor camera_processor
Definition plugin.h:69
anbox::AnboxProxy * instance
Definition plugin.h:51
anbox::SensorProcessor * instance
Definition plugin.h:39
anbox::VhalConnector * instance
Definition plugin.h:59
std::unique_ptr< anbox::VideoDecoder > instance
Definition plugin.h:55