diff options
Diffstat (limited to 'include/libiphone')
| -rw-r--r-- | include/libiphone/lockdown.h | 8 | ||||
| -rw-r--r-- | include/libiphone/notification_proxy.h | 29 |
2 files changed, 26 insertions, 11 deletions
diff --git a/include/libiphone/lockdown.h b/include/libiphone/lockdown.h index 31ffeab..459fbbd 100644 --- a/include/libiphone/lockdown.h +++ b/include/libiphone/lockdown.h | |||
| @@ -44,6 +44,8 @@ extern "C" { | |||
| 44 | #define LOCKDOWN_E_GET_VALUE_PROHIBITED -10 | 44 | #define LOCKDOWN_E_GET_VALUE_PROHIBITED -10 |
| 45 | #define LOCKDOWN_E_REMOVE_VALUE_PROHIBITED -11 | 45 | #define LOCKDOWN_E_REMOVE_VALUE_PROHIBITED -11 |
| 46 | #define LOCKDOWN_E_MUX_ERROR -12 | 46 | #define LOCKDOWN_E_MUX_ERROR -12 |
| 47 | #define LOCKDOWN_E_ACTIVATION_FAILED -13 | ||
| 48 | #define LOCKDOWN_E_PASSWORD_PROTECTED -14 | ||
| 47 | 49 | ||
| 48 | #define LOCKDOWN_E_UNKNOWN_ERROR -256 | 50 | #define LOCKDOWN_E_UNKNOWN_ERROR -256 |
| 49 | 51 | ||
| @@ -53,8 +55,9 @@ struct lockdownd_client_int; | |||
| 53 | typedef struct lockdownd_client_int *lockdownd_client_t; | 55 | typedef struct lockdownd_client_int *lockdownd_client_t; |
| 54 | 56 | ||
| 55 | /* Interface */ | 57 | /* Interface */ |
| 56 | lockdownd_error_t lockdownd_client_new(iphone_device_t device, lockdownd_client_t *client); | 58 | lockdownd_error_t lockdownd_client_new(iphone_device_t device, lockdownd_client_t *client, const char *label); |
| 57 | lockdownd_error_t lockdownd_client_free(lockdownd_client_t client); | 59 | lockdownd_error_t lockdownd_client_free(lockdownd_client_t client); |
| 60 | void lockdownd_client_set_label(lockdownd_client_t client, const char *label); | ||
| 58 | lockdownd_error_t lockdownd_query_type(lockdownd_client_t client); | 61 | lockdownd_error_t lockdownd_query_type(lockdownd_client_t client); |
| 59 | lockdownd_error_t lockdownd_get_value(lockdownd_client_t client, const char *domain, const char *key, plist_t *value); | 62 | lockdownd_error_t lockdownd_get_value(lockdownd_client_t client, const char *domain, const char *key, plist_t *value); |
| 60 | lockdownd_error_t lockdownd_set_value(lockdownd_client_t client, const char *domain, const char *key, plist_t value); | 63 | lockdownd_error_t lockdownd_set_value(lockdownd_client_t client, const char *domain, const char *key, plist_t value); |
| @@ -65,6 +68,9 @@ lockdownd_error_t lockdownd_send(lockdownd_client_t client, plist_t plist); | |||
| 65 | lockdownd_error_t lockdownd_recv(lockdownd_client_t client, plist_t *plist); | 68 | lockdownd_error_t lockdownd_recv(lockdownd_client_t client, plist_t *plist); |
| 66 | lockdownd_error_t lockdownd_pair(lockdownd_client_t client, char *host_id); | 69 | lockdownd_error_t lockdownd_pair(lockdownd_client_t client, char *host_id); |
| 67 | lockdownd_error_t lockdownd_validate_pair(lockdownd_client_t client, char *host_id); | 70 | lockdownd_error_t lockdownd_validate_pair(lockdownd_client_t client, char *host_id); |
| 71 | lockdownd_error_t lockdownd_unpair(lockdownd_client_t client, char *host_id); | ||
| 72 | lockdownd_error_t lockdownd_activate(lockdownd_client_t client, plist_t activation_record); | ||
| 73 | lockdownd_error_t lockdownd_deactivate(lockdownd_client_t client); | ||
| 68 | lockdownd_error_t lockdownd_get_device_uuid(lockdownd_client_t control, char **uuid); | 74 | lockdownd_error_t lockdownd_get_device_uuid(lockdownd_client_t control, char **uuid); |
| 69 | lockdownd_error_t lockdownd_get_device_name(lockdownd_client_t client, char **device_name); | 75 | lockdownd_error_t lockdownd_get_device_name(lockdownd_client_t client, char **device_name); |
| 70 | lockdownd_error_t lockdownd_enter_recovery(lockdownd_client_t client); | 76 | lockdownd_error_t lockdownd_enter_recovery(lockdownd_client_t client); |
diff --git a/include/libiphone/notification_proxy.h b/include/libiphone/notification_proxy.h index 96af5fd..4c02f55 100644 --- a/include/libiphone/notification_proxy.h +++ b/include/libiphone/notification_proxy.h | |||
| @@ -45,16 +45,25 @@ typedef int16_t np_error_t; | |||
| 45 | #define NP_SYNC_DID_FINISH "com.apple.itunes-mobdev.syncDidFinish" | 45 | #define NP_SYNC_DID_FINISH "com.apple.itunes-mobdev.syncDidFinish" |
| 46 | 46 | ||
| 47 | /* Notification IDs for use with observe_notification (device --> client) */ | 47 | /* Notification IDs for use with observe_notification (device --> client) */ |
| 48 | #define NP_SYNC_CANCEL_REQUEST "com.apple.itunes-client.syncCancelRequest" | 48 | #define NP_SYNC_CANCEL_REQUEST "com.apple.itunes-client.syncCancelRequest" |
| 49 | #define NP_SYNC_SUSPEND_REQUEST "com.apple.itunes-client.syncSuspendRequest" | 49 | #define NP_SYNC_SUSPEND_REQUEST "com.apple.itunes-client.syncSuspendRequest" |
| 50 | #define NP_SYNC_RESUME_REQUEST "com.apple.itunes-client.syncResumeRequest" | 50 | #define NP_SYNC_RESUME_REQUEST "com.apple.itunes-client.syncResumeRequest" |
| 51 | #define NP_PHONE_NUMBER_CHANGED "com.apple.mobile.lockdown.phone_number_changed" | 51 | #define NP_PHONE_NUMBER_CHANGED "com.apple.mobile.lockdown.phone_number_changed" |
| 52 | #define NP_DEVICE_NAME_CHANGED "com.apple.mobile.lockdown.device_name_changed" | 52 | #define NP_DEVICE_NAME_CHANGED "com.apple.mobile.lockdown.device_name_changed" |
| 53 | #define NP_ATTEMPTACTIVATION "com.apple.springboard.attemptactivation" | 53 | #define NP_TRUSTED_HOST_ATTACHED "com.apple.mobile.lockdown.trusted_host_attached" |
| 54 | #define NP_DS_DOMAIN_CHANGED "com.apple.mobile.data_sync.domain_changed" | 54 | #define NP_HOST_DETACHED "com.apple.mobile.lockdown.host_detached" |
| 55 | #define NP_APP_INSTALLED "com.apple.mobile.application_installed" | 55 | #define NP_HOST_ATTACHED "com.apple.mobile.lockdown.host_attached" |
| 56 | #define NP_APP_UNINSTALLED "com.apple.mobile.application_uninstalled" | 56 | #define NP_REGISTRATION_FAILED "com.apple.mobile.lockdown.registration_failed" |
| 57 | #define NP_ITDBPREP_DID_END "com.apple.itdbprep.notification.didEnd" | 57 | #define NP_ACTIVATION_STATE "com.apple.mobile.lockdown.activation_state" |
| 58 | #define NP_BRICK_STATE "com.apple.mobile.lockdown.brick_state" | ||
| 59 | #define NP_ATTEMPTACTIVATION "com.apple.springboard.attemptactivation" | ||
| 60 | #define NP_DS_DOMAIN_CHANGED "com.apple.mobile.data_sync.domain_changed" | ||
| 61 | #define NP_APP_INSTALLED "com.apple.mobile.application_installed" | ||
| 62 | #define NP_APP_UNINSTALLED "com.apple.mobile.application_uninstalled" | ||
| 63 | #define NP_ITDBPREP_DID_END "com.apple.itdbprep.notification.didEnd" | ||
| 64 | #define NP_LANGUAGE_CHANGED "com.apple.language.changed" | ||
| 65 | #define NP_DEV_IMAGE_MOUNTED "com.apple.mobile.developer_image_mounted" | ||
| 66 | #define NP_ADDRESS_BOOK_PREF_CHANGED "com.apple.AddressBook.PreferenceChanged" | ||
| 58 | 67 | ||
| 59 | struct np_client_int; | 68 | struct np_client_int; |
| 60 | typedef struct np_client_int *np_client_t; | 69 | typedef struct np_client_int *np_client_t; |
