next up previous contents
Next: 4.10 ptz Up: 4. Device Reference Previous: 4.8 position   Contents

Subsections


4.9 power

Synopsis

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

Data



struct playerc_power_t : Power device data.

playerc_device_t info;
Device info; must be at the start of all device structures.

double charge;
Battery charge (volts).

Methods

playerc_power_t *playerc_power_create(playerc_client_t *client, int index);

Create a power device proxy.

void playerc_power_destroy(playerc_power_t *device);

Destroy a power device proxy.

int playerc_power_subscribe(playerc_power_t *device, int access);

Subscribe to the power device.

int playerc_power_unsubscribe(playerc_power_t *device);

Un-subscribe from the power device.



2004-05-31