summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/Makefile.am1
-rw-r--r--include/libimobiledevice/mobile_image_mounter.h56
2 files changed, 57 insertions, 0 deletions
diff --git a/include/Makefile.am b/include/Makefile.am
index 2e20332..0cb3c50 100644
--- a/include/Makefile.am
+++ b/include/Makefile.am
@@ -5,5 +5,6 @@ nobase_include_HEADERS = libimobiledevice/libimobiledevice.h \
5 libimobiledevice/notification_proxy.h \ 5 libimobiledevice/notification_proxy.h \
6 libimobiledevice/installation_proxy.h \ 6 libimobiledevice/installation_proxy.h \
7 libimobiledevice/sbservices.h \ 7 libimobiledevice/sbservices.h \
8 libimobiledevice/mobile_image_mounter.h \
8 libimobiledevice/mobilesync.h \ 9 libimobiledevice/mobilesync.h \
9 libimobiledevice/mobilebackup.h 10 libimobiledevice/mobilebackup.h
diff --git a/include/libimobiledevice/mobile_image_mounter.h b/include/libimobiledevice/mobile_image_mounter.h
new file mode 100644
index 0000000..63dcb14
--- /dev/null
+++ b/include/libimobiledevice/mobile_image_mounter.h
@@ -0,0 +1,56 @@
1/**
2 * @file libimobiledevice/mobile_image_mounter.h
3 * @brief Implementation of the mobile image mounter service.
4 * \internal
5 *
6 * Copyright (c) 2010 Nikias Bassen All Rights Reserved.
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23#ifndef MOBILE_IMAGE_MOUNTER_H
24#define MOBILE_IMAGE_MOUNTER_H
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
30#include <libimobiledevice/libimobiledevice.h>
31
32/* Error Codes */
33#define MOBILE_IMAGE_MOUNTER_E_SUCCESS 0
34#define MOBILE_IMAGE_MOUNTER_E_INVALID_ARG -1
35#define MOBILE_IMAGE_MOUNTER_E_PLIST_ERROR -2
36#define MOBILE_IMAGE_MOUNTER_E_CONN_FAILED -3
37
38#define MOBILE_IMAGE_MOUNTER_E_UNKNOWN_ERROR -256
39
40typedef int16_t mobile_image_mounter_error_t;
41
42struct mobile_image_mounter_client_int;
43typedef struct mobile_image_mounter_client_int *mobile_image_mounter_client_t;
44
45/* Interface */
46mobile_image_mounter_error_t mobile_image_mounter_new(idevice_t device, uint16_t port, mobile_image_mounter_client_t *client);
47mobile_image_mounter_error_t mobile_image_mounter_free(mobile_image_mounter_client_t client);
48mobile_image_mounter_error_t mobile_image_mounter_lookup_image(mobile_image_mounter_client_t client, const char *image_type, plist_t *result);
49mobile_image_mounter_error_t mobile_image_mounter_mount_image(mobile_image_mounter_client_t client, const char *image_path, const char *image_signature, uint16_t signature_length, const char *image_type, plist_t *result);
50mobile_image_mounter_error_t mobile_image_mounter_hangup(mobile_image_mounter_client_t client);
51
52#ifdef __cplusplus
53}
54#endif
55
56#endif