diff options
| author | 2014-10-03 15:51:43 +0200 | |
|---|---|---|
| committer | 2014-10-03 16:29:42 +0200 | |
| commit | 4c4bbd31f52845de70f5b828121eeea62f8b4514 (patch) | |
| tree | 6655c2eeba4a9865752523e68d73e982e8a0d515 /src/mobile_image_mounter.c | |
| parent | d335f9350eef7b0140a249f92b791dc88b2900e5 (diff) | |
| download | libimobiledevice-4c4bbd31f52845de70f5b828121eeea62f8b4514.tar.gz libimobiledevice-4c4bbd31f52845de70f5b828121eeea62f8b4514.tar.bz2 | |
Avoid exporting non-public symbols
Diffstat (limited to 'src/mobile_image_mounter.c')
| -rw-r--r-- | src/mobile_image_mounter.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mobile_image_mounter.c b/src/mobile_image_mounter.c index ab32cac..9696b8c 100644 --- a/src/mobile_image_mounter.c +++ b/src/mobile_image_mounter.c | |||
| @@ -75,7 +75,7 @@ static mobile_image_mounter_error_t mobile_image_mounter_error(property_list_ser | |||
| 75 | return MOBILE_IMAGE_MOUNTER_E_UNKNOWN_ERROR; | 75 | return MOBILE_IMAGE_MOUNTER_E_UNKNOWN_ERROR; |
| 76 | } | 76 | } |
| 77 | 77 | ||
| 78 | mobile_image_mounter_error_t mobile_image_mounter_new(idevice_t device, lockdownd_service_descriptor_t service, mobile_image_mounter_client_t *client) | 78 | LIBIMOBILEDEVICE_API mobile_image_mounter_error_t mobile_image_mounter_new(idevice_t device, lockdownd_service_descriptor_t service, mobile_image_mounter_client_t *client) |
| 79 | { | 79 | { |
| 80 | property_list_service_client_t plistclient = NULL; | 80 | property_list_service_client_t plistclient = NULL; |
| 81 | mobile_image_mounter_error_t err = mobile_image_mounter_error(property_list_service_client_new(device, service, &plistclient)); | 81 | mobile_image_mounter_error_t err = mobile_image_mounter_error(property_list_service_client_new(device, service, &plistclient)); |
| @@ -92,14 +92,14 @@ mobile_image_mounter_error_t mobile_image_mounter_new(idevice_t device, lockdown | |||
| 92 | return MOBILE_IMAGE_MOUNTER_E_SUCCESS; | 92 | return MOBILE_IMAGE_MOUNTER_E_SUCCESS; |
| 93 | } | 93 | } |
| 94 | 94 | ||
| 95 | mobile_image_mounter_error_t mobile_image_mounter_start_service(idevice_t device, mobile_image_mounter_client_t * client, const char* label) | 95 | LIBIMOBILEDEVICE_API mobile_image_mounter_error_t mobile_image_mounter_start_service(idevice_t device, mobile_image_mounter_client_t * client, const char* label) |
| 96 | { | 96 | { |
| 97 | mobile_image_mounter_error_t err = MOBILE_IMAGE_MOUNTER_E_UNKNOWN_ERROR; | 97 | mobile_image_mounter_error_t err = MOBILE_IMAGE_MOUNTER_E_UNKNOWN_ERROR; |
| 98 | service_client_factory_start_service(device, MOBILE_IMAGE_MOUNTER_SERVICE_NAME, (void**)client, label, SERVICE_CONSTRUCTOR(mobile_image_mounter_new), &err); | 98 | service_client_factory_start_service(device, MOBILE_IMAGE_MOUNTER_SERVICE_NAME, (void**)client, label, SERVICE_CONSTRUCTOR(mobile_image_mounter_new), &err); |
| 99 | return err; | 99 | return err; |
| 100 | } | 100 | } |
| 101 | 101 | ||
| 102 | mobile_image_mounter_error_t mobile_image_mounter_free(mobile_image_mounter_client_t client) | 102 | LIBIMOBILEDEVICE_API mobile_image_mounter_error_t mobile_image_mounter_free(mobile_image_mounter_client_t client) |
| 103 | { | 103 | { |
| 104 | if (!client) | 104 | if (!client) |
| 105 | return MOBILE_IMAGE_MOUNTER_E_INVALID_ARG; | 105 | return MOBILE_IMAGE_MOUNTER_E_INVALID_ARG; |
| @@ -112,7 +112,7 @@ mobile_image_mounter_error_t mobile_image_mounter_free(mobile_image_mounter_clie | |||
| 112 | return MOBILE_IMAGE_MOUNTER_E_SUCCESS; | 112 | return MOBILE_IMAGE_MOUNTER_E_SUCCESS; |
| 113 | } | 113 | } |
| 114 | 114 | ||
| 115 | mobile_image_mounter_error_t mobile_image_mounter_lookup_image(mobile_image_mounter_client_t client, const char *image_type, plist_t *result) | 115 | LIBIMOBILEDEVICE_API mobile_image_mounter_error_t mobile_image_mounter_lookup_image(mobile_image_mounter_client_t client, const char *image_type, plist_t *result) |
| 116 | { | 116 | { |
| 117 | if (!client || !image_type || !result) { | 117 | if (!client || !image_type || !result) { |
| 118 | return MOBILE_IMAGE_MOUNTER_E_INVALID_ARG; | 118 | return MOBILE_IMAGE_MOUNTER_E_INVALID_ARG; |
| @@ -141,7 +141,7 @@ leave_unlock: | |||
| 141 | return res; | 141 | return res; |
| 142 | } | 142 | } |
| 143 | 143 | ||
| 144 | mobile_image_mounter_error_t mobile_image_mounter_upload_image(mobile_image_mounter_client_t client, const char *image_type, size_t image_size, const char *signature, uint16_t signature_size, mobile_image_mounter_upload_cb_t upload_cb, void* userdata) | 144 | LIBIMOBILEDEVICE_API mobile_image_mounter_error_t mobile_image_mounter_upload_image(mobile_image_mounter_client_t client, const char *image_type, size_t image_size, const char *signature, uint16_t signature_size, mobile_image_mounter_upload_cb_t upload_cb, void* userdata) |
| 145 | { | 145 | { |
| 146 | if (!client || !image_type || (image_size == 0) || !upload_cb) { | 146 | if (!client || !image_type || (image_size == 0) || !upload_cb) { |
| 147 | return MOBILE_IMAGE_MOUNTER_E_INVALID_ARG; | 147 | return MOBILE_IMAGE_MOUNTER_E_INVALID_ARG; |
| @@ -252,7 +252,7 @@ leave_unlock: | |||
| 252 | 252 | ||
| 253 | } | 253 | } |
| 254 | 254 | ||
| 255 | mobile_image_mounter_error_t mobile_image_mounter_mount_image(mobile_image_mounter_client_t client, const char *image_path, const char *signature, uint16_t signature_size, const char *image_type, plist_t *result) | 255 | LIBIMOBILEDEVICE_API mobile_image_mounter_error_t mobile_image_mounter_mount_image(mobile_image_mounter_client_t client, const char *image_path, const char *signature, uint16_t signature_size, const char *image_type, plist_t *result) |
| 256 | { | 256 | { |
| 257 | if (!client || !image_path || !image_type || !result) { | 257 | if (!client || !image_path || !image_type || !result) { |
| 258 | return MOBILE_IMAGE_MOUNTER_E_INVALID_ARG; | 258 | return MOBILE_IMAGE_MOUNTER_E_INVALID_ARG; |
| @@ -284,7 +284,7 @@ leave_unlock: | |||
| 284 | return res; | 284 | return res; |
| 285 | } | 285 | } |
| 286 | 286 | ||
| 287 | mobile_image_mounter_error_t mobile_image_mounter_hangup(mobile_image_mounter_client_t client) | 287 | LIBIMOBILEDEVICE_API mobile_image_mounter_error_t mobile_image_mounter_hangup(mobile_image_mounter_client_t client) |
| 288 | { | 288 | { |
| 289 | if (!client) { | 289 | if (!client) { |
| 290 | return MOBILE_IMAGE_MOUNTER_E_INVALID_ARG; | 290 | return MOBILE_IMAGE_MOUNTER_E_INVALID_ARG; |
