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

Go to the source code of this file.

Classes

class  anbox::AnboxProxy
 AnboxProxy provides a proxy layer which encapsulates callbacks that can be used by a platform to change Android system behaviors. E.g. change the screen orientation. The platform can invoke the callbacks which are provided by Anbox on demand when triggering an action or changing a behavior. More...
 

Namespaces

 anbox
 

Typedefs

typedef int(* AnboxChangeScreenOrientationCallback) (AnboxScreenOrientationType orientation_type, void *user_data)
 AnboxChangeScreenOrientationCallback is invoked when changing the screen orientation. More...
 
typedef int(* AnboxChangeDisplayDensityCallback) (uint32_t density, void *user_data)
 AnboxChangeDisplayDensityCallback is invoked when changing the display density. More...
 
typedef int(* AnboxChangeDisplaySizeCallback) (uint32_t width, uint32_t height, void *user_data)
 AnboxChangeDisplaySizeCallback is invoked when changing the display size. More...
 
typedef int(* AnboxTriggerActionCallback) (const char *name, const char **args, size_t args_len, void *user_data)
 AnboxTriggerActionCallback is invoked when an action is triggered within the Android system. More...
 
typedef int(* AnboxCreateADBConnectionCallback) (const char *id, void *user_data)
 AnboxCreateADBConnectionCallback is invoked when creating ADB connection. More...
 

Typedef Documentation

◆ AnboxChangeDisplayDensityCallback

typedef int(* AnboxChangeDisplayDensityCallback) (uint32_t density, void *user_data)

AnboxChangeDisplayDensityCallback is invoked when changing the display density.

Returns
0 on success otherwise returns EINVAL on error occurs.

Definition at line 38 of file anbox_proxy.h.

◆ AnboxChangeDisplaySizeCallback

typedef int(* AnboxChangeDisplaySizeCallback) (uint32_t width, uint32_t height, void *user_data)

AnboxChangeDisplaySizeCallback is invoked when changing the display size.

Returns
0 on success otherwise returns EINVAL on error occurs.

Definition at line 44 of file anbox_proxy.h.

◆ AnboxChangeScreenOrientationCallback

typedef int(* AnboxChangeScreenOrientationCallback) (AnboxScreenOrientationType orientation_type, void *user_data)

AnboxChangeScreenOrientationCallback is invoked when changing the screen orientation.

Returns
0 on success otherwise returns EINVAL on error occurs.

Definition at line 32 of file anbox_proxy.h.

◆ AnboxCreateADBConnectionCallback

typedef int(* AnboxCreateADBConnectionCallback) (const char *id, void *user_data)

AnboxCreateADBConnectionCallback is invoked when creating ADB connection.

Returns
0 on success otherwise returns EINVAL on error occurs.

Definition at line 57 of file anbox_proxy.h.

◆ AnboxTriggerActionCallback

typedef int(* AnboxTriggerActionCallback) (const char *name, const char **args, size_t args_len, void *user_data)

AnboxTriggerActionCallback is invoked when an action is triggered within the Android system.

Returns
0 on success otherwise returns EINVAL on error occurs.

Definition at line 51 of file anbox_proxy.h.