Device API
[libplayerc]
Collaboration diagram for Device API:
|
Detailed Description
The device object provides a common interface to the functionality that is shared by all device proxies (in OOP parlance, it is a base class).In general, this object should not be instantiated or accessed directly: use the device proxies instead.
Classes | |
| struct | _playerc_device_t |
| Common device info. More... | |
Typedefs | |
| typedef _playerc_device_t | playerc_device_t |
| Common device info. | |
Functions | |
| void | playerc_device_init (playerc_device_t *device, playerc_client_t *client, int code, int index, playerc_putmsg_fn_t putmsg) |
| Initialise the device. | |
| void | playerc_device_term (playerc_device_t *device) |
| Finalize the device. | |
| int | playerc_device_subscribe (playerc_device_t *device, int access) |
| Subscribe the device. | |
| int | playerc_device_unsubscribe (playerc_device_t *device) |
| Unsubscribe the device. | |
| int | playerc_device_hascapability (playerc_device_t *device, uint32_t type, uint32_t subtype) |
| Request capabilities of device. | |
| int | playerc_device_get_intprop (playerc_device_t *device, char *property, int32_t *value) |
| Request an integer property. | |
| int | playerc_device_set_intprop (playerc_device_t *device, char *property, int32_t value) |
| Set an integer property. | |
| int | playerc_device_get_dblprop (playerc_device_t *device, char *property, double *value) |
| Request a double property. | |
| int | playerc_device_set_dblprop (playerc_device_t *device, char *property, double value) |
| Set a double property. | |
| int | playerc_device_get_strprop (playerc_device_t *device, char *property, char **value) |
| Request a string property. | |
| int | playerc_device_set_strprop (playerc_device_t *device, char *property, char *value) |
| Set a string property. | |
Function Documentation
| void playerc_device_init | ( | playerc_device_t * | device, | |
| playerc_client_t * | client, | |||
| int | code, | |||
| int | index, | |||
| playerc_putmsg_fn_t | putmsg | |||
| ) |
Initialise the device.
Additional callbacks for geom and config
For internal use only.
| int playerc_device_subscribe | ( | playerc_device_t * | device, | |
| int | access | |||
| ) |
Subscribe the device.
For internal use only.
| void playerc_device_term | ( | playerc_device_t * | device | ) |
Finalize the device.
For internal use only.
| int playerc_device_unsubscribe | ( | playerc_device_t * | device | ) |
Unsubscribe the device.
For internal use only.
