diff options
Diffstat (limited to 'include/libiphone/lockdown.h')
| -rw-r--r-- | include/libiphone/lockdown.h | 51 |
1 files changed, 51 insertions, 0 deletions
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 | ||
| 25 | extern "C" { | ||
| 26 | #endif | ||
| 27 | |||
| 28 | #include <libiphone/libiphone.h> | ||
| 29 | |||
| 30 | struct lockdownd_client_int; | ||
| 31 | typedef struct lockdownd_client_int *lockdownd_client_t; | ||
| 32 | |||
| 33 | //lockdownd related functions | ||
| 34 | iphone_error_t lockdownd_new_client (iphone_device_t device, lockdownd_client_t *client); | ||
| 35 | iphone_error_t lockdownd_free_client(lockdownd_client_t client); | ||
| 36 | iphone_error_t lockdownd_query_type(lockdownd_client_t client); | ||
| 37 | iphone_error_t lockdownd_get_value(lockdownd_client_t client, const char *domain, const char *key, plist_t *value_node); | ||
| 38 | iphone_error_t lockdownd_start_service (lockdownd_client_t client, const char *service, int *port); | ||
| 39 | iphone_error_t lockdownd_stop_session(lockdownd_client_t client); | ||
| 40 | iphone_error_t lockdownd_send (lockdownd_client_t client, plist_t plist); | ||
| 41 | iphone_error_t lockdownd_recv (lockdownd_client_t client, plist_t *plist); | ||
| 42 | iphone_error_t lockdownd_pair(lockdownd_client_t client, char *uid, char *host_id); | ||
| 43 | iphone_error_t lockdownd_get_device_uid (lockdownd_client_t control, char **uid); | ||
| 44 | iphone_error_t lockdownd_get_device_name (lockdownd_client_t client, char **device_name); | ||
| 45 | iphone_error_t lockdownd_goodbye(lockdownd_client_t client); | ||
| 46 | |||
| 47 | #ifdef __cplusplus | ||
| 48 | } | ||
| 49 | #endif | ||
| 50 | |||
| 51 | #endif | ||
