From 1f6282ffddec7012df82fa929dfe72cfc74b063a Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Thu, 10 Sep 2009 13:28:13 +0200 Subject: Public API rework, extension and adaption to latest libusbmuxd-1.0 API. --- src/iphone.h | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) (limited to 'src/iphone.h') diff --git a/src/iphone.h b/src/iphone.h index 6e14280..98b0ed8 100644 --- a/src/iphone.h +++ b/src/iphone.h @@ -1,7 +1,7 @@ /* * iphone.h - * iPhone struct - * + * Device discovery and communication interface -- header file. + * * Copyright (c) 2008 Zach C. All Rights Reserved. * * This library is free software; you can redistribute it and/or @@ -18,18 +18,24 @@ * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ - #ifndef IPHONE_H #define IPHONE_H -#include - #include "libiphone/libiphone.h" +enum connection_type { + CONNECTION_USBMUXD = 1 +}; + +struct iphone_connection_int { + enum connection_type type; + void *data; +}; + struct iphone_device_int { - char *buffer; - uint32_t handle; - char *serial_number; + char *uuid; + enum connection_type conn_type; + void *conn_data; }; #endif -- cgit v1.1-32-gdbae