diff options
Diffstat (limited to 'include/libimobiledevice/restore.h')
| -rw-r--r-- | include/libimobiledevice/restore.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/include/libimobiledevice/restore.h b/include/libimobiledevice/restore.h index 0017cfd..859dc98 100644 --- a/include/libimobiledevice/restore.h +++ b/include/libimobiledevice/restore.h | |||
| @@ -56,7 +56,7 @@ typedef restored_client_private *restored_client_t; /**< The client handle. */ | |||
| 56 | * | 56 | * |
| 57 | * @return RESTORE_E_SUCCESS on success, RESTORE_E_INVALID_ARG when client is NULL | 57 | * @return RESTORE_E_SUCCESS on success, RESTORE_E_INVALID_ARG when client is NULL |
| 58 | */ | 58 | */ |
| 59 | restored_error_t restored_client_new(idevice_t device, restored_client_t *client, const char *label); | 59 | LIBIMOBILEDEVICE_API restored_error_t restored_client_new(idevice_t device, restored_client_t *client, const char *label); |
| 60 | 60 | ||
| 61 | /** | 61 | /** |
| 62 | * Closes the restored client session if one is running and frees up the | 62 | * Closes the restored client session if one is running and frees up the |
| @@ -66,7 +66,7 @@ restored_error_t restored_client_new(idevice_t device, restored_client_t *client | |||
| 66 | * | 66 | * |
| 67 | * @return RESTORE_E_SUCCESS on success, RESTORE_E_INVALID_ARG when client is NULL | 67 | * @return RESTORE_E_SUCCESS on success, RESTORE_E_INVALID_ARG when client is NULL |
| 68 | */ | 68 | */ |
| 69 | restored_error_t restored_client_free(restored_client_t client); | 69 | LIBIMOBILEDEVICE_API restored_error_t restored_client_free(restored_client_t client); |
| 70 | 70 | ||
| 71 | 71 | ||
| 72 | /** | 72 | /** |
| @@ -79,7 +79,7 @@ restored_error_t restored_client_free(restored_client_t client); | |||
| 79 | * | 79 | * |
| 80 | * @return RESTORE_E_SUCCESS on success, RESTORE_E_INVALID_ARG when client is NULL | 80 | * @return RESTORE_E_SUCCESS on success, RESTORE_E_INVALID_ARG when client is NULL |
| 81 | */ | 81 | */ |
| 82 | restored_error_t restored_query_type(restored_client_t client, char **type, uint64_t *version); | 82 | LIBIMOBILEDEVICE_API restored_error_t restored_query_type(restored_client_t client, char **type, uint64_t *version); |
| 83 | 83 | ||
| 84 | /** | 84 | /** |
| 85 | * Queries a value from the device specified by a key. | 85 | * Queries a value from the device specified by a key. |
| @@ -90,7 +90,7 @@ restored_error_t restored_query_type(restored_client_t client, char **type, uint | |||
| 90 | * | 90 | * |
| 91 | * @return RESTORE_E_SUCCESS on success, RESTORE_E_INVALID_ARG when client is NULL, RESTORE_E_PLIST_ERROR if value for key can't be found | 91 | * @return RESTORE_E_SUCCESS on success, RESTORE_E_INVALID_ARG when client is NULL, RESTORE_E_PLIST_ERROR if value for key can't be found |
| 92 | */ | 92 | */ |
| 93 | restored_error_t restored_query_value(restored_client_t client, const char *key, plist_t *value); | 93 | LIBIMOBILEDEVICE_API restored_error_t restored_query_value(restored_client_t client, const char *key, plist_t *value); |
| 94 | 94 | ||
| 95 | /** | 95 | /** |
| 96 | * Retrieves a value from information plist specified by a key. | 96 | * Retrieves a value from information plist specified by a key. |
| @@ -101,7 +101,7 @@ restored_error_t restored_query_value(restored_client_t client, const char *key, | |||
| 101 | * | 101 | * |
| 102 | * @return RESTORE_E_SUCCESS on success, RESTORE_E_INVALID_ARG when client is NULL, RESTORE_E_PLIST_ERROR if value for key can't be found | 102 | * @return RESTORE_E_SUCCESS on success, RESTORE_E_INVALID_ARG when client is NULL, RESTORE_E_PLIST_ERROR if value for key can't be found |
| 103 | */ | 103 | */ |
| 104 | restored_error_t restored_get_value(restored_client_t client, const char *key, plist_t *value) ; | 104 | LIBIMOBILEDEVICE_API restored_error_t restored_get_value(restored_client_t client, const char *key, plist_t *value) ; |
| 105 | 105 | ||
| 106 | /** | 106 | /** |
| 107 | * Sends a plist to restored. | 107 | * Sends a plist to restored. |
| @@ -115,7 +115,7 @@ restored_error_t restored_get_value(restored_client_t client, const char *key, p | |||
| 115 | * @return RESTORE_E_SUCCESS on success, RESTORE_E_INVALID_ARG when client or | 115 | * @return RESTORE_E_SUCCESS on success, RESTORE_E_INVALID_ARG when client or |
| 116 | * plist is NULL | 116 | * plist is NULL |
| 117 | */ | 117 | */ |
| 118 | restored_error_t restored_send(restored_client_t client, plist_t plist); | 118 | LIBIMOBILEDEVICE_API restored_error_t restored_send(restored_client_t client, plist_t plist); |
| 119 | 119 | ||
| 120 | /** | 120 | /** |
| 121 | * Receives a plist from restored. | 121 | * Receives a plist from restored. |
| @@ -126,7 +126,7 @@ restored_error_t restored_send(restored_client_t client, plist_t plist); | |||
| 126 | * @return RESTORE_E_SUCCESS on success, RESTORE_E_INVALID_ARG when client or | 126 | * @return RESTORE_E_SUCCESS on success, RESTORE_E_INVALID_ARG when client or |
| 127 | * plist is NULL | 127 | * plist is NULL |
| 128 | */ | 128 | */ |
| 129 | restored_error_t restored_receive(restored_client_t client, plist_t *plist); | 129 | LIBIMOBILEDEVICE_API restored_error_t restored_receive(restored_client_t client, plist_t *plist); |
| 130 | 130 | ||
| 131 | /** | 131 | /** |
| 132 | * Sends the Goodbye request to restored signaling the end of communication. | 132 | * Sends the Goodbye request to restored signaling the end of communication. |
| @@ -136,7 +136,7 @@ restored_error_t restored_receive(restored_client_t client, plist_t *plist); | |||
| 136 | * @return RESTORE_E_SUCCESS on success, RESTORE_E_INVALID_ARG when client is NULL, | 136 | * @return RESTORE_E_SUCCESS on success, RESTORE_E_INVALID_ARG when client is NULL, |
| 137 | * RESTORE_E_PLIST_ERROR if the device did not acknowledge the request | 137 | * RESTORE_E_PLIST_ERROR if the device did not acknowledge the request |
| 138 | */ | 138 | */ |
| 139 | restored_error_t restored_goodbye(restored_client_t client); | 139 | LIBIMOBILEDEVICE_API restored_error_t restored_goodbye(restored_client_t client); |
| 140 | 140 | ||
| 141 | 141 | ||
| 142 | /** | 142 | /** |
| @@ -149,7 +149,7 @@ restored_error_t restored_goodbye(restored_client_t client); | |||
| 149 | * @return RESTORE_E_SUCCESS on success, RESTORE_E_INVALID_ARG if a parameter | 149 | * @return RESTORE_E_SUCCESS on success, RESTORE_E_INVALID_ARG if a parameter |
| 150 | * is NULL, RESTORE_E_START_RESTORE_FAILED if the request fails | 150 | * is NULL, RESTORE_E_START_RESTORE_FAILED if the request fails |
| 151 | */ | 151 | */ |
| 152 | restored_error_t restored_start_restore(restored_client_t client, plist_t options, uint64_t version); | 152 | LIBIMOBILEDEVICE_API restored_error_t restored_start_restore(restored_client_t client, plist_t options, uint64_t version); |
| 153 | 153 | ||
| 154 | /** | 154 | /** |
| 155 | * Requests device to reboot. | 155 | * Requests device to reboot. |
| @@ -159,7 +159,7 @@ restored_error_t restored_start_restore(restored_client_t client, plist_t option | |||
| 159 | * @return RESTORE_E_SUCCESS on success, RESTORE_E_INVALID_ARG if a parameter | 159 | * @return RESTORE_E_SUCCESS on success, RESTORE_E_INVALID_ARG if a parameter |
| 160 | * is NULL | 160 | * is NULL |
| 161 | */ | 161 | */ |
| 162 | restored_error_t restored_reboot(restored_client_t client); | 162 | LIBIMOBILEDEVICE_API restored_error_t restored_reboot(restored_client_t client); |
| 163 | 163 | ||
| 164 | /* Helper */ | 164 | /* Helper */ |
| 165 | 165 | ||
| @@ -170,7 +170,7 @@ restored_error_t restored_reboot(restored_client_t client); | |||
| 170 | * @param label The label to set or NULL to disable sending a label | 170 | * @param label The label to set or NULL to disable sending a label |
| 171 | * | 171 | * |
| 172 | */ | 172 | */ |
| 173 | void restored_client_set_label(restored_client_t client, const char *label); | 173 | LIBIMOBILEDEVICE_API void restored_client_set_label(restored_client_t client, const char *label); |
| 174 | 174 | ||
| 175 | #ifdef __cplusplus | 175 | #ifdef __cplusplus |
| 176 | } | 176 | } |
