summaryrefslogtreecommitdiffstats
path: root/include/libiphone
diff options
context:
space:
mode:
authorGravatar Jonathan Beck2008-08-13 19:41:26 +0200
committerGravatar Jonathan Beck2008-08-31 19:27:19 +0200
commitdd54db0bd0fd009d35f792b368212fdc7916b0c8 (patch)
tree786c947749dfc51ca2da65e8798cb334408f69c5 /include/libiphone
parent9236fee813a21019528cc6b6fe4cf7f9ac3647fd (diff)
downloadlibimobiledevice-dd54db0bd0fd009d35f792b368212fdc7916b0c8.tar.gz
libimobiledevice-dd54db0bd0fd009d35f792b368212fdc7916b0c8.tar.bz2
predeclare internal structs so we can have strong type checking
Diffstat (limited to 'include/libiphone')
-rw-r--r--include/libiphone/libiphone.h18
1 files changed, 13 insertions, 5 deletions
diff --git a/include/libiphone/libiphone.h b/include/libiphone/libiphone.h
index d5dda15..a4b8b12 100644
--- a/include/libiphone/libiphone.h
+++ b/include/libiphone/libiphone.h
@@ -28,12 +28,20 @@ extern "C" {
28 28
29#include <sys/types.h> 29#include <sys/types.h>
30 30
31struct iph_device_int;
32typedef iph_device_int *iph_device_t;
31 33
32typedef void* iph_device_t; 34struct iph_lckd_client_int;
33typedef void* iph_lckd_client_t; 35typedef iph_lckd_client_int *iph_lckd_client_t;
34typedef void* iph_umux_client_t; 36
35typedef void* iph_afc_client_t; 37struct iph_umux_client_int;
36typedef void* iph_afc_file_t; 38typedef iph_umux_client_int *iph_umux_client_t;
39
40struct iph_afc_client_int;
41typedef iph_afc_client_int *iph_afc_client_t;
42
43struct iph_afc_file_int;
44typedef iph_afc_file_int *iph_afc_file_t;
37 45
38//device related functions 46//device related functions
39int iph_get_device ( iph_device_t *device ); 47int iph_get_device ( iph_device_t *device );