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).
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.