summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2010-01-08 13:34:04 +0100
committerGravatar Martin Szulecki2010-01-08 13:34:04 +0100
commit277e526c6b1fd10ff4661afb7e1d6dc022dc0225 (patch)
treef9f1cb8442295151653ace9a8b99557e38a5a0f3
parent0ac0908fd09627e789c7bb2255aed8109ca2e47f (diff)
downloadlibimobiledevice-277e526c6b1fd10ff4661afb7e1d6dc022dc0225.tar.gz
libimobiledevice-277e526c6b1fd10ff4661afb7e1d6dc022dc0225.tar.bz2
Add more known notification ids for notification_proxy
-rw-r--r--include/libiphone/notification_proxy.h29
-rw-r--r--src/NotificationProxy.c15
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;
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
59struct np_client_int; 68struct np_client_int;
60typedef struct np_client_int *np_client_t; 69typedef 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
@@ -169,10 +169,6 @@ np_error_t np_client_free(np_client_t client)
169 169
170/** Sends a notification to the device's Notification Proxy. 170/** Sends a notification to the device's Notification Proxy.
171 * 171 *
172 * notification messages seen so far:
173 * com.apple.itunes-mobdev.syncWillStart
174 * com.apple.itunes-mobdev.syncDidStart
175 *
176 * @param client The client to send to 172 * @param client The client to send to
177 * @param notification The notification message to send 173 * @param notification The notification message to send
178 * 174 *
@@ -237,17 +233,6 @@ np_error_t np_observe_notification( np_client_t client, const char *notification
237 233
238/** Notifies the iphone to send a notification on specified events. 234/** Notifies the iphone to send a notification on specified events.
239 * 235 *
240 * observation messages seen so far:
241 * com.apple.itunes-client.syncCancelRequest
242 * com.apple.itunes-client.syncSuspendRequest
243 * com.apple.itunes-client.syncResumeRequest
244 * com.apple.mobile.lockdown.phone_number_changed
245 * com.apple.mobile.lockdown.device_name_changed
246 * com.apple.springboard.attemptactivation
247 * com.apple.mobile.data_sync.domain_changed
248 * com.apple.mobile.application_installed
249 * com.apple.mobile.application_uninstalled
250 *
251 * @param client The client to send to 236 * @param client The client to send to
252 * @param notification_spec Specification of the notifications that should be 237 * @param notification_spec Specification of the notifications that should be
253 * observed. This is expected to be an array of const char* that MUST have a 238 * observed. This is expected to be an array of const char* that MUST have a