diff options
| author | 2010-03-16 03:13:38 +0100 | |
|---|---|---|
| committer | 2010-03-16 03:13:38 +0100 | |
| commit | 08d2af5d611319748afba2aaba5e6c8a99f1b396 (patch) | |
| tree | 8bf4a3533f2acf11368dc37a9c653689ace99b77 /include/libimobiledevice/notification_proxy.h | |
| parent | 3e0c5021100c879ff7d0776d4c7bb4f0ec88e0d7 (diff) | |
| download | libimobiledevice-08d2af5d611319748afba2aaba5e6c8a99f1b396.tar.gz libimobiledevice-08d2af5d611319748afba2aaba5e6c8a99f1b396.tar.bz2 | |
Complete documentation of public interface and fix a lot of bogus comments
This change unifies the documentation comment syntax, fixes a few bad
documentation comments and completes documentation where it was missing.
Diffstat (limited to 'include/libimobiledevice/notification_proxy.h')
| -rw-r--r-- | include/libimobiledevice/notification_proxy.h | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/include/libimobiledevice/notification_proxy.h b/include/libimobiledevice/notification_proxy.h index 74b6b37..d85f56c 100644 --- a/include/libimobiledevice/notification_proxy.h +++ b/include/libimobiledevice/notification_proxy.h | |||
| @@ -29,23 +29,36 @@ extern "C" { | |||
| 29 | 29 | ||
| 30 | #include <libimobiledevice/libimobiledevice.h> | 30 | #include <libimobiledevice/libimobiledevice.h> |
| 31 | 31 | ||
| 32 | /* Error Codes */ | 32 | /** @name Error Codes */ |
| 33 | /*@{*/ | ||
| 33 | #define NP_E_SUCCESS 0 | 34 | #define NP_E_SUCCESS 0 |
| 34 | #define NP_E_INVALID_ARG -1 | 35 | #define NP_E_INVALID_ARG -1 |
| 35 | #define NP_E_PLIST_ERROR -2 | 36 | #define NP_E_PLIST_ERROR -2 |
| 36 | #define NP_E_CONN_FAILED -3 | 37 | #define NP_E_CONN_FAILED -3 |
| 37 | 38 | ||
| 38 | #define NP_E_UNKNOWN_ERROR -256 | 39 | #define NP_E_UNKNOWN_ERROR -256 |
| 40 | /*@}*/ | ||
| 39 | 41 | ||
| 42 | /** Represents an error code. */ | ||
| 40 | typedef int16_t np_error_t; | 43 | typedef int16_t np_error_t; |
| 41 | 44 | ||
| 42 | /* Notification IDs for use with post_notification (client --> device) */ | 45 | /** |
| 46 | * @name Notifications that can be send | ||
| 47 | * | ||
| 48 | * For use with np_post_notification() (client --> device) | ||
| 49 | */ | ||
| 43 | #define NP_SYNC_WILL_START "com.apple.itunes-mobdev.syncWillStart" | 50 | #define NP_SYNC_WILL_START "com.apple.itunes-mobdev.syncWillStart" |
| 44 | #define NP_SYNC_DID_START "com.apple.itunes-mobdev.syncDidStart" | 51 | #define NP_SYNC_DID_START "com.apple.itunes-mobdev.syncDidStart" |
| 45 | #define NP_SYNC_DID_FINISH "com.apple.itunes-mobdev.syncDidFinish" | 52 | #define NP_SYNC_DID_FINISH "com.apple.itunes-mobdev.syncDidFinish" |
| 46 | #define NP_SYNC_LOCK_REQUEST "com.apple.itunes-mobdev.syncLockRequest" | 53 | #define NP_SYNC_LOCK_REQUEST "com.apple.itunes-mobdev.syncLockRequest" |
| 54 | /*@}*/ | ||
| 47 | 55 | ||
| 48 | /* Notification IDs for use with observe_notification (device --> client) */ | 56 | /** |
| 57 | * @name Notifications that can be received | ||
| 58 | * | ||
| 59 | * For use with np_observe_notification() (device --> client) | ||
| 60 | */ | ||
| 61 | /*@{*/ | ||
| 49 | #define NP_SYNC_CANCEL_REQUEST "com.apple.itunes-client.syncCancelRequest" | 62 | #define NP_SYNC_CANCEL_REQUEST "com.apple.itunes-client.syncCancelRequest" |
| 50 | #define NP_SYNC_SUSPEND_REQUEST "com.apple.itunes-client.syncSuspendRequest" | 63 | #define NP_SYNC_SUSPEND_REQUEST "com.apple.itunes-client.syncSuspendRequest" |
| 51 | #define NP_SYNC_RESUME_REQUEST "com.apple.itunes-client.syncResumeRequest" | 64 | #define NP_SYNC_RESUME_REQUEST "com.apple.itunes-client.syncResumeRequest" |
| @@ -67,6 +80,7 @@ typedef int16_t np_error_t; | |||
| 67 | #define NP_ITDBPREP_DID_END "com.apple.itdbprep.notification.didEnd" | 80 | #define NP_ITDBPREP_DID_END "com.apple.itdbprep.notification.didEnd" |
| 68 | #define NP_LANGUAGE_CHANGED "com.apple.language.changed" | 81 | #define NP_LANGUAGE_CHANGED "com.apple.language.changed" |
| 69 | #define NP_ADDRESS_BOOK_PREF_CHANGED "com.apple.AddressBook.PreferenceChanged" | 82 | #define NP_ADDRESS_BOOK_PREF_CHANGED "com.apple.AddressBook.PreferenceChanged" |
| 83 | /*@}*/ | ||
| 70 | 84 | ||
| 71 | typedef struct np_client_private np_client_private; | 85 | typedef struct np_client_private np_client_private; |
| 72 | typedef np_client_private *np_client_t; /**< The client handle. */ | 86 | typedef np_client_private *np_client_t; /**< The client handle. */ |
