summaryrefslogtreecommitdiffstats
path: root/include/libimobiledevice
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2010-11-05 20:39:07 +0100
committerGravatar Nikias Bassen2010-11-05 20:39:07 +0100
commit139306caebdcc9e4383795227ca3662d484e04d5 (patch)
tree90a0556d014fbd362b602e10ce285f85adc6fd7f /include/libimobiledevice
parenteac909b522bb405cd34a8fb48259ea3952d2360a (diff)
downloadlibimobiledevice-139306caebdcc9e4383795227ca3662d484e04d5.tar.gz
libimobiledevice-139306caebdcc9e4383795227ca3662d484e04d5.tar.bz2
Add new house_arrest service including small test tool
Diffstat (limited to 'include/libimobiledevice')
-rw-r--r--include/libimobiledevice/house_arrest.h64
1 files changed, 64 insertions, 0 deletions
diff --git a/include/libimobiledevice/house_arrest.h b/include/libimobiledevice/house_arrest.h
new file mode 100644
index 0000000..04290f1
--- /dev/null
+++ b/include/libimobiledevice/house_arrest.h
@@ -0,0 +1,64 @@
1/**
2 * @file libimobiledevice/house_arrest.h
3 * @brief Access AppStore application folders and their contents.
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 HOUSE_ARREST_H
24#define HOUSE_ARREST_H
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
30#include <libimobiledevice/libimobiledevice.h>
31#include <libimobiledevice/afc.h>
32
33/** @name Error Codes */
34/*@{*/
35#define HOUSE_ARREST_E_SUCCESS 0
36#define HOUSE_ARREST_E_INVALID_ARG -1
37#define HOUSE_ARREST_E_PLIST_ERROR -2
38#define HOUSE_ARREST_E_CONN_FAILED -3
39#define HOUSE_ARREST_E_INVALID_MODE -4
40
41#define HOUSE_ARREST_E_UNKNOWN_ERROR -256
42/*@}*/
43
44/** Represents an error code. */
45typedef int16_t house_arrest_error_t;
46
47typedef struct house_arrest_client_private house_arrest_client_private;
48typedef house_arrest_client_private *house_arrest_client_t; /**< The client handle. */
49
50/* Interface */
51house_arrest_error_t house_arrest_client_new(idevice_t device, uint16_t port, house_arrest_client_t *client);
52house_arrest_error_t house_arrest_client_free(house_arrest_client_t client);
53
54house_arrest_error_t house_arrest_send_request(house_arrest_client_t client, plist_t dict);
55house_arrest_error_t house_arrest_send_command(house_arrest_client_t client, const char *command, const char *appid);
56house_arrest_error_t house_arrest_get_result(house_arrest_client_t client, plist_t *dict);
57
58afc_error_t afc_client_new_from_house_arrest_client(house_arrest_client_t client, afc_client_t *afc_client);
59
60#ifdef __cplusplus
61}
62#endif
63
64#endif