summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/Makefile.am2
-rw-r--r--include/libiphone/libiphone.h27
-rw-r--r--include/libiphone/lockdown.h51
3 files changed, 57 insertions, 23 deletions
diff --git a/include/Makefile.am b/include/Makefile.am
index d8ae1e4..98792de 100644
--- a/include/Makefile.am
+++ b/include/Makefile.am
@@ -1 +1 @@
nobase_include_HEADERS = libiphone/libiphone.h libiphone/afc.h libiphone/notification_proxy.h nobase_include_HEADERS = libiphone/libiphone.h libiphone/lockdown.h libiphone/afc.h libiphone/notification_proxy.h
diff --git a/include/libiphone/libiphone.h b/include/libiphone/libiphone.h
index 456f000..9e983bb 100644
--- a/include/libiphone/libiphone.h
+++ b/include/libiphone/libiphone.h
@@ -57,9 +57,6 @@ typedef int16_t iphone_error_t;
57struct iphone_device_int; 57struct iphone_device_int;
58typedef struct iphone_device_int *iphone_device_t; 58typedef struct iphone_device_int *iphone_device_t;
59 59
60struct iphone_lckd_client_int;
61typedef struct iphone_lckd_client_int *iphone_lckd_client_t;
62
63struct iphone_msync_client_int; 60struct iphone_msync_client_int;
64typedef struct iphone_msync_client_int *iphone_msync_client_t; 61typedef struct iphone_msync_client_int *iphone_msync_client_t;
65 62
@@ -74,29 +71,15 @@ void iphone_set_debug_mask(uint16_t mask);
74void iphone_set_debug(int level); 71void iphone_set_debug(int level);
75 72
76//device related functions 73//device related functions
77iphone_error_t iphone_get_device ( iphone_device_t *device ); 74iphone_error_t iphone_get_device(iphone_device_t *device);
78iphone_error_t iphone_get_device_by_uuid ( iphone_device_t *device, const char *uuid ); 75iphone_error_t iphone_get_device_by_uuid(iphone_device_t *device, const char *uuid);
79iphone_error_t iphone_free_device ( iphone_device_t device ); 76iphone_error_t iphone_free_device(iphone_device_t device);
80 77uint32_t iphone_get_device_handle(iphone_device_t device);
81uint32_t iphone_get_device_handle ( iphone_device_t device );
82
83//lockdownd related functions
84iphone_error_t lockdownd_get_device_uid(iphone_lckd_client_t control, char **uid);
85iphone_error_t lockdownd_get_device_name ( iphone_lckd_client_t client, char **device_name );
86iphone_error_t iphone_lckd_new_client ( iphone_device_t device, iphone_lckd_client_t *client );
87iphone_error_t iphone_lckd_free_client( iphone_lckd_client_t client );
88
89iphone_error_t iphone_lckd_start_service ( iphone_lckd_client_t client, const char *service, int *port );
90iphone_error_t iphone_lckd_recv ( iphone_lckd_client_t client, plist_t* plist);
91iphone_error_t iphone_lckd_send ( iphone_lckd_client_t client, plist_t plist);
92
93
94 78
95iphone_error_t iphone_msync_new_client(iphone_device_t device, int dst_port, 79iphone_error_t iphone_msync_new_client(iphone_device_t device, int dst_port,
96 iphone_msync_client_t * client); 80 iphone_msync_client_t * client);
97iphone_error_t iphone_msync_free_client(iphone_msync_client_t client); 81iphone_error_t iphone_msync_free_client(iphone_msync_client_t client);
98 82iphone_error_t iphone_msync_recv(iphone_msync_client_t client, plist_t *plist);
99iphone_error_t iphone_msync_recv(iphone_msync_client_t client, plist_t * plist);
100iphone_error_t iphone_msync_send(iphone_msync_client_t client, plist_t plist); 83iphone_error_t iphone_msync_send(iphone_msync_client_t client, plist_t plist);
101 84
102#ifdef __cplusplus 85#ifdef __cplusplus
diff --git a/include/libiphone/lockdown.h b/include/libiphone/lockdown.h
new file mode 100644
index 0000000..805c90b
--- /dev/null
+++ b/include/libiphone/lockdown.h
@@ -0,0 +1,51 @@
1/*
2 * lockdownd.h
3 *
4 * Copyright (c) 2009 Martin S. All Rights Reserved.
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20
21#ifndef LOCKDOWN_H
22#define LOCKDOWN_H
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
28#include <libiphone/libiphone.h>
29
30struct lockdownd_client_int;
31typedef struct lockdownd_client_int *lockdownd_client_t;
32
33//lockdownd related functions
34iphone_error_t lockdownd_new_client (iphone_device_t device, lockdownd_client_t *client);
35iphone_error_t lockdownd_free_client(lockdownd_client_t client);
36iphone_error_t lockdownd_query_type(lockdownd_client_t client);
37iphone_error_t lockdownd_get_value(lockdownd_client_t client, const char *domain, const char *key, plist_t *value_node);
38iphone_error_t lockdownd_start_service (lockdownd_client_t client, const char *service, int *port);
39iphone_error_t lockdownd_stop_session(lockdownd_client_t client);
40iphone_error_t lockdownd_send (lockdownd_client_t client, plist_t plist);
41iphone_error_t lockdownd_recv (lockdownd_client_t client, plist_t *plist);
42iphone_error_t lockdownd_pair(lockdownd_client_t client, char *uid, char *host_id);
43iphone_error_t lockdownd_get_device_uid (lockdownd_client_t control, char **uid);
44iphone_error_t lockdownd_get_device_name (lockdownd_client_t client, char **device_name);
45iphone_error_t lockdownd_goodbye(lockdownd_client_t client);
46
47#ifdef __cplusplus
48}
49#endif
50
51#endif