libimobiledevice  1.3.0
API Documentation - Return to Homepage

◆ syslog_relay_start_capture()

syslog_relay_error_t syslog_relay_start_capture ( syslog_relay_client_t  client,
syslog_relay_receive_cb_t  callback,
void *  user_data 
)

Starts capturing the syslog of the device using a callback.

Use syslog_relay_stop_capture() to stop receiving the syslog.

Parameters
clientThe syslog_relay client to use
callbackCallback to receive each character from the syslog.
user_dataCustom pointer passed to the callback function.
Returns
SYSLOG_RELAY_E_SUCCESS on success, SYSLOG_RELAY_E_INVALID_ARG when one or more parameters are invalid or SYSLOG_RELAY_E_UNKNOWN_ERROR when an unspecified error occurs or a syslog capture has already been started.