diff options
Diffstat (limited to 'include/libiphone/notification_proxy.h')
| -rw-r--r-- | include/libiphone/notification_proxy.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/include/libiphone/notification_proxy.h b/include/libiphone/notification_proxy.h new file mode 100644 index 0000000..9412b4f --- /dev/null +++ b/include/libiphone/notification_proxy.h | |||
| @@ -0,0 +1,46 @@ | |||
| 1 | #ifndef NOTIFICATION_PROXY_H | ||
| 2 | #define NOTIFICATION_PROXY_H | ||
| 3 | |||
| 4 | #ifdef __cplusplus | ||
| 5 | extern "C" { | ||
| 6 | #endif | ||
| 7 | |||
| 8 | #include <libiphone/libiphone.h> | ||
| 9 | |||
| 10 | struct np_client_int; | ||
| 11 | typedef struct np_client_int *np_client_t; | ||
| 12 | |||
| 13 | // NotificationProxy related | ||
| 14 | // notifications for use with post_notification (client --> device) | ||
| 15 | #define NP_SYNC_WILL_START "com.apple.itunes-mobdev.syncWillStart" | ||
| 16 | #define NP_SYNC_DID_START "com.apple.itunes-mobdev.syncDidStart" | ||
| 17 | #define NP_SYNC_DID_FINISH "com.apple.itunes-mobdev.syncDidFinish" | ||
| 18 | |||
| 19 | // notifications for use with observe_notification (device --> client) | ||
| 20 | #define NP_SYNC_CANCEL_REQUEST "com.apple.itunes-client.syncCancelRequest" | ||
| 21 | #define NP_SYNC_SUSPEND_REQUEST "com.apple.itunes-client.syncSuspendRequest" | ||
| 22 | #define NP_SYNC_RESUME_REQUEST "com.apple.itunes-client.syncResumeRequest" | ||
| 23 | #define NP_PHONE_NUMBER_CHANGED "com.apple.mobile.lockdown.phone_number_changed" | ||
| 24 | #define NP_DEVICE_NAME_CHANGED "com.apple.mobile.lockdown.device_name_changed" | ||
| 25 | #define NP_ATTEMPTACTIVATION "com.apple.springboard.attemptactivation" | ||
| 26 | #define NP_DS_DOMAIN_CHANGED "com.apple.mobile.data_sync.domain_changed" | ||
| 27 | #define NP_APP_INSTALLED "com.apple.mobile.application_installed" | ||
| 28 | #define NP_APP_UNINSTALLED "com.apple.mobile.application_uninstalled" | ||
| 29 | |||
| 30 | iphone_error_t np_new_client ( iphone_device_t device, int dst_port, np_client_t *client ); | ||
| 31 | iphone_error_t np_free_client ( np_client_t client ); | ||
| 32 | |||
| 33 | iphone_error_t np_post_notification ( np_client_t client, const char *notification ); | ||
| 34 | |||
| 35 | iphone_error_t np_observe_notification ( np_client_t client, const char *notification ); | ||
| 36 | iphone_error_t np_observe_notifications ( np_client_t client, const char **notification_spec ); | ||
| 37 | |||
| 38 | typedef void (*np_notify_cb_t) ( const char *notification ); | ||
| 39 | |||
| 40 | iphone_error_t np_set_notify_callback ( np_client_t client, np_notify_cb_t notify_cb ); | ||
| 41 | |||
| 42 | #ifdef __cplusplus | ||
| 43 | } | ||
| 44 | #endif | ||
| 45 | |||
| 46 | #endif | ||
