The power proxy provides an interface through which battery levels can be monitored. More...

Detailed Description

The power proxy provides an interface through which battery levels can be monitored.

Classes

struct  playerc_power_t
 Power device data. More...
 

Functions

PLAYERC_EXPORT playerc_power_tplayerc_power_create (playerc_client_t *client, int index)
 Create a power device proxy. More...
 
PLAYERC_EXPORT void playerc_power_destroy (playerc_power_t *device)
 Destroy a power device proxy. More...
 
PLAYERC_EXPORT int playerc_power_subscribe (playerc_power_t *device, int access)
 Subscribe to the power device. More...
 
PLAYERC_EXPORT int playerc_power_unsubscribe (playerc_power_t *device)
 Un-subscribe from the power device. More...
 

Function Documentation

◆ playerc_power_create()

PLAYERC_EXPORT playerc_power_t* playerc_power_create ( playerc_client_t client,
int  index 
)

Create a power device proxy.

◆ playerc_power_destroy()

PLAYERC_EXPORT void playerc_power_destroy ( playerc_power_t device)

Destroy a power device proxy.

◆ playerc_power_subscribe()

PLAYERC_EXPORT int playerc_power_subscribe ( playerc_power_t device,
int  access 
)

Subscribe to the power device.

◆ playerc_power_unsubscribe()

PLAYERC_EXPORT int playerc_power_unsubscribe ( playerc_power_t device)

Un-subscribe from the power device.