diff options
| author | 2009-05-10 08:27:53 -0700 | |
|---|---|---|
| committer | 2009-05-10 08:28:04 -0700 | |
| commit | 1351b686d450112ae55d26d81d9d59c5f542f12e (patch) | |
| tree | 442c7e48eb83f96a22f7c6d889e8fe26151d6cba /include/libiphone | |
| parent | e91caeb1c9929f9dc8af747bb3a2e52ec06b03af (diff) | |
| download | libimobiledevice-1351b686d450112ae55d26d81d9d59c5f542f12e.tar.gz libimobiledevice-1351b686d450112ae55d26d81d9d59c5f542f12e.tar.bz2 | |
NotificationProxy support added.0.9.0
[#27 state:resolved]
Signed-off-by: Matt Colyer <matt@colyer.name>
Diffstat (limited to 'include/libiphone')
| -rw-r--r-- | include/libiphone/libiphone.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/include/libiphone/libiphone.h b/include/libiphone/libiphone.h index a45319f..dedc78f 100644 --- a/include/libiphone/libiphone.h +++ b/include/libiphone/libiphone.h | |||
| @@ -101,6 +101,7 @@ iphone_error_t iphone_free_device ( iphone_device_t device ); | |||
| 101 | 101 | ||
| 102 | //lockdownd related functions | 102 | //lockdownd related functions |
| 103 | iphone_error_t lockdownd_get_device_uid(iphone_lckd_client_t control, char **uid); | 103 | iphone_error_t lockdownd_get_device_uid(iphone_lckd_client_t control, char **uid); |
| 104 | iphone_error_t lockdownd_get_device_name ( iphone_lckd_client_t client, char **device_name ); | ||
| 104 | iphone_error_t iphone_lckd_new_client ( iphone_device_t device, iphone_lckd_client_t *client ); | 105 | iphone_error_t iphone_lckd_new_client ( iphone_device_t device, iphone_lckd_client_t *client ); |
| 105 | iphone_error_t iphone_lckd_free_client( iphone_lckd_client_t client ); | 106 | iphone_error_t iphone_lckd_free_client( iphone_lckd_client_t client ); |
| 106 | 107 | ||
| @@ -115,6 +116,7 @@ iphone_error_t iphone_mux_free_client ( iphone_umux_client_t client ); | |||
| 115 | 116 | ||
| 116 | iphone_error_t iphone_mux_send ( iphone_umux_client_t client, const char *data, uint32_t datalen, uint32_t *sent_bytes ); | 117 | iphone_error_t iphone_mux_send ( iphone_umux_client_t client, const char *data, uint32_t datalen, uint32_t *sent_bytes ); |
| 117 | iphone_error_t iphone_mux_recv ( iphone_umux_client_t client, char *data, uint32_t datalen, uint32_t *recv_bytes ); | 118 | iphone_error_t iphone_mux_recv ( iphone_umux_client_t client, char *data, uint32_t datalen, uint32_t *recv_bytes ); |
| 119 | iphone_error_t iphone_mux_recv_timeout ( iphone_umux_client_t client, char *data, uint32_t datalen, uint32_t *recv_bytes, int timeout); | ||
| 118 | 120 | ||
| 119 | 121 | ||
| 120 | //afc related functions | 122 | //afc related functions |
| @@ -148,6 +150,36 @@ iphone_error_t iphone_msync_free_client(iphone_msync_client_t client); | |||
| 148 | iphone_error_t iphone_msync_recv(iphone_msync_client_t client, plist_t * plist); | 150 | iphone_error_t iphone_msync_recv(iphone_msync_client_t client, plist_t * plist); |
| 149 | iphone_error_t iphone_msync_send(iphone_msync_client_t client, plist_t plist); | 151 | iphone_error_t iphone_msync_send(iphone_msync_client_t client, plist_t plist); |
| 150 | 152 | ||
| 153 | // NotificationProxy related | ||
| 154 | // notifications for use with post_notification (client --> device) | ||
| 155 | #define NP_SYNC_WILL_START "com.apple.itunes-mobdev.syncWillStart" | ||
| 156 | #define NP_SYNC_DID_START "com.apple.itunes-mobdev.syncDidStart" | ||
| 157 | #define NP_SYNC_DID_FINISH "com.apple.itunes-mobdev.syncDidFinish" | ||
| 158 | |||
| 159 | // notifications for use with observe_notification (device --> client) | ||
| 160 | #define NP_SYNC_CANCEL_REQUEST "com.apple.itunes-client.syncCancelRequest" | ||
| 161 | #define NP_SYNC_SUSPEND_REQUEST "com.apple.itunes-client.syncSuspendRequest" | ||
| 162 | #define NP_SYNC_RESUME_REQUEST "com.apple.itunes-client.syncResumeRequest" | ||
| 163 | #define NP_PHONE_NUMBER_CHANGED "com.apple.mobile.lockdown.phone_number_changed" | ||
| 164 | #define NP_DEVICE_NAME_CHANGED "com.apple.mobile.lockdown.device_name_changed" | ||
| 165 | #define NP_ATTEMPTACTIVATION "com.apple.springboard.attemptactivation" | ||
| 166 | #define NP_DS_DOMAIN_CHANGED "com.apple.mobile.data_sync.domain_changed" | ||
| 167 | #define NP_APP_INSTALLED "com.apple.mobile.application_installed" | ||
| 168 | #define NP_APP_UNINSTALLED "com.apple.mobile.application_uninstalled" | ||
| 169 | |||
| 170 | iphone_error_t iphone_np_new_client ( iphone_device_t device, int src_port, int dst_port, iphone_np_client_t *client ); | ||
| 171 | iphone_error_t iphone_np_free_client ( iphone_np_client_t client ); | ||
| 172 | |||
| 173 | iphone_error_t iphone_np_post_notification ( iphone_np_client_t client, const char *notification ); | ||
| 174 | |||
| 175 | iphone_error_t iphone_np_observe_notification ( iphone_np_client_t client, const char *notification ); | ||
| 176 | iphone_error_t iphone_np_observe_notifications ( iphone_np_client_t client, const char **notification_spec ); | ||
| 177 | iphone_error_t iphone_np_get_notification ( iphone_np_client_t client, char **notification ); | ||
| 178 | |||
| 179 | typedef void (*iphone_np_notify_cb_t) ( const char *notification ); | ||
| 180 | |||
| 181 | iphone_error_t iphone_np_set_notify_callback ( iphone_np_client_t client, iphone_np_notify_cb_t notify_cb ); | ||
| 182 | |||
| 151 | #ifdef __cplusplus | 183 | #ifdef __cplusplus |
| 152 | } | 184 | } |
| 153 | #endif | 185 | #endif |
