log
[Device proxies]
Detailed Description
The log proxy provides start/stop control of data logging.
Classes | |
struct | playerc_log_t |
Functions | |
playerc_log_t * | playerc_log_create (playerc_client_t *client, int index) |
void | playerc_log_destroy (playerc_log_t *device) |
int | playerc_log_subscribe (playerc_log_t *device, int access) |
int | playerc_log_unsubscribe (playerc_log_t *device) |
int | playerc_log_set_write_state (playerc_log_t *device, int state) |
int | playerc_log_set_read_state (playerc_log_t *device, int state) |
int | playerc_log_set_read_rewind (playerc_log_t *device) |
int | playerc_log_get_state (playerc_log_t *device) |
int | playerc_log_set_filename (playerc_log_t *device, const char *fname) |
Function Documentation
playerc_log_t* playerc_log_create | ( | playerc_client_t * | client, | |
int | index | |||
) |
Create a log proxy.
void playerc_log_destroy | ( | playerc_log_t * | device | ) |
Destroy a log proxy.
int playerc_log_get_state | ( | playerc_log_t * | device | ) |
Get logging/playback state.
The result is written into the proxy.
int playerc_log_set_filename | ( | playerc_log_t * | device, | |
const char * | fname | |||
) |
Change name of log file to write to.
int playerc_log_set_read_rewind | ( | playerc_log_t * | device | ) |
Rewind playback
int playerc_log_set_read_state | ( | playerc_log_t * | device, | |
int | state | |||
) |
Start/stop playback
int playerc_log_set_write_state | ( | playerc_log_t * | device, | |
int | state | |||
) |
Start/stop logging
int playerc_log_subscribe | ( | playerc_log_t * | device, | |
int | access | |||
) |
Subscribe to the log device.
int playerc_log_unsubscribe | ( | playerc_log_t * | device | ) |
Un-subscribe from the log device.