diff options
Diffstat (limited to 'include/libimobiledevice/lockdown.h')
-rw-r--r-- | include/libimobiledevice/lockdown.h | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/include/libimobiledevice/lockdown.h b/include/libimobiledevice/lockdown.h index 6d390fd..21669ef 100644 --- a/include/libimobiledevice/lockdown.h +++ b/include/libimobiledevice/lockdown.h | |||
@@ -130,7 +130,7 @@ typedef void (*lockdownd_cu_pairing_cb_t) (lockdownd_cu_pairing_cb_type_t cb_typ | |||
130 | * | 130 | * |
131 | * @return LOCKDOWN_E_SUCCESS on success, LOCKDOWN_E_INVALID_ARG when client is NULL | 131 | * @return LOCKDOWN_E_SUCCESS on success, LOCKDOWN_E_INVALID_ARG when client is NULL |
132 | */ | 132 | */ |
133 | lockdownd_error_t lockdownd_client_new(idevice_t device, lockdownd_client_t *client, const char *label); | 133 | LIBIMOBILEDEVICE_API lockdownd_error_t lockdownd_client_new(idevice_t device, lockdownd_client_t *client, const char *label); |
134 | 134 | ||
135 | /** | 135 | /** |
136 | * Creates a new lockdownd client for the device and starts initial handshake. | 136 | * Creates a new lockdownd client for the device and starts initial handshake. |
@@ -149,7 +149,7 @@ lockdownd_error_t lockdownd_client_new(idevice_t device, lockdownd_client_t *cli | |||
149 | * @return LOCKDOWN_E_SUCCESS on success, LOCKDOWN_E_INVALID_ARG when client is NULL, | 149 | * @return LOCKDOWN_E_SUCCESS on success, LOCKDOWN_E_INVALID_ARG when client is NULL, |
150 | * LOCKDOWN_E_INVALID_CONF if configuration data is wrong | 150 | * LOCKDOWN_E_INVALID_CONF if configuration data is wrong |
151 | */ | 151 | */ |
152 | lockdownd_error_t lockdownd_client_new_with_handshake(idevice_t device, lockdownd_client_t *client, const char *label); | 152 | LIBIMOBILEDEVICE_API lockdownd_error_t lockdownd_client_new_with_handshake(idevice_t device, lockdownd_client_t *client, const char *label); |
153 | 153 | ||
154 | /** | 154 | /** |
155 | * Closes the lockdownd client session if one is running and frees up the | 155 | * Closes the lockdownd client session if one is running and frees up the |
@@ -159,7 +159,7 @@ lockdownd_error_t lockdownd_client_new_with_handshake(idevice_t device, lockdown | |||
159 | * | 159 | * |
160 | * @return LOCKDOWN_E_SUCCESS on success, LOCKDOWN_E_INVALID_ARG when client is NULL | 160 | * @return LOCKDOWN_E_SUCCESS on success, LOCKDOWN_E_INVALID_ARG when client is NULL |
161 | */ | 161 | */ |
162 | lockdownd_error_t lockdownd_client_free(lockdownd_client_t client); | 162 | LIBIMOBILEDEVICE_API lockdownd_error_t lockdownd_client_free(lockdownd_client_t client); |
163 | 163 | ||
164 | 164 | ||
165 | /** | 165 | /** |
@@ -171,7 +171,7 @@ lockdownd_error_t lockdownd_client_free(lockdownd_client_t client); | |||
171 | * | 171 | * |
172 | * @return LOCKDOWN_E_SUCCESS on success, LOCKDOWN_E_INVALID_ARG when client is NULL | 172 | * @return LOCKDOWN_E_SUCCESS on success, LOCKDOWN_E_INVALID_ARG when client is NULL |
173 | */ | 173 | */ |
174 | lockdownd_error_t lockdownd_query_type(lockdownd_client_t client, char **type); | 174 | LIBIMOBILEDEVICE_API lockdownd_error_t lockdownd_query_type(lockdownd_client_t client, char **type); |
175 | 175 | ||
176 | /** | 176 | /** |
177 | * Retrieves a preferences plist using an optional domain and/or key name. | 177 | * Retrieves a preferences plist using an optional domain and/or key name. |
@@ -183,7 +183,7 @@ lockdownd_error_t lockdownd_query_type(lockdownd_client_t client, char **type); | |||
183 | * | 183 | * |
184 | * @return LOCKDOWN_E_SUCCESS on success, LOCKDOWN_E_INVALID_ARG when client is NULL | 184 | * @return LOCKDOWN_E_SUCCESS on success, LOCKDOWN_E_INVALID_ARG when client is NULL |
185 | */ | 185 | */ |
186 | lockdownd_error_t lockdownd_get_value(lockdownd_client_t client, const char *domain, const char *key, plist_t *value); | 186 | LIBIMOBILEDEVICE_API lockdownd_error_t lockdownd_get_value(lockdownd_client_t client, const char *domain, const char *key, plist_t *value); |
187 | 187 | ||
188 | /** | 188 | /** |
189 | * Sets a preferences value using a plist and optional by domain and/or key name. | 189 | * Sets a preferences value using a plist and optional by domain and/or key name. |
@@ -196,7 +196,7 @@ lockdownd_error_t lockdownd_get_value(lockdownd_client_t client, const char *dom | |||
196 | * @return LOCKDOWN_E_SUCCESS on success, LOCKDOWN_E_INVALID_ARG when client or | 196 | * @return LOCKDOWN_E_SUCCESS on success, LOCKDOWN_E_INVALID_ARG when client or |
197 | * value is NULL | 197 | * value is NULL |
198 | */ | 198 | */ |
199 | lockdownd_error_t lockdownd_set_value(lockdownd_client_t client, const char *domain, const char *key, plist_t value); | 199 | LIBIMOBILEDEVICE_API lockdownd_error_t lockdownd_set_value(lockdownd_client_t client, const char *domain, const char *key, plist_t value); |
200 | 200 | ||
201 | /** | 201 | /** |
202 | * Removes a preference node by domain and/or key name. | 202 | * Removes a preference node by domain and/or key name. |
@@ -209,7 +209,7 @@ lockdownd_error_t lockdownd_set_value(lockdownd_client_t client, const char *dom | |||
209 | * | 209 | * |
210 | * @return LOCKDOWN_E_SUCCESS on success, LOCKDOWN_E_INVALID_ARG when client is NULL | 210 | * @return LOCKDOWN_E_SUCCESS on success, LOCKDOWN_E_INVALID_ARG when client is NULL |
211 | */ | 211 | */ |
212 | lockdownd_error_t lockdownd_remove_value(lockdownd_client_t client, const char *domain, const char *key); | 212 | LIBIMOBILEDEVICE_API lockdownd_error_t lockdownd_remove_value(lockdownd_client_t client, const char *domain, const char *key); |
213 | 213 | ||
214 | /** | 214 | /** |
215 | * Requests to start a service and retrieve it's port on success. | 215 | * Requests to start a service and retrieve it's port on success. |
@@ -223,7 +223,7 @@ lockdownd_error_t lockdownd_remove_value(lockdownd_client_t client, const char * | |||
223 | * by the device, LOCKDOWN_E_START_SERVICE_FAILED if the service could not be | 223 | * by the device, LOCKDOWN_E_START_SERVICE_FAILED if the service could not be |
224 | * started by the device | 224 | * started by the device |
225 | */ | 225 | */ |
226 | lockdownd_error_t lockdownd_start_service(lockdownd_client_t client, const char *identifier, lockdownd_service_descriptor_t *service); | 226 | LIBIMOBILEDEVICE_API lockdownd_error_t lockdownd_start_service(lockdownd_client_t client, const char *identifier, lockdownd_service_descriptor_t *service); |
227 | 227 | ||
228 | /** | 228 | /** |
229 | * Requests to start a service and retrieve it's port on success. | 229 | * Requests to start a service and retrieve it's port on success. |
@@ -239,7 +239,7 @@ lockdownd_error_t lockdownd_start_service(lockdownd_client_t client, const char | |||
239 | * started by the device, LOCKDOWN_E_INVALID_CONF if the host id or escrow bag are | 239 | * started by the device, LOCKDOWN_E_INVALID_CONF if the host id or escrow bag are |
240 | * missing from the device record. | 240 | * missing from the device record. |
241 | */ | 241 | */ |
242 | lockdownd_error_t lockdownd_start_service_with_escrow_bag(lockdownd_client_t client, const char *identifier, lockdownd_service_descriptor_t *service); | 242 | LIBIMOBILEDEVICE_API lockdownd_error_t lockdownd_start_service_with_escrow_bag(lockdownd_client_t client, const char *identifier, lockdownd_service_descriptor_t *service); |
243 | 243 | ||
244 | /** | 244 | /** |
245 | * Opens a session with lockdownd and switches to SSL mode if device wants it. | 245 | * Opens a session with lockdownd and switches to SSL mode if device wants it. |
@@ -254,7 +254,7 @@ lockdownd_error_t lockdownd_start_service_with_escrow_bag(lockdownd_client_t cli | |||
254 | * LOCKDOWN_E_INVALID_HOST_ID if the device does not know the supplied HostID, | 254 | * LOCKDOWN_E_INVALID_HOST_ID if the device does not know the supplied HostID, |
255 | * LOCKDOWN_E_SSL_ERROR if enabling SSL communication failed | 255 | * LOCKDOWN_E_SSL_ERROR if enabling SSL communication failed |
256 | */ | 256 | */ |
257 | lockdownd_error_t lockdownd_start_session(lockdownd_client_t client, const char *host_id, char **session_id, int *ssl_enabled); | 257 | LIBIMOBILEDEVICE_API lockdownd_error_t lockdownd_start_session(lockdownd_client_t client, const char *host_id, char **session_id, int *ssl_enabled); |
258 | 258 | ||
259 | /** | 259 | /** |
260 | * Closes the lockdownd session by sending the StopSession request. | 260 | * Closes the lockdownd session by sending the StopSession request. |
@@ -266,7 +266,7 @@ lockdownd_error_t lockdownd_start_session(lockdownd_client_t client, const char | |||
266 | * | 266 | * |
267 | * @return LOCKDOWN_E_SUCCESS on success, LOCKDOWN_E_INVALID_ARG when client is NULL | 267 | * @return LOCKDOWN_E_SUCCESS on success, LOCKDOWN_E_INVALID_ARG when client is NULL |
268 | */ | 268 | */ |
269 | lockdownd_error_t lockdownd_stop_session(lockdownd_client_t client, const char *session_id); | 269 | LIBIMOBILEDEVICE_API lockdownd_error_t lockdownd_stop_session(lockdownd_client_t client, const char *session_id); |
270 | 270 | ||
271 | /** | 271 | /** |
272 | * Sends a plist to lockdownd. | 272 | * Sends a plist to lockdownd. |
@@ -280,7 +280,7 @@ lockdownd_error_t lockdownd_stop_session(lockdownd_client_t client, const char * | |||
280 | * @return LOCKDOWN_E_SUCCESS on success, LOCKDOWN_E_INVALID_ARG when client or | 280 | * @return LOCKDOWN_E_SUCCESS on success, LOCKDOWN_E_INVALID_ARG when client or |
281 | * plist is NULL | 281 | * plist is NULL |
282 | */ | 282 | */ |
283 | lockdownd_error_t lockdownd_send(lockdownd_client_t client, plist_t plist); | 283 | LIBIMOBILEDEVICE_API lockdownd_error_t lockdownd_send(lockdownd_client_t client, plist_t plist); |
284 | 284 | ||
285 | /** | 285 | /** |
286 | * Receives a plist from lockdownd. | 286 | * Receives a plist from lockdownd. |
@@ -291,7 +291,7 @@ lockdownd_error_t lockdownd_send(lockdownd_client_t client, plist_t plist); | |||
291 | * @return LOCKDOWN_E_SUCCESS on success, LOCKDOWN_E_INVALID_ARG when client or | 291 | * @return LOCKDOWN_E_SUCCESS on success, LOCKDOWN_E_INVALID_ARG when client or |
292 | * plist is NULL | 292 | * plist is NULL |
293 | */ | 293 | */ |
294 | lockdownd_error_t lockdownd_receive(lockdownd_client_t client, plist_t *plist); | 294 | LIBIMOBILEDEVICE_API lockdownd_error_t lockdownd_receive(lockdownd_client_t client, plist_t *plist); |
295 | 295 | ||
296 | /** | 296 | /** |
297 | * Pairs the device using the supplied pair record. | 297 | * Pairs the device using the supplied pair record. |
@@ -307,7 +307,7 @@ lockdownd_error_t lockdownd_receive(lockdownd_client_t client, plist_t *plist); | |||
307 | * LOCKDOWN_E_PASSWORD_PROTECTED if the device is password protected, | 307 | * LOCKDOWN_E_PASSWORD_PROTECTED if the device is password protected, |
308 | * LOCKDOWN_E_INVALID_HOST_ID if the device does not know the caller's host id | 308 | * LOCKDOWN_E_INVALID_HOST_ID if the device does not know the caller's host id |
309 | */ | 309 | */ |
310 | lockdownd_error_t lockdownd_pair(lockdownd_client_t client, lockdownd_pair_record_t pair_record); | 310 | LIBIMOBILEDEVICE_API lockdownd_error_t lockdownd_pair(lockdownd_client_t client, lockdownd_pair_record_t pair_record); |
311 | 311 | ||
312 | /** | 312 | /** |
313 | * Pairs the device using the supplied pair record and passing the given options. | 313 | * Pairs the device using the supplied pair record and passing the given options. |
@@ -326,7 +326,7 @@ lockdownd_error_t lockdownd_pair(lockdownd_client_t client, lockdownd_pair_recor | |||
326 | * LOCKDOWN_E_PASSWORD_PROTECTED if the device is password protected, | 326 | * LOCKDOWN_E_PASSWORD_PROTECTED if the device is password protected, |
327 | * LOCKDOWN_E_INVALID_HOST_ID if the device does not know the caller's host id | 327 | * LOCKDOWN_E_INVALID_HOST_ID if the device does not know the caller's host id |
328 | */ | 328 | */ |
329 | lockdownd_error_t lockdownd_pair_with_options(lockdownd_client_t client, lockdownd_pair_record_t pair_record, plist_t options, plist_t *response); | 329 | LIBIMOBILEDEVICE_API lockdownd_error_t lockdownd_pair_with_options(lockdownd_client_t client, lockdownd_pair_record_t pair_record, plist_t options, plist_t *response); |
330 | 330 | ||
331 | /** | 331 | /** |
332 | * Validates if the device is paired with the given HostID. If successful the | 332 | * Validates if the device is paired with the given HostID. If successful the |
@@ -345,7 +345,7 @@ lockdownd_error_t lockdownd_pair_with_options(lockdownd_client_t client, lockdow | |||
345 | * LOCKDOWN_E_PASSWORD_PROTECTED if the device is password protected, | 345 | * LOCKDOWN_E_PASSWORD_PROTECTED if the device is password protected, |
346 | * LOCKDOWN_E_INVALID_HOST_ID if the device does not know the caller's host id | 346 | * LOCKDOWN_E_INVALID_HOST_ID if the device does not know the caller's host id |
347 | */ | 347 | */ |
348 | lockdownd_error_t lockdownd_validate_pair(lockdownd_client_t client, lockdownd_pair_record_t pair_record); | 348 | LIBIMOBILEDEVICE_API lockdownd_error_t lockdownd_validate_pair(lockdownd_client_t client, lockdownd_pair_record_t pair_record); |
349 | 349 | ||
350 | /** | 350 | /** |
351 | * Unpairs the device with the given HostID and removes the pairing records | 351 | * Unpairs the device with the given HostID and removes the pairing records |
@@ -361,7 +361,7 @@ lockdownd_error_t lockdownd_validate_pair(lockdownd_client_t client, lockdownd_p | |||
361 | * LOCKDOWN_E_PASSWORD_PROTECTED if the device is password protected, | 361 | * LOCKDOWN_E_PASSWORD_PROTECTED if the device is password protected, |
362 | * LOCKDOWN_E_INVALID_HOST_ID if the device does not know the caller's host id | 362 | * LOCKDOWN_E_INVALID_HOST_ID if the device does not know the caller's host id |
363 | */ | 363 | */ |
364 | lockdownd_error_t lockdownd_unpair(lockdownd_client_t client, lockdownd_pair_record_t pair_record); | 364 | LIBIMOBILEDEVICE_API lockdownd_error_t lockdownd_unpair(lockdownd_client_t client, lockdownd_pair_record_t pair_record); |
365 | 365 | ||
366 | /** | 366 | /** |
367 | * Activates the device. Only works within an open session. | 367 | * Activates the device. Only works within an open session. |
@@ -378,7 +378,7 @@ lockdownd_error_t lockdownd_unpair(lockdownd_client_t client, lockdownd_pair_rec | |||
378 | * LOCKDOWN_E_INVALID_ACTIVATION_RECORD if the device reports that the | 378 | * LOCKDOWN_E_INVALID_ACTIVATION_RECORD if the device reports that the |
379 | * activation_record is invalid | 379 | * activation_record is invalid |
380 | */ | 380 | */ |
381 | lockdownd_error_t lockdownd_activate(lockdownd_client_t client, plist_t activation_record); | 381 | LIBIMOBILEDEVICE_API lockdownd_error_t lockdownd_activate(lockdownd_client_t client, plist_t activation_record); |
382 | 382 | ||
383 | /** | 383 | /** |
384 | * Deactivates the device, returning it to the locked “Activate with iTunes” | 384 | * Deactivates the device, returning it to the locked “Activate with iTunes” |
@@ -390,7 +390,7 @@ lockdownd_error_t lockdownd_activate(lockdownd_client_t client, plist_t activati | |||
390 | * LOCKDOWN_E_NO_RUNNING_SESSION if no session is open, | 390 | * LOCKDOWN_E_NO_RUNNING_SESSION if no session is open, |
391 | * LOCKDOWN_E_PLIST_ERROR if the received plist is broken | 391 | * LOCKDOWN_E_PLIST_ERROR if the received plist is broken |
392 | */ | 392 | */ |
393 | lockdownd_error_t lockdownd_deactivate(lockdownd_client_t client); | 393 | LIBIMOBILEDEVICE_API lockdownd_error_t lockdownd_deactivate(lockdownd_client_t client); |
394 | 394 | ||
395 | /** | 395 | /** |
396 | * Tells the device to immediately enter recovery mode. | 396 | * Tells the device to immediately enter recovery mode. |
@@ -399,7 +399,7 @@ lockdownd_error_t lockdownd_deactivate(lockdownd_client_t client); | |||
399 | * | 399 | * |
400 | * @return LOCKDOWN_E_SUCCESS on success, LOCKDOWN_E_INVALID_ARG when client is NULL | 400 | * @return LOCKDOWN_E_SUCCESS on success, LOCKDOWN_E_INVALID_ARG when client is NULL |
401 | */ | 401 | */ |
402 | lockdownd_error_t lockdownd_enter_recovery(lockdownd_client_t client); | 402 | LIBIMOBILEDEVICE_API lockdownd_error_t lockdownd_enter_recovery(lockdownd_client_t client); |
403 | 403 | ||
404 | /** | 404 | /** |
405 | * Sends the Goodbye request to lockdownd signaling the end of communication. | 405 | * Sends the Goodbye request to lockdownd signaling the end of communication. |
@@ -410,7 +410,7 @@ lockdownd_error_t lockdownd_enter_recovery(lockdownd_client_t client); | |||
410 | * is NULL, LOCKDOWN_E_PLIST_ERROR if the device did not acknowledge the | 410 | * is NULL, LOCKDOWN_E_PLIST_ERROR if the device did not acknowledge the |
411 | * request | 411 | * request |
412 | */ | 412 | */ |
413 | lockdownd_error_t lockdownd_goodbye(lockdownd_client_t client); | 413 | LIBIMOBILEDEVICE_API lockdownd_error_t lockdownd_goodbye(lockdownd_client_t client); |
414 | 414 | ||
415 | /** | 415 | /** |
416 | * Creates a CU pairing session for the current lockdown client. | 416 | * Creates a CU pairing session for the current lockdown client. |
@@ -439,7 +439,7 @@ lockdownd_error_t lockdownd_goodbye(lockdownd_client_t client); | |||
439 | * parameters is invalid, LOCKDOWN_E_PAIRING_FAILED if the pairing failed, | 439 | * parameters is invalid, LOCKDOWN_E_PAIRING_FAILED if the pairing failed, |
440 | * or a LOCKDOWN_E_* error code otherwise. | 440 | * or a LOCKDOWN_E_* error code otherwise. |
441 | */ | 441 | */ |
442 | lockdownd_error_t lockdownd_cu_pairing_create(lockdownd_client_t client, lockdownd_cu_pairing_cb_t pairing_callback, void* cb_user_data, plist_t host_info, plist_t acl); | 442 | LIBIMOBILEDEVICE_API lockdownd_error_t lockdownd_cu_pairing_create(lockdownd_client_t client, lockdownd_cu_pairing_cb_t pairing_callback, void* cb_user_data, plist_t host_info, plist_t acl); |
443 | 443 | ||
444 | /** | 444 | /** |
445 | * Sends a request via lockdown client with established CU pairing session | 445 | * Sends a request via lockdown client with established CU pairing session |
@@ -459,7 +459,7 @@ lockdownd_error_t lockdownd_cu_pairing_create(lockdownd_client_t client, lockdow | |||
459 | * lockdown client does not have an established CU pairing session, | 459 | * lockdown client does not have an established CU pairing session, |
460 | * or a LOCKDOWN_E_* error code otherwise. | 460 | * or a LOCKDOWN_E_* error code otherwise. |
461 | */ | 461 | */ |
462 | lockdownd_error_t lockdownd_cu_send_request_and_get_reply(lockdownd_client_t client, const char* request, plist_t request_payload, plist_t* reply); | 462 | LIBIMOBILEDEVICE_API lockdownd_error_t lockdownd_cu_send_request_and_get_reply(lockdownd_client_t client, const char* request, plist_t request_payload, plist_t* reply); |
463 | 463 | ||
464 | /** | 464 | /** |
465 | * Retrieves a value using an optional domain and/or key name from a lockdown | 465 | * Retrieves a value using an optional domain and/or key name from a lockdown |
@@ -479,7 +479,7 @@ lockdownd_error_t lockdownd_cu_send_request_and_get_reply(lockdownd_client_t cli | |||
479 | * lockdown client does not have an established CU pairing session, | 479 | * lockdown client does not have an established CU pairing session, |
480 | * or a LOCKDOWN_E_* error code otherwise. | 480 | * or a LOCKDOWN_E_* error code otherwise. |
481 | */ | 481 | */ |
482 | lockdownd_error_t lockdownd_get_value_cu(lockdownd_client_t client, const char* domain, const char* key, plist_t* value); | 482 | LIBIMOBILEDEVICE_API lockdownd_error_t lockdownd_get_value_cu(lockdownd_client_t client, const char* domain, const char* key, plist_t* value); |
483 | 483 | ||
484 | /** | 484 | /** |
485 | * Perform a device pairing with a lockdown client that has an established | 485 | * Perform a device pairing with a lockdown client that has an established |
@@ -492,7 +492,7 @@ lockdownd_error_t lockdownd_get_value_cu(lockdownd_client_t client, const char* | |||
492 | * does not have an established CU pairing session, or a LOCKDOWN_E_* error | 492 | * does not have an established CU pairing session, or a LOCKDOWN_E_* error |
493 | * code otherwise. | 493 | * code otherwise. |
494 | */ | 494 | */ |
495 | lockdownd_error_t lockdownd_pair_cu(lockdownd_client_t client); | 495 | LIBIMOBILEDEVICE_API lockdownd_error_t lockdownd_pair_cu(lockdownd_client_t client); |
496 | 496 | ||
497 | 497 | ||
498 | /* Helper */ | 498 | /* Helper */ |
@@ -504,7 +504,7 @@ lockdownd_error_t lockdownd_pair_cu(lockdownd_client_t client); | |||
504 | * @param label The label to set or NULL to disable sending a label | 504 | * @param label The label to set or NULL to disable sending a label |
505 | * | 505 | * |
506 | */ | 506 | */ |
507 | void lockdownd_client_set_label(lockdownd_client_t client, const char *label); | 507 | LIBIMOBILEDEVICE_API void lockdownd_client_set_label(lockdownd_client_t client, const char *label); |
508 | 508 | ||
509 | /** | 509 | /** |
510 | * Returns the unique id of the device from lockdownd. | 510 | * Returns the unique id of the device from lockdownd. |
@@ -515,7 +515,7 @@ void lockdownd_client_set_label(lockdownd_client_t client, const char *label); | |||
515 | * | 515 | * |
516 | * @return LOCKDOWN_E_SUCCESS on success | 516 | * @return LOCKDOWN_E_SUCCESS on success |
517 | */ | 517 | */ |
518 | lockdownd_error_t lockdownd_get_device_udid(lockdownd_client_t client, char **udid); | 518 | LIBIMOBILEDEVICE_API lockdownd_error_t lockdownd_get_device_udid(lockdownd_client_t client, char **udid); |
519 | 519 | ||
520 | /** | 520 | /** |
521 | * Retrieves the name of the device from lockdownd set by the user. | 521 | * Retrieves the name of the device from lockdownd set by the user. |
@@ -526,7 +526,7 @@ lockdownd_error_t lockdownd_get_device_udid(lockdownd_client_t client, char **ud | |||
526 | * | 526 | * |
527 | * @return LOCKDOWN_E_SUCCESS on success | 527 | * @return LOCKDOWN_E_SUCCESS on success |
528 | */ | 528 | */ |
529 | lockdownd_error_t lockdownd_get_device_name(lockdownd_client_t client, char **device_name); | 529 | LIBIMOBILEDEVICE_API lockdownd_error_t lockdownd_get_device_name(lockdownd_client_t client, char **device_name); |
530 | 530 | ||
531 | /** | 531 | /** |
532 | * Calculates and returns the data classes the device supports from lockdownd. | 532 | * Calculates and returns the data classes the device supports from lockdownd. |
@@ -541,7 +541,7 @@ lockdownd_error_t lockdownd_get_device_name(lockdownd_client_t client, char **de | |||
541 | * LOCKDOWN_E_NO_RUNNING_SESSION if no session is open, | 541 | * LOCKDOWN_E_NO_RUNNING_SESSION if no session is open, |
542 | * LOCKDOWN_E_PLIST_ERROR if the received plist is broken | 542 | * LOCKDOWN_E_PLIST_ERROR if the received plist is broken |
543 | */ | 543 | */ |
544 | lockdownd_error_t lockdownd_get_sync_data_classes(lockdownd_client_t client, char ***classes, int *count); | 544 | LIBIMOBILEDEVICE_API lockdownd_error_t lockdownd_get_sync_data_classes(lockdownd_client_t client, char ***classes, int *count); |
545 | 545 | ||
546 | /** | 546 | /** |
547 | * Frees memory of an allocated array of data classes as returned by lockdownd_get_sync_data_classes() | 547 | * Frees memory of an allocated array of data classes as returned by lockdownd_get_sync_data_classes() |
@@ -550,7 +550,7 @@ lockdownd_error_t lockdownd_get_sync_data_classes(lockdownd_client_t client, cha | |||
550 | * | 550 | * |
551 | * @return LOCKDOWN_E_SUCCESS on success | 551 | * @return LOCKDOWN_E_SUCCESS on success |
552 | */ | 552 | */ |
553 | lockdownd_error_t lockdownd_data_classes_free(char **classes); | 553 | LIBIMOBILEDEVICE_API lockdownd_error_t lockdownd_data_classes_free(char **classes); |
554 | 554 | ||
555 | /** | 555 | /** |
556 | * Frees memory of a service descriptor as returned by lockdownd_start_service() | 556 | * Frees memory of a service descriptor as returned by lockdownd_start_service() |
@@ -559,7 +559,7 @@ lockdownd_error_t lockdownd_data_classes_free(char **classes); | |||
559 | * | 559 | * |
560 | * @return LOCKDOWN_E_SUCCESS on success | 560 | * @return LOCKDOWN_E_SUCCESS on success |
561 | */ | 561 | */ |
562 | lockdownd_error_t lockdownd_service_descriptor_free(lockdownd_service_descriptor_t service); | 562 | LIBIMOBILEDEVICE_API lockdownd_error_t lockdownd_service_descriptor_free(lockdownd_service_descriptor_t service); |
563 | 563 | ||
564 | /** | 564 | /** |
565 | * Gets a readable error string for a given lockdown error code. | 565 | * Gets a readable error string for a given lockdown error code. |
@@ -568,7 +568,7 @@ lockdownd_error_t lockdownd_service_descriptor_free(lockdownd_service_descriptor | |||
568 | * | 568 | * |
569 | * @returns A readable error string | 569 | * @returns A readable error string |
570 | */ | 570 | */ |
571 | const char* lockdownd_strerror(lockdownd_error_t err); | 571 | LIBIMOBILEDEVICE_API const char* lockdownd_strerror(lockdownd_error_t err); |
572 | 572 | ||
573 | #ifdef __cplusplus | 573 | #ifdef __cplusplus |
574 | } | 574 | } |