From dd54db0bd0fd009d35f792b368212fdc7916b0c8 Mon Sep 17 00:00:00 2001 From: Jonathan Beck Date: Wed, 13 Aug 2008 19:41:26 +0200 Subject: predeclare internal structs so we can have strong type checking --- include/libiphone/libiphone.h | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'include/libiphone') 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 +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 ); -- cgit v1.1-32-gdbae