summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Patrick Walton2008-10-19 01:21:42 -0700
committerGravatar Jonathan Beck2008-10-25 14:48:06 +0200
commit37fff2713545f7d660097842acfeb67e6eb5026c (patch)
tree515e1dee12fa7f79482c793e2b945942d9a00c30
parent76816c9fa6cd80fd7050977607403f6f8bbf0eba (diff)
downloadlibimobiledevice-37fff2713545f7d660097842acfeb67e6eb5026c.tar.gz
libimobiledevice-37fff2713545f7d660097842acfeb67e6eb5026c.tar.bz2
Draft HAL
Fix fdi file
-rw-r--r--Makefile.am2
-rw-r--r--configure.ac2
-rw-r--r--fdi/31-apple-mobile-device.fdi15
-rw-r--r--fdi/Makefile.am3
-rw-r--r--include/libiphone/libiphone.h1
5 files changed, 21 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index 4ce113c..d2db548 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,5 +1,5 @@
AUTOMAKE_OPTIONS = foreign
-SUBDIRS = src include
+SUBDIRS = src include fdi
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libiphone-1.0.pc
diff --git a/configure.ac b/configure.ac
index bfb0378..7fc417c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -38,4 +38,4 @@ AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_CHECK_FUNCS([strcasecmp strdup strerror strndup])
-AC_OUTPUT(Makefile src/Makefile include/Makefile libiphone-1.0.pc)
+AC_OUTPUT(Makefile src/Makefile include/Makefile fdi/Makefile libiphone-1.0.pc)
diff --git a/fdi/31-apple-mobile-device.fdi b/fdi/31-apple-mobile-device.fdi
new file mode 100644
index 0000000..3e9ccc9
--- /dev/null
+++ b/fdi/31-apple-mobile-device.fdi
@@ -0,0 +1,15 @@
+<?xml version="1.0"?>
+<deviceinfo version="0.2">
+ <device>
+ <match key="info.subsystem" string="usb">
+ <match key="usb.vendor_id" int="0x05ac">
+ <match key="usb.product_id" compare_ge="0x1290">
+ <match key="usb.product_id" compare_le="0x1293">
+ <append key="info.capabilities" type="strlist">afc</append>
+ </match>
+ </match>
+ </match>
+ </match>
+ </device>
+</deviceinfo>
+
diff --git a/fdi/Makefile.am b/fdi/Makefile.am
new file mode 100644
index 0000000..31e716b
--- /dev/null
+++ b/fdi/Makefile.am
@@ -0,0 +1,3 @@
+freedesktopfdidir=$(prefix)/share/hal/fdi/information/20thirdparty/
+freedesktopfdi_DATA=31-apple-mobile-device.fdi
+
diff --git a/include/libiphone/libiphone.h b/include/libiphone/libiphone.h
index 2e66b5d..1a62e9d 100644
--- a/include/libiphone/libiphone.h
+++ b/include/libiphone/libiphone.h
@@ -77,6 +77,7 @@ struct iphone_afc_file_int;
typedef struct iphone_afc_file_int *iphone_afc_file_t;
//device related functions
+void iphone_set_debug(int level);
iphone_error_t iphone_get_device ( iphone_device_t *device );
iphone_error_t iphone_free_device ( iphone_device_t device );