summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dev/main.c3
-rw-r--r--include/libiphone/notification_proxy.h1
-rw-r--r--src/NotificationProxy.h3
3 files changed, 5 insertions, 2 deletions
diff --git a/dev/main.c b/dev/main.c
index 33ebc2d..b4e5c34 100644
--- a/dev/main.c
+++ b/dev/main.c
@@ -113,10 +113,11 @@ int main(int argc, char *argv[])
113 printf("ERROR: Notification proxy could not be started.\n"); 113 printf("ERROR: Notification proxy could not be started.\n");
114 } 114 }
115 if (gnp) { 115 if (gnp) {
116 const char *nspec[4] = { 116 const char *nspec[5] = {
117 NP_SYNC_CANCEL_REQUEST, 117 NP_SYNC_CANCEL_REQUEST,
118 NP_SYNC_SUSPEND_REQUEST, 118 NP_SYNC_SUSPEND_REQUEST,
119 NP_SYNC_RESUME_REQUEST, 119 NP_SYNC_RESUME_REQUEST,
120 NP_ITDBPREP_DID_END,
120 NULL 121 NULL
121 }; 122 };
122 np_observe_notifications(gnp, nspec); 123 np_observe_notifications(gnp, nspec);
diff --git a/include/libiphone/notification_proxy.h b/include/libiphone/notification_proxy.h
index 8efb483..14d1b39 100644
--- a/include/libiphone/notification_proxy.h
+++ b/include/libiphone/notification_proxy.h
@@ -46,6 +46,7 @@ typedef struct np_client_int *np_client_t;
46#define NP_DS_DOMAIN_CHANGED "com.apple.mobile.data_sync.domain_changed" 46#define NP_DS_DOMAIN_CHANGED "com.apple.mobile.data_sync.domain_changed"
47#define NP_APP_INSTALLED "com.apple.mobile.application_installed" 47#define NP_APP_INSTALLED "com.apple.mobile.application_installed"
48#define NP_APP_UNINSTALLED "com.apple.mobile.application_uninstalled" 48#define NP_APP_UNINSTALLED "com.apple.mobile.application_uninstalled"
49#define NP_ITDBPREP_DID_END "com.apple.itdbprep.notification.didEnd"
49 50
50iphone_error_t np_new_client ( iphone_device_t device, int dst_port, np_client_t *client ); 51iphone_error_t np_new_client ( iphone_device_t device, int dst_port, np_client_t *client );
51iphone_error_t np_free_client ( np_client_t client ); 52iphone_error_t np_free_client ( np_client_t client );
diff --git a/src/NotificationProxy.h b/src/NotificationProxy.h
index a10cde4..02f4251 100644
--- a/src/NotificationProxy.h
+++ b/src/NotificationProxy.h
@@ -28,7 +28,7 @@ struct np_client_int {
28 GThread *notifier; 28 GThread *notifier;
29}; 29};
30 30
31static const char *np_default_notifications[10] = { 31static const char *np_default_notifications[11] = {
32 NP_SYNC_SUSPEND_REQUEST, 32 NP_SYNC_SUSPEND_REQUEST,
33 NP_SYNC_RESUME_REQUEST, 33 NP_SYNC_RESUME_REQUEST,
34 NP_PHONE_NUMBER_CHANGED, 34 NP_PHONE_NUMBER_CHANGED,
@@ -38,6 +38,7 @@ static const char *np_default_notifications[10] = {
38 NP_DS_DOMAIN_CHANGED, 38 NP_DS_DOMAIN_CHANGED,
39 NP_APP_INSTALLED, 39 NP_APP_INSTALLED,
40 NP_APP_UNINSTALLED, 40 NP_APP_UNINSTALLED,
41 NP_ITDBPREP_DID_END,
41 NULL 42 NULL
42}; 43};
43 44