diff options
Diffstat (limited to 'include/libiphone/notification_proxy.h')
| -rw-r--r-- | include/libiphone/notification_proxy.h | 39 |
1 files changed, 25 insertions, 14 deletions
diff --git a/include/libiphone/notification_proxy.h b/include/libiphone/notification_proxy.h index 96af5fd..b58fc68 100644 --- a/include/libiphone/notification_proxy.h +++ b/include/libiphone/notification_proxy.h | |||
| @@ -40,21 +40,32 @@ extern "C" { | |||
| 40 | typedef int16_t np_error_t; | 40 | typedef int16_t np_error_t; |
| 41 | 41 | ||
| 42 | /* Notification IDs for use with post_notification (client --> device) */ | 42 | /* Notification IDs for use with post_notification (client --> device) */ |
| 43 | #define NP_SYNC_WILL_START "com.apple.itunes-mobdev.syncWillStart" | 43 | #define NP_SYNC_WILL_START "com.apple.itunes-mobdev.syncWillStart" |
| 44 | #define NP_SYNC_DID_START "com.apple.itunes-mobdev.syncDidStart" | 44 | #define NP_SYNC_DID_START "com.apple.itunes-mobdev.syncDidStart" |
| 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_TIMEZONE_CHANGED "com.apple.mobile.lockdown.timezone_changed" |
| 54 | #define NP_DS_DOMAIN_CHANGED "com.apple.mobile.data_sync.domain_changed" | 54 | #define NP_TRUSTED_HOST_ATTACHED "com.apple.mobile.lockdown.trusted_host_attached" |
| 55 | #define NP_APP_INSTALLED "com.apple.mobile.application_installed" | 55 | #define NP_HOST_DETACHED "com.apple.mobile.lockdown.host_detached" |
| 56 | #define NP_APP_UNINSTALLED "com.apple.mobile.application_uninstalled" | 56 | #define NP_HOST_ATTACHED "com.apple.mobile.lockdown.host_attached" |
| 57 | #define NP_ITDBPREP_DID_END "com.apple.itdbprep.notification.didEnd" | 57 | #define NP_REGISTRATION_FAILED "com.apple.mobile.lockdown.registration_failed" |
| 58 | #define NP_ACTIVATION_STATE "com.apple.mobile.lockdown.activation_state" | ||
| 59 | #define NP_BRICK_STATE "com.apple.mobile.lockdown.brick_state" | ||
| 60 | #define NP_DS_DOMAIN_CHANGED "com.apple.mobile.data_sync.domain_changed" | ||
| 61 | #define NP_BACKUP_DOMAIN_CHANGED "com.apple.mobile.backup.domain_changed" | ||
| 62 | #define NP_APP_INSTALLED "com.apple.mobile.application_installed" | ||
| 63 | #define NP_APP_UNINSTALLED "com.apple.mobile.application_uninstalled" | ||
| 64 | #define NP_DEV_IMAGE_MOUNTED "com.apple.mobile.developer_image_mounted" | ||
| 65 | #define NP_ATTEMPTACTIVATION "com.apple.springboard.attemptactivation" | ||
| 66 | #define NP_ITDBPREP_DID_END "com.apple.itdbprep.notification.didEnd" | ||
| 67 | #define NP_LANGUAGE_CHANGED "com.apple.language.changed" | ||
| 68 | #define NP_ADDRESS_BOOK_PREF_CHANGED "com.apple.AddressBook.PreferenceChanged" | ||
| 58 | 69 | ||
| 59 | struct np_client_int; | 70 | struct np_client_int; |
| 60 | typedef struct np_client_int *np_client_t; | 71 | typedef struct np_client_int *np_client_t; |
| @@ -62,7 +73,7 @@ typedef struct np_client_int *np_client_t; | |||
| 62 | typedef void (*np_notify_cb_t) (const char *notification); | 73 | typedef void (*np_notify_cb_t) (const char *notification); |
| 63 | 74 | ||
| 64 | /* Interface */ | 75 | /* Interface */ |
| 65 | np_error_t np_client_new(iphone_device_t device, int dst_port, np_client_t *client); | 76 | np_error_t np_client_new(iphone_device_t device, uint16_t port, np_client_t *client); |
| 66 | np_error_t np_client_free(np_client_t client); | 77 | np_error_t np_client_free(np_client_t client); |
| 67 | np_error_t np_post_notification(np_client_t client, const char *notification); | 78 | np_error_t np_post_notification(np_client_t client, const char *notification); |
| 68 | np_error_t np_observe_notification(np_client_t client, const char *notification); | 79 | np_error_t np_observe_notification(np_client_t client, const char *notification); |
