|
◆ 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
-
device | The device to connect to. |
service_name | The name of the service to start. |
client | Pointer that will point to a newly allocated service_client_t upon successful return. Must be freed using service_client_free() after use. |
label | The 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.
|