diff options
| author | 2009-07-24 16:35:28 +0200 | |
|---|---|---|
| committer | 2009-07-24 16:35:28 +0200 | |
| commit | f995c63e1bc56dd2d098a06f130d55334979f38f (patch) | |
| tree | 5573d03fbfbe8d20ded5252559e96022e33f01ce | |
| parent | cd1aa1c8107c1609746c12a6cd6777bd053167df (diff) | |
| download | libimobiledevice-f995c63e1bc56dd2d098a06f130d55334979f38f.tar.gz libimobiledevice-f995c63e1bc56dd2d098a06f130d55334979f38f.tar.bz2 | |
Add new NP_ITDBPREP_DID_END notification signaling music db refresh
| -rw-r--r-- | dev/main.c | 3 | ||||
| -rw-r--r-- | include/libiphone/notification_proxy.h | 1 | ||||
| -rw-r--r-- | src/NotificationProxy.h | 3 |
3 files changed, 5 insertions, 2 deletions
| @@ -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 | ||
| 50 | iphone_error_t np_new_client ( iphone_device_t device, int dst_port, np_client_t *client ); | 51 | iphone_error_t np_new_client ( iphone_device_t device, int dst_port, np_client_t *client ); |
| 51 | iphone_error_t np_free_client ( np_client_t client ); | 52 | iphone_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 | ||
| 31 | static const char *np_default_notifications[10] = { | 31 | static 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 | ||
