summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 @@
1AUTOMAKE_OPTIONS = foreign 1AUTOMAKE_OPTIONS = foreign
2SUBDIRS = src include 2SUBDIRS = src include fdi
3 3
4pkgconfigdir = $(libdir)/pkgconfig 4pkgconfigdir = $(libdir)/pkgconfig
5pkgconfig_DATA = libiphone-1.0.pc 5pkgconfig_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
38AC_FUNC_REALLOC 38AC_FUNC_REALLOC
39AC_CHECK_FUNCS([strcasecmp strdup strerror strndup]) 39AC_CHECK_FUNCS([strcasecmp strdup strerror strndup])
40 40
41AC_OUTPUT(Makefile src/Makefile include/Makefile libiphone-1.0.pc) 41AC_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 @@
1<?xml version="1.0"?>
2<deviceinfo version="0.2">
3 <device>
4 <match key="info.subsystem" string="usb">
5 <match key="usb.vendor_id" int="0x05ac">
6 <match key="usb.product_id" compare_ge="0x1290">
7 <match key="usb.product_id" compare_le="0x1293">
8 <append key="info.capabilities" type="strlist">afc</append>
9 </match>
10 </match>
11 </match>
12 </match>
13 </device>
14</deviceinfo>
15
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 @@
1freedesktopfdidir=$(prefix)/share/hal/fdi/information/20thirdparty/
2freedesktopfdi_DATA=31-apple-mobile-device.fdi
3
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;
77typedef struct iphone_afc_file_int *iphone_afc_file_t; 77typedef struct iphone_afc_file_int *iphone_afc_file_t;
78 78
79//device related functions 79//device related functions
80void iphone_set_debug(int level);
80iphone_error_t iphone_get_device ( iphone_device_t *device ); 81iphone_error_t iphone_get_device ( iphone_device_t *device );
81iphone_error_t iphone_free_device ( iphone_device_t device ); 82iphone_error_t iphone_free_device ( iphone_device_t device );
82 83