diff options
| author | 2013-02-26 20:17:32 +0100 | |
|---|---|---|
| committer | 2013-02-27 16:18:48 +0100 | |
| commit | 63e70332393e4fb6ae275abf1e1baea0235f08e9 (patch) | |
| tree | 4a5545bc4d40f2c5e1cc1b96498ca5af9c74977d /src/webinspector.c | |
| parent | a3cdb72ecf938b474174d5fd7cad348ec170dc4b (diff) | |
| download | libimobiledevice-63e70332393e4fb6ae275abf1e1baea0235f08e9.tar.gz libimobiledevice-63e70332393e4fb6ae275abf1e1baea0235f08e9.tar.bz2 | |
Add label argument to *_client_start_service() helpers
Diffstat (limited to 'src/webinspector.c')
| -rw-r--r-- | src/webinspector.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/webinspector.c b/src/webinspector.c index 1b39ea0..8d05082 100644 --- a/src/webinspector.c +++ b/src/webinspector.c | |||
| @@ -104,16 +104,18 @@ webinspector_error_t webinspector_client_new(idevice_t device, lockdownd_service | |||
| 104 | * @param client Pointer that will point to a newly allocated | 104 | * @param client Pointer that will point to a newly allocated |
| 105 | * webinspector_client_t upon successful return. Must be freed using | 105 | * webinspector_client_t upon successful return. Must be freed using |
| 106 | * webinspector_client_free() after use. | 106 | * webinspector_client_free() after use. |
| 107 | * @param label The label to use for communication. Usually the program name. | ||
| 108 | * Pass NULL to disable sending the label in requests to lockdownd. | ||
| 107 | * | 109 | * |
| 108 | * @return WEBINSPECTOR_E_SUCCESS on success, or an WEBINSPECTOR_E_* error | 110 | * @return WEBINSPECTOR_E_SUCCESS on success, or an WEBINSPECTOR_E_* error |
| 109 | * code otherwise. | 111 | * code otherwise. |
| 110 | */ | 112 | */ |
| 111 | webinspector_error_t webinspector_client_start_service(idevice_t device, webinspector_client_t * client) | 113 | webinspector_error_t webinspector_client_start_service(idevice_t device, webinspector_client_t * client, const char* label) |
| 112 | { | 114 | { |
| 113 | *client = NULL; | 115 | *client = NULL; |
| 114 | 116 | ||
| 115 | lockdownd_client_t lckd = NULL; | 117 | lockdownd_client_t lckd = NULL; |
| 116 | if (LOCKDOWN_E_SUCCESS != lockdownd_client_new_with_handshake(device, &lckd, NULL)) { | 118 | if (LOCKDOWN_E_SUCCESS != lockdownd_client_new_with_handshake(device, &lckd, label)) { |
| 117 | idevice_free(device); | 119 | idevice_free(device); |
| 118 | debug_info("Could not create a lockdown client."); | 120 | debug_info("Could not create a lockdown client."); |
| 119 | return WEBINSPECTOR_E_UNKNOWN_ERROR; | 121 | return WEBINSPECTOR_E_UNKNOWN_ERROR; |
