log

The log proxy provides start/stop control of data logging. More...


Detailed Description

The log proxy provides start/stop control of data logging.

Classes

struct  playerc_log_t
 Log proxy data. More...

Functions

PLAYERC_EXPORT playerc_log_tplayerc_log_create (playerc_client_t *client, int index)
 Create a log proxy.
PLAYERC_EXPORT void playerc_log_destroy (playerc_log_t *device)
 Destroy a log proxy.
PLAYERC_EXPORT int playerc_log_subscribe (playerc_log_t *device, int access)
 Subscribe to the log device.
PLAYERC_EXPORT int playerc_log_unsubscribe (playerc_log_t *device)
 Un-subscribe from the log device.
PLAYERC_EXPORT int playerc_log_set_write_state (playerc_log_t *device, int state)
 Start/stop logging.
PLAYERC_EXPORT int playerc_log_set_read_state (playerc_log_t *device, int state)
 Start/stop playback.
PLAYERC_EXPORT int playerc_log_set_read_rewind (playerc_log_t *device)
 Rewind playback.
PLAYERC_EXPORT int playerc_log_get_state (playerc_log_t *device)
 Get logging/playback state.
PLAYERC_EXPORT int playerc_log_set_filename (playerc_log_t *device, const char *fname)
 Change name of log file to write to.

Function Documentation

PLAYERC_EXPORT playerc_log_t* playerc_log_create ( playerc_client_t client,
int  index 
)

Create a log proxy.

PLAYERC_EXPORT void playerc_log_destroy ( playerc_log_t device)

Destroy a log proxy.

PLAYERC_EXPORT int playerc_log_get_state ( playerc_log_t device)

Get logging/playback state.

The result is written into the proxy.

PLAYERC_EXPORT int playerc_log_set_filename ( playerc_log_t device,
const char *  fname 
)

Change name of log file to write to.

PLAYERC_EXPORT int playerc_log_subscribe ( playerc_log_t device,
int  access 
)

Subscribe to the log device.

PLAYERC_EXPORT int playerc_log_unsubscribe ( playerc_log_t device)

Un-subscribe from the log device.