From 277e526c6b1fd10ff4661afb7e1d6dc022dc0225 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Fri, 8 Jan 2010 13:34:04 +0100 Subject: Add more known notification ids for notification_proxy --- include/libiphone/notification_proxy.h | 29 +++++++++++++++++++---------- src/NotificationProxy.c | 15 --------------- 2 files changed, 19 insertions(+), 25 deletions(-) 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; #define NP_SYNC_DID_FINISH "com.apple.itunes-mobdev.syncDidFinish" /* Notification IDs for use with observe_notification (device --> client) */ -#define NP_SYNC_CANCEL_REQUEST "com.apple.itunes-client.syncCancelRequest" -#define NP_SYNC_SUSPEND_REQUEST "com.apple.itunes-client.syncSuspendRequest" -#define NP_SYNC_RESUME_REQUEST "com.apple.itunes-client.syncResumeRequest" -#define NP_PHONE_NUMBER_CHANGED "com.apple.mobile.lockdown.phone_number_changed" -#define NP_DEVICE_NAME_CHANGED "com.apple.mobile.lockdown.device_name_changed" -#define NP_ATTEMPTACTIVATION "com.apple.springboard.attemptactivation" -#define NP_DS_DOMAIN_CHANGED "com.apple.mobile.data_sync.domain_changed" -#define NP_APP_INSTALLED "com.apple.mobile.application_installed" -#define NP_APP_UNINSTALLED "com.apple.mobile.application_uninstalled" -#define NP_ITDBPREP_DID_END "com.apple.itdbprep.notification.didEnd" +#define NP_SYNC_CANCEL_REQUEST "com.apple.itunes-client.syncCancelRequest" +#define NP_SYNC_SUSPEND_REQUEST "com.apple.itunes-client.syncSuspendRequest" +#define NP_SYNC_RESUME_REQUEST "com.apple.itunes-client.syncResumeRequest" +#define NP_PHONE_NUMBER_CHANGED "com.apple.mobile.lockdown.phone_number_changed" +#define NP_DEVICE_NAME_CHANGED "com.apple.mobile.lockdown.device_name_changed" +#define NP_TRUSTED_HOST_ATTACHED "com.apple.mobile.lockdown.trusted_host_attached" +#define NP_HOST_DETACHED "com.apple.mobile.lockdown.host_detached" +#define NP_HOST_ATTACHED "com.apple.mobile.lockdown.host_attached" +#define NP_REGISTRATION_FAILED "com.apple.mobile.lockdown.registration_failed" +#define NP_ACTIVATION_STATE "com.apple.mobile.lockdown.activation_state" +#define NP_BRICK_STATE "com.apple.mobile.lockdown.brick_state" +#define NP_ATTEMPTACTIVATION "com.apple.springboard.attemptactivation" +#define NP_DS_DOMAIN_CHANGED "com.apple.mobile.data_sync.domain_changed" +#define NP_APP_INSTALLED "com.apple.mobile.application_installed" +#define NP_APP_UNINSTALLED "com.apple.mobile.application_uninstalled" +#define NP_ITDBPREP_DID_END "com.apple.itdbprep.notification.didEnd" +#define NP_LANGUAGE_CHANGED "com.apple.language.changed" +#define NP_DEV_IMAGE_MOUNTED "com.apple.mobile.developer_image_mounted" +#define NP_ADDRESS_BOOK_PREF_CHANGED "com.apple.AddressBook.PreferenceChanged" struct np_client_int; typedef struct np_client_int *np_client_t; diff --git a/src/NotificationProxy.c b/src/NotificationProxy.c index 160ac4a..5ae59f2 100644 --- a/src/NotificationProxy.c +++ b/src/NotificationProxy.c @@ -168,10 +168,6 @@ np_error_t np_client_free(np_client_t client) } /** Sends a notification to the device's Notification Proxy. - * - * notification messages seen so far: - * com.apple.itunes-mobdev.syncWillStart - * com.apple.itunes-mobdev.syncDidStart * * @param client The client to send to * @param notification The notification message to send @@ -236,17 +232,6 @@ np_error_t np_observe_notification( np_client_t client, const char *notification } /** Notifies the iphone to send a notification on specified events. - * - * observation messages seen so far: - * com.apple.itunes-client.syncCancelRequest - * com.apple.itunes-client.syncSuspendRequest - * com.apple.itunes-client.syncResumeRequest - * com.apple.mobile.lockdown.phone_number_changed - * com.apple.mobile.lockdown.device_name_changed - * com.apple.springboard.attemptactivation - * com.apple.mobile.data_sync.domain_changed - * com.apple.mobile.application_installed - * com.apple.mobile.application_uninstalled * * @param client The client to send to * @param notification_spec Specification of the notifications that should be -- cgit v1.1-32-gdbae