summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libimobiledevice/afc.h27
-rw-r--r--include/libimobiledevice/file_relay.h5
-rw-r--r--include/libimobiledevice/installation_proxy.h6
-rw-r--r--include/libimobiledevice/libimobiledevice.h23
-rw-r--r--include/libimobiledevice/lockdown.h16
-rw-r--r--include/libimobiledevice/mobile_image_mounter.h5
-rw-r--r--include/libimobiledevice/mobilebackup.h5
-rw-r--r--include/libimobiledevice/mobilesync.h5
-rw-r--r--include/libimobiledevice/notification_proxy.h20
-rw-r--r--include/libimobiledevice/sbservices.h5
-rw-r--r--include/libimobiledevice/screenshotr.h5
11 files changed, 86 insertions, 36 deletions
diff --git a/include/libimobiledevice/afc.h b/include/libimobiledevice/afc.h
index d800d19..c060eb7 100644
--- a/include/libimobiledevice/afc.h
+++ b/include/libimobiledevice/afc.h
@@ -29,7 +29,8 @@ 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 AFC_E_SUCCESS 0 34#define AFC_E_SUCCESS 0
34#define AFC_E_UNKNOWN_ERROR 1 35#define AFC_E_UNKNOWN_ERROR 1
35#define AFC_E_OP_HEADER_INVALID 2 36#define AFC_E_OP_HEADER_INVALID 2
@@ -59,28 +60,32 @@ extern "C" {
59#define AFC_E_NO_MEM 31 60#define AFC_E_NO_MEM 31
60#define AFC_E_NOT_ENOUGH_DATA 32 61#define AFC_E_NOT_ENOUGH_DATA 32
61#define AFC_E_DIR_NOT_EMPTY 33 62#define AFC_E_DIR_NOT_EMPTY 33
63/*@}*/
62 64
65/** Represents an error code. */
63typedef int16_t afc_error_t; 66typedef int16_t afc_error_t;
64 67
65/* Flags */ 68/** Flags for afc_file_open */
66typedef enum { 69typedef enum {
67 AFC_FOPEN_RDONLY = 0x00000001, // r O_RDONLY 70 AFC_FOPEN_RDONLY = 0x00000001, /**< r O_RDONLY */
68 AFC_FOPEN_RW = 0x00000002, // r+ O_RDWR | O_CREAT 71 AFC_FOPEN_RW = 0x00000002, /**< r+ O_RDWR | O_CREAT */
69 AFC_FOPEN_WRONLY = 0x00000003, // w O_WRONLY | O_CREAT | O_TRUNC 72 AFC_FOPEN_WRONLY = 0x00000003, /**< w O_WRONLY | O_CREAT | O_TRUNC */
70 AFC_FOPEN_WR = 0x00000004, // w+ O_RDWR | O_CREAT | O_TRUNC 73 AFC_FOPEN_WR = 0x00000004, /**< w+ O_RDWR | O_CREAT | O_TRUNC */
71 AFC_FOPEN_APPEND = 0x00000005, // a O_WRONLY | O_APPEND | O_CREAT 74 AFC_FOPEN_APPEND = 0x00000005, /**< a O_WRONLY | O_APPEND | O_CREAT */
72 AFC_FOPEN_RDAPPEND = 0x00000006 // a+ O_RDWR | O_APPEND | O_CREAT 75 AFC_FOPEN_RDAPPEND = 0x00000006 /**< a+ O_RDWR | O_APPEND | O_CREAT */
73} afc_file_mode_t; 76} afc_file_mode_t;
74 77
78/** Type of link for afc_make_link() calls */
75typedef enum { 79typedef enum {
76 AFC_HARDLINK = 1, 80 AFC_HARDLINK = 1,
77 AFC_SYMLINK = 2 81 AFC_SYMLINK = 2
78} afc_link_type_t; 82} afc_link_type_t;
79 83
84/** Lock operation flags */
80typedef enum { 85typedef enum {
81 AFC_LOCK_SH = 1 | 4, // shared lock 86 AFC_LOCK_SH = 1 | 4, /**< shared lock */
82 AFC_LOCK_EX = 2 | 4, // exclusive lock 87 AFC_LOCK_EX = 2 | 4, /**< exclusive lock */
83 AFC_LOCK_UN = 8 | 4 // unlock 88 AFC_LOCK_UN = 8 | 4 /**< unlock */
84} afc_lock_op_t; 89} afc_lock_op_t;
85 90
86typedef struct afc_client_private afc_client_private; 91typedef struct afc_client_private afc_client_private;
diff --git a/include/libimobiledevice/file_relay.h b/include/libimobiledevice/file_relay.h
index dd65b38..b3900db 100644
--- a/include/libimobiledevice/file_relay.h
+++ b/include/libimobiledevice/file_relay.h
@@ -29,7 +29,8 @@ 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 FILE_RELAY_E_SUCCESS 0 34#define FILE_RELAY_E_SUCCESS 0
34#define FILE_RELAY_E_INVALID_ARG -1 35#define FILE_RELAY_E_INVALID_ARG -1
35#define FILE_RELAY_E_PLIST_ERROR -2 36#define FILE_RELAY_E_PLIST_ERROR -2
@@ -38,7 +39,9 @@ extern "C" {
38#define FILE_RELAY_E_STAGING_EMPTY -5 39#define FILE_RELAY_E_STAGING_EMPTY -5
39 40
40#define FILE_RELAY_E_UNKNOWN_ERROR -256 41#define FILE_RELAY_E_UNKNOWN_ERROR -256
42/*@}*/
41 43
44/** Represents an error code. */
42typedef int16_t file_relay_error_t; 45typedef int16_t file_relay_error_t;
43 46
44typedef struct file_relay_client_private file_relay_client_private; 47typedef struct file_relay_client_private file_relay_client_private;
diff --git a/include/libimobiledevice/installation_proxy.h b/include/libimobiledevice/installation_proxy.h
index 8a7cfb9..2bf738d 100644
--- a/include/libimobiledevice/installation_proxy.h
+++ b/include/libimobiledevice/installation_proxy.h
@@ -30,7 +30,8 @@ extern "C" {
30#include <libimobiledevice/libimobiledevice.h> 30#include <libimobiledevice/libimobiledevice.h>
31#include <glib.h> 31#include <glib.h>
32 32
33/* Error Codes */ 33/** @name Error Codes */
34/*@{*/
34#define INSTPROXY_E_SUCCESS 0 35#define INSTPROXY_E_SUCCESS 0
35#define INSTPROXY_E_INVALID_ARG -1 36#define INSTPROXY_E_INVALID_ARG -1
36#define INSTPROXY_E_PLIST_ERROR -2 37#define INSTPROXY_E_PLIST_ERROR -2
@@ -39,12 +40,15 @@ extern "C" {
39#define INSTPROXY_E_OP_FAILED -5 40#define INSTPROXY_E_OP_FAILED -5
40 41
41#define INSTPROXY_E_UNKNOWN_ERROR -256 42#define INSTPROXY_E_UNKNOWN_ERROR -256
43/*@}*/
42 44
45/** Represents an error code. */
43typedef int16_t instproxy_error_t; 46typedef int16_t instproxy_error_t;
44 47
45typedef struct instproxy_client_private instproxy_client_private; 48typedef struct instproxy_client_private instproxy_client_private;
46typedef instproxy_client_private *instproxy_client_t; /**< The client handle. */ 49typedef instproxy_client_private *instproxy_client_t; /**< The client handle. */
47 50
51/** Reports the status of the given operation */
48typedef void (*instproxy_status_cb_t) (const char *operation, plist_t status); 52typedef void (*instproxy_status_cb_t) (const char *operation, plist_t status);
49 53
50/* Interface */ 54/* Interface */
diff --git a/include/libimobiledevice/libimobiledevice.h b/include/libimobiledevice/libimobiledevice.h
index 73e82fe..0c6a08f 100644
--- a/include/libimobiledevice/libimobiledevice.h
+++ b/include/libimobiledevice/libimobiledevice.h
@@ -1,6 +1,6 @@
1/** 1/**
2 * @file libimobiledevice/libimobiledevice.h 2 * @file libimobiledevice/libimobiledevice.h
3 * @brief Common code and device handling 3 * @brief Device/Connection handling and communication
4 * \internal 4 * \internal
5 * 5 *
6 * Copyright (c) 2008 Jonathan Beck All Rights Reserved. 6 * Copyright (c) 2008 Jonathan Beck All Rights Reserved.
@@ -32,7 +32,8 @@ extern "C" {
32#include <sys/stat.h> 32#include <sys/stat.h>
33#include <plist/plist.h> 33#include <plist/plist.h>
34 34
35/* Error Codes */ 35/** @name Error Codes */
36/*@{*/
36#define IDEVICE_E_SUCCESS 0 37#define IDEVICE_E_SUCCESS 0
37#define IDEVICE_E_INVALID_ARG -1 38#define IDEVICE_E_INVALID_ARG -1
38#define IDEVICE_E_UNKNOWN_ERROR -2 39#define IDEVICE_E_UNKNOWN_ERROR -2
@@ -40,7 +41,9 @@ extern "C" {
40#define IDEVICE_E_NOT_ENOUGH_DATA -4 41#define IDEVICE_E_NOT_ENOUGH_DATA -4
41#define IDEVICE_E_BAD_HEADER -5 42#define IDEVICE_E_BAD_HEADER -5
42#define IDEVICE_E_SSL_ERROR -6 43#define IDEVICE_E_SSL_ERROR -6
44/*@}*/
43 45
46/** Represents an error code. */
44typedef int16_t idevice_error_t; 47typedef int16_t idevice_error_t;
45 48
46typedef struct idevice_private idevice_private; 49typedef struct idevice_private idevice_private;
@@ -53,23 +56,25 @@ typedef idevice_connection_private *idevice_connection_t; /**< The connection ha
53void idevice_set_debug_level(int level); 56void idevice_set_debug_level(int level);
54 57
55/* discovery (events/asynchronous) */ 58/* discovery (events/asynchronous) */
56// event type 59/** The event type for device add or removal */
57enum idevice_event_type { 60enum idevice_event_type {
58 IDEVICE_DEVICE_ADD = 1, 61 IDEVICE_DEVICE_ADD = 1,
59 IDEVICE_DEVICE_REMOVE 62 IDEVICE_DEVICE_REMOVE
60}; 63};
61 64
62// event data structure 65/* event data structure */
66/** Provides information about the occoured event. */
63typedef struct { 67typedef struct {
64 enum idevice_event_type event; 68 enum idevice_event_type event; /**< The event type. */
65 const char *uuid; 69 const char *uuid; /**< The device unique id. */
66 int conn_type; 70 int conn_type; /**< The connection type. Currently only 1 for usbmuxd. */
67} idevice_event_t; 71} idevice_event_t;
68 72
69// event callback function prototype 73/* event callback function prototype */
74/** Callback to notifiy if a device was added or removed. */
70typedef void (*idevice_event_cb_t) (const idevice_event_t *event, void *user_data); 75typedef void (*idevice_event_cb_t) (const idevice_event_t *event, void *user_data);
71 76
72// functions 77/* functions */
73idevice_error_t idevice_event_subscribe(idevice_event_cb_t callback, void *user_data); 78idevice_error_t idevice_event_subscribe(idevice_event_cb_t callback, void *user_data);
74idevice_error_t idevice_event_unsubscribe(); 79idevice_error_t idevice_event_unsubscribe();
75 80
diff --git a/include/libimobiledevice/lockdown.h b/include/libimobiledevice/lockdown.h
index 6abf6d6..4504ef1 100644
--- a/include/libimobiledevice/lockdown.h
+++ b/include/libimobiledevice/lockdown.h
@@ -1,6 +1,6 @@
1/** 1/**
2 * @file libimobiledevice/lockdown.h 2 * @file libimobiledevice/lockdown.h
3 * @brief Communcation with the lockdown device daemon 3 * @brief Implementation to communicate with the lockdown device daemon
4 * \internal 4 * \internal
5 * 5 *
6 * Copyright (c) 2008 Zach C. All Rights Reserved. 6 * Copyright (c) 2008 Zach C. All Rights Reserved.
@@ -30,7 +30,8 @@ extern "C" {
30 30
31#include <libimobiledevice/libimobiledevice.h> 31#include <libimobiledevice/libimobiledevice.h>
32 32
33/* Error Codes */ 33/** @name Error Codes */
34/*@{*/
34#define LOCKDOWN_E_SUCCESS 0 35#define LOCKDOWN_E_SUCCESS 0
35#define LOCKDOWN_E_INVALID_ARG -1 36#define LOCKDOWN_E_INVALID_ARG -1
36#define LOCKDOWN_E_INVALID_CONF -2 37#define LOCKDOWN_E_INVALID_CONF -2
@@ -52,18 +53,21 @@ extern "C" {
52#define LOCKDOWN_E_INVALID_ACTIVATION_RECORD -18 53#define LOCKDOWN_E_INVALID_ACTIVATION_RECORD -18
53 54
54#define LOCKDOWN_E_UNKNOWN_ERROR -256 55#define LOCKDOWN_E_UNKNOWN_ERROR -256
56/*@}*/
55 57
58/** Represents an error code. */
56typedef int16_t lockdownd_error_t; 59typedef int16_t lockdownd_error_t;
57 60
58typedef struct lockdownd_client_private lockdownd_client_private; 61typedef struct lockdownd_client_private lockdownd_client_private;
59typedef lockdownd_client_private *lockdownd_client_t; /**< The client handle. */ 62typedef lockdownd_client_private *lockdownd_client_t; /**< The client handle. */
60 63
61struct lockdownd_pair_record { 64struct lockdownd_pair_record {
62 char *device_certificate; 65 char *device_certificate; /**< The device certificate */
63 char *host_certificate; 66 char *host_certificate; /**< The host certificate */
64 char *host_id; 67 char *host_id; /**< A unique HostID for the host computer */
65 char *root_certificate; 68 char *root_certificate; /**< The root certificate */
66}; 69};
70/** A pair record holding device, host and root certificates along the host_id */
67typedef struct lockdownd_pair_record *lockdownd_pair_record_t; 71typedef struct lockdownd_pair_record *lockdownd_pair_record_t;
68 72
69/* Interface */ 73/* Interface */
diff --git a/include/libimobiledevice/mobile_image_mounter.h b/include/libimobiledevice/mobile_image_mounter.h
index 5681d8b..26a3666 100644
--- a/include/libimobiledevice/mobile_image_mounter.h
+++ b/include/libimobiledevice/mobile_image_mounter.h
@@ -29,14 +29,17 @@ 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 MOBILE_IMAGE_MOUNTER_E_SUCCESS 0 34#define MOBILE_IMAGE_MOUNTER_E_SUCCESS 0
34#define MOBILE_IMAGE_MOUNTER_E_INVALID_ARG -1 35#define MOBILE_IMAGE_MOUNTER_E_INVALID_ARG -1
35#define MOBILE_IMAGE_MOUNTER_E_PLIST_ERROR -2 36#define MOBILE_IMAGE_MOUNTER_E_PLIST_ERROR -2
36#define MOBILE_IMAGE_MOUNTER_E_CONN_FAILED -3 37#define MOBILE_IMAGE_MOUNTER_E_CONN_FAILED -3
37 38
38#define MOBILE_IMAGE_MOUNTER_E_UNKNOWN_ERROR -256 39#define MOBILE_IMAGE_MOUNTER_E_UNKNOWN_ERROR -256
40/*@}*/
39 41
42/** Represents an error code. */
40typedef int16_t mobile_image_mounter_error_t; 43typedef int16_t mobile_image_mounter_error_t;
41 44
42typedef struct mobile_image_mounter_client_private mobile_image_mounter_client_private; 45typedef struct mobile_image_mounter_client_private mobile_image_mounter_client_private;
diff --git a/include/libimobiledevice/mobilebackup.h b/include/libimobiledevice/mobilebackup.h
index d6f9013..6f37a14 100644
--- a/include/libimobiledevice/mobilebackup.h
+++ b/include/libimobiledevice/mobilebackup.h
@@ -29,7 +29,8 @@ 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 MOBILEBACKUP_E_SUCCESS 0 34#define MOBILEBACKUP_E_SUCCESS 0
34#define MOBILEBACKUP_E_INVALID_ARG -1 35#define MOBILEBACKUP_E_INVALID_ARG -1
35#define MOBILEBACKUP_E_PLIST_ERROR -2 36#define MOBILEBACKUP_E_PLIST_ERROR -2
@@ -38,7 +39,9 @@ extern "C" {
38#define MOBILEBACKUP_E_REPLY_NOT_OK -5 39#define MOBILEBACKUP_E_REPLY_NOT_OK -5
39 40
40#define MOBILEBACKUP_E_UNKNOWN_ERROR -256 41#define MOBILEBACKUP_E_UNKNOWN_ERROR -256
42/*@}*/
41 43
44/** Represents an error code. */
42typedef int16_t mobilebackup_error_t; 45typedef int16_t mobilebackup_error_t;
43 46
44typedef struct mobilebackup_client_private mobilebackup_client_private; 47typedef struct mobilebackup_client_private mobilebackup_client_private;
diff --git a/include/libimobiledevice/mobilesync.h b/include/libimobiledevice/mobilesync.h
index 2e330ee..7af3aef 100644
--- a/include/libimobiledevice/mobilesync.h
+++ b/include/libimobiledevice/mobilesync.h
@@ -29,7 +29,8 @@ 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 MOBILESYNC_E_SUCCESS 0 34#define MOBILESYNC_E_SUCCESS 0
34#define MOBILESYNC_E_INVALID_ARG -1 35#define MOBILESYNC_E_INVALID_ARG -1
35#define MOBILESYNC_E_PLIST_ERROR -2 36#define MOBILESYNC_E_PLIST_ERROR -2
@@ -37,7 +38,9 @@ extern "C" {
37#define MOBILESYNC_E_BAD_VERSION -4 38#define MOBILESYNC_E_BAD_VERSION -4
38 39
39#define MOBILESYNC_E_UNKNOWN_ERROR -256 40#define MOBILESYNC_E_UNKNOWN_ERROR -256
41/*@}*/
40 42
43/** Represents an error code. */
41typedef int16_t mobilesync_error_t; 44typedef int16_t mobilesync_error_t;
42 45
43typedef struct mobilesync_client_private mobilesync_client_private; 46typedef struct mobilesync_client_private mobilesync_client_private;
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. */
40typedef int16_t np_error_t; 43typedef 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
71typedef struct np_client_private np_client_private; 85typedef struct np_client_private np_client_private;
72typedef np_client_private *np_client_t; /**< The client handle. */ 86typedef np_client_private *np_client_t; /**< The client handle. */
diff --git a/include/libimobiledevice/sbservices.h b/include/libimobiledevice/sbservices.h
index 0fcec86..71e951e 100644
--- a/include/libimobiledevice/sbservices.h
+++ b/include/libimobiledevice/sbservices.h
@@ -29,14 +29,17 @@ 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 SBSERVICES_E_SUCCESS 0 34#define SBSERVICES_E_SUCCESS 0
34#define SBSERVICES_E_INVALID_ARG -1 35#define SBSERVICES_E_INVALID_ARG -1
35#define SBSERVICES_E_PLIST_ERROR -2 36#define SBSERVICES_E_PLIST_ERROR -2
36#define SBSERVICES_E_CONN_FAILED -3 37#define SBSERVICES_E_CONN_FAILED -3
37 38
38#define SBSERVICES_E_UNKNOWN_ERROR -256 39#define SBSERVICES_E_UNKNOWN_ERROR -256
40/*@}*/
39 41
42/** Represents an error code. */
40typedef int16_t sbservices_error_t; 43typedef int16_t sbservices_error_t;
41 44
42typedef struct sbservices_client_private sbservices_client_private; 45typedef struct sbservices_client_private sbservices_client_private;
diff --git a/include/libimobiledevice/screenshotr.h b/include/libimobiledevice/screenshotr.h
index d9a3ffd..7e5c8a7 100644
--- a/include/libimobiledevice/screenshotr.h
+++ b/include/libimobiledevice/screenshotr.h
@@ -29,7 +29,8 @@ 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 SCREENSHOTR_E_SUCCESS 0 34#define SCREENSHOTR_E_SUCCESS 0
34#define SCREENSHOTR_E_INVALID_ARG -1 35#define SCREENSHOTR_E_INVALID_ARG -1
35#define SCREENSHOTR_E_PLIST_ERROR -2 36#define SCREENSHOTR_E_PLIST_ERROR -2
@@ -37,7 +38,9 @@ extern "C" {
37#define SCREENSHOTR_E_BAD_VERSION -4 38#define SCREENSHOTR_E_BAD_VERSION -4
38 39
39#define SCREENSHOTR_E_UNKNOWN_ERROR -256 40#define SCREENSHOTR_E_UNKNOWN_ERROR -256
41/*@}*/
40 42
43/** Represents an error code. */
41typedef int16_t screenshotr_error_t; 44typedef int16_t screenshotr_error_t;
42 45
43typedef struct screenshotr_client_private screenshotr_client_private; 46typedef struct screenshotr_client_private screenshotr_client_private;