struct playerc_comms_t : Comms proxy data.
| playerc_device_t info; |
Device info; must be at the start of all device structures.
|
size_t msg_len;
uint8_t msg[PLAYER_MAX_MESSAGE_SIZE]; |
The most recent incoming messages.
| playerc_comms_t *playerc_comms_create(playerc_client_t *client, int index); |
Create a comms proxy.
| void playerc_comms_destroy(playerc_comms_t *device); |
Destroy a comms proxy.
| int playerc_comms_subscribe(playerc_comms_t *device, int access); |
Subscribe to the comms device.
| int playerc_comms_unsubscribe(playerc_comms_t *device); |
Un-subscribe from the comms device.
| int playerc_comms_send(playerc_comms_t *device, void *msg, int len); |
Send a comms message.