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)
downloadlibplist-dd54db0bd0fd009d35f792b368212fdc7916b0c8.tar.gz
libplist-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" {
#include <sys/types.h>
+struct iph_device_int;
+typedef iph_device_int *iph_device_t;
-typedef void* iph_device_t;
-typedef void* iph_lckd_client_t;
-typedef void* iph_umux_client_t;
-typedef void* iph_afc_client_t;
-typedef void* iph_afc_file_t;
+struct iph_lckd_client_int;
+typedef iph_lckd_client_int *iph_lckd_client_t;
+
+struct iph_umux_client_int;
+typedef iph_umux_client_int *iph_umux_client_t;
+
+struct iph_afc_client_int;
+typedef iph_afc_client_int *iph_afc_client_t;
+
+struct iph_afc_file_int;
+typedef iph_afc_file_int *iph_afc_file_t;
//device related functions
int iph_get_device ( iph_device_t *device );