libimobiledevice  1.3.0
API Documentation - Return to Homepage

◆ service_client_factory_start_service()

service_error_t service_client_factory_start_service ( idevice_t  device,
const char *  service_name,
void **  client,
const char *  label,
int32_t(*)(idevice_t, lockdownd_service_descriptor_t, void **)  constructor_func,
int32_t *  error_code 
)

Starts a new service on the specified device with given name and connects to it.

Parameters
deviceThe device to connect to.
service_nameThe name of the service to start.
clientPointer that will point to a newly allocated service_client_t upon successful return. Must be freed using service_client_free() after use.
labelThe label to use for communication. Usually the program name. Pass NULL to disable sending the label in requests to lockdownd.
Returns
SERVICE_E_SUCCESS on success, or a SERVICE_E_* error code otherwise.