summaryrefslogtreecommitdiffstats
path: root/src/NotificationProxy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/NotificationProxy.c')
-rw-r--r--src/NotificationProxy.c20
1 files changed, 2 insertions, 18 deletions
diff --git a/src/NotificationProxy.c b/src/NotificationProxy.c
index e2c1faa..b73b521 100644
--- a/src/NotificationProxy.c
+++ b/src/NotificationProxy.c
@@ -144,10 +144,6 @@ np_error_t np_client_free(np_client_t client)
144 144
145/** Sends a notification to the device's Notification Proxy. 145/** Sends a notification to the device's Notification Proxy.
146 * 146 *
147 * notification messages seen so far:
148 * com.apple.itunes-mobdev.syncWillStart
149 * com.apple.itunes-mobdev.syncDidStart
150 *
151 * @param client The client to send to 147 * @param client The client to send to
152 * @param notification The notification message to send 148 * @param notification The notification message to send
153 * 149 *
@@ -212,22 +208,10 @@ np_error_t np_observe_notification( np_client_t client, const char *notification
212 208
213/** Notifies the iphone to send a notification on specified events. 209/** Notifies the iphone to send a notification on specified events.
214 * 210 *
215 * observation messages seen so far:
216 * com.apple.itunes-client.syncCancelRequest
217 * com.apple.itunes-client.syncSuspendRequest
218 * com.apple.itunes-client.syncResumeRequest
219 * com.apple.mobile.lockdown.phone_number_changed
220 * com.apple.mobile.lockdown.device_name_changed
221 * com.apple.springboard.attemptactivation
222 * com.apple.mobile.data_sync.domain_changed
223 * com.apple.mobile.application_installed
224 * com.apple.mobile.application_uninstalled
225 *
226 * @param client The client to send to 211 * @param client The client to send to
227 * @param notification_spec Specification of the notifications that should be 212 * @param notification_spec Specification of the notifications that should be
228 * observed. This is expected to be an array of const char* that MUST have a 213 * observed. This is expected to be an array of const char* that MUST have a
229 * terminating NULL entry. However this parameter can be NULL; in this case, 214 * terminating NULL entry.
230 * the default set of notifications will be used.
231 * 215 *
232 * @return NP_E_SUCCESS on success, NP_E_INVALID_ARG when client is null, 216 * @return NP_E_SUCCESS on success, NP_E_INVALID_ARG when client is null,
233 * or an error returned by np_observe_notification. 217 * or an error returned by np_observe_notification.
@@ -243,7 +227,7 @@ np_error_t np_observe_notifications(np_client_t client, const char **notificatio
243 } 227 }
244 228
245 if (!notifications) { 229 if (!notifications) {
246 notifications = np_default_notifications; 230 return NP_E_INVALID_ARG;
247 } 231 }
248 232
249 while (notifications[i]) { 233 while (notifications[i]) {