summaryrefslogtreecommitdiffstats
path: root/include/libimobiledevice/lockdown.h
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2024-01-31 02:57:11 +0100
committerGravatar Nikias Bassen2024-01-31 02:57:11 +0100
commit63bbac545efc400373a7f472fdd78174149119c3 (patch)
treef95c8d58b7b0fbf33bd188c5becc0401ee7e64ef /include/libimobiledevice/lockdown.h
parentf723a44513eb5ba5797da24bc2b63d9f09600a6e (diff)
downloadlibimobiledevice-63bbac545efc400373a7f472fdd78174149119c3.tar.gz
libimobiledevice-63bbac545efc400373a7f472fdd78174149119c3.tar.bz2
Move LIBIMOBILEDEVICE_API to public headers
Diffstat (limited to 'include/libimobiledevice/lockdown.h')
-rw-r--r--include/libimobiledevice/lockdown.h64
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 */
133lockdownd_error_t lockdownd_client_new(idevice_t device, lockdownd_client_t *client, const char *label); 133LIBIMOBILEDEVICE_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 */
152lockdownd_error_t lockdownd_client_new_with_handshake(idevice_t device, lockdownd_client_t *client, const char *label); 152LIBIMOBILEDEVICE_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 */
162lockdownd_error_t lockdownd_client_free(lockdownd_client_t client); 162LIBIMOBILEDEVICE_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 */
174lockdownd_error_t lockdownd_query_type(lockdownd_client_t client, char **type); 174LIBIMOBILEDEVICE_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 */
186lockdownd_error_t lockdownd_get_value(lockdownd_client_t client, const char *domain, const char *key, plist_t *value); 186LIBIMOBILEDEVICE_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 */
199lockdownd_error_t lockdownd_set_value(lockdownd_client_t client, const char *domain, const char *key, plist_t value); 199LIBIMOBILEDEVICE_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 */
212lockdownd_error_t lockdownd_remove_value(lockdownd_client_t client, const char *domain, const char *key); 212LIBIMOBILEDEVICE_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 */
226lockdownd_error_t lockdownd_start_service(lockdownd_client_t client, const char *identifier, lockdownd_service_descriptor_t *service); 226LIBIMOBILEDEVICE_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 */
242lockdownd_error_t lockdownd_start_service_with_escrow_bag(lockdownd_client_t client, const char *identifier, lockdownd_service_descriptor_t *service); 242LIBIMOBILEDEVICE_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 */
257lockdownd_error_t lockdownd_start_session(lockdownd_client_t client, const char *host_id, char **session_id, int *ssl_enabled); 257LIBIMOBILEDEVICE_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 */
269lockdownd_error_t lockdownd_stop_session(lockdownd_client_t client, const char *session_id); 269LIBIMOBILEDEVICE_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 */
283lockdownd_error_t lockdownd_send(lockdownd_client_t client, plist_t plist); 283LIBIMOBILEDEVICE_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 */
294lockdownd_error_t lockdownd_receive(lockdownd_client_t client, plist_t *plist); 294LIBIMOBILEDEVICE_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 */
310lockdownd_error_t lockdownd_pair(lockdownd_client_t client, lockdownd_pair_record_t pair_record); 310LIBIMOBILEDEVICE_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 */
329lockdownd_error_t lockdownd_pair_with_options(lockdownd_client_t client, lockdownd_pair_record_t pair_record, plist_t options, plist_t *response); 329LIBIMOBILEDEVICE_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 */
348lockdownd_error_t lockdownd_validate_pair(lockdownd_client_t client, lockdownd_pair_record_t pair_record); 348LIBIMOBILEDEVICE_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 */
364lockdownd_error_t lockdownd_unpair(lockdownd_client_t client, lockdownd_pair_record_t pair_record); 364LIBIMOBILEDEVICE_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 */
381lockdownd_error_t lockdownd_activate(lockdownd_client_t client, plist_t activation_record); 381LIBIMOBILEDEVICE_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 */
393lockdownd_error_t lockdownd_deactivate(lockdownd_client_t client); 393LIBIMOBILEDEVICE_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 */
402lockdownd_error_t lockdownd_enter_recovery(lockdownd_client_t client); 402LIBIMOBILEDEVICE_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 */
413lockdownd_error_t lockdownd_goodbye(lockdownd_client_t client); 413LIBIMOBILEDEVICE_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 */
442lockdownd_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); 442LIBIMOBILEDEVICE_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 */
462lockdownd_error_t lockdownd_cu_send_request_and_get_reply(lockdownd_client_t client, const char* request, plist_t request_payload, plist_t* reply); 462LIBIMOBILEDEVICE_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 */
482lockdownd_error_t lockdownd_get_value_cu(lockdownd_client_t client, const char* domain, const char* key, plist_t* value); 482LIBIMOBILEDEVICE_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 */
495lockdownd_error_t lockdownd_pair_cu(lockdownd_client_t client); 495LIBIMOBILEDEVICE_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 */
507void lockdownd_client_set_label(lockdownd_client_t client, const char *label); 507LIBIMOBILEDEVICE_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 */
518lockdownd_error_t lockdownd_get_device_udid(lockdownd_client_t client, char **udid); 518LIBIMOBILEDEVICE_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 */
529lockdownd_error_t lockdownd_get_device_name(lockdownd_client_t client, char **device_name); 529LIBIMOBILEDEVICE_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 */
544lockdownd_error_t lockdownd_get_sync_data_classes(lockdownd_client_t client, char ***classes, int *count); 544LIBIMOBILEDEVICE_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 */
553lockdownd_error_t lockdownd_data_classes_free(char **classes); 553LIBIMOBILEDEVICE_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 */
562lockdownd_error_t lockdownd_service_descriptor_free(lockdownd_service_descriptor_t service); 562LIBIMOBILEDEVICE_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 */
571const char* lockdownd_strerror(lockdownd_error_t err); 571LIBIMOBILEDEVICE_API const char* lockdownd_strerror(lockdownd_error_t err);
572 572
573#ifdef __cplusplus 573#ifdef __cplusplus
574} 574}