diff options
| -rw-r--r-- | Makefile.am | 2 | ||||
| -rw-r--r-- | configure.ac | 2 | ||||
| -rw-r--r-- | fdi/31-apple-mobile-device.fdi | 15 | ||||
| -rw-r--r-- | fdi/Makefile.am | 3 | ||||
| -rw-r--r-- | include/libiphone/libiphone.h | 1 |
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 @@ | |||
| 1 | AUTOMAKE_OPTIONS = foreign | 1 | AUTOMAKE_OPTIONS = foreign |
| 2 | SUBDIRS = src include | 2 | SUBDIRS = src include fdi |
| 3 | 3 | ||
| 4 | pkgconfigdir = $(libdir)/pkgconfig | 4 | pkgconfigdir = $(libdir)/pkgconfig |
| 5 | pkgconfig_DATA = libiphone-1.0.pc | 5 | 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 | |||
| 38 | AC_FUNC_REALLOC | 38 | AC_FUNC_REALLOC |
| 39 | AC_CHECK_FUNCS([strcasecmp strdup strerror strndup]) | 39 | AC_CHECK_FUNCS([strcasecmp strdup strerror strndup]) |
| 40 | 40 | ||
| 41 | AC_OUTPUT(Makefile src/Makefile include/Makefile libiphone-1.0.pc) | 41 | 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 @@ | |||
| 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 @@ | |||
| 1 | freedesktopfdidir=$(prefix)/share/hal/fdi/information/20thirdparty/ | ||
| 2 | freedesktopfdi_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; | |||
| 77 | typedef struct iphone_afc_file_int *iphone_afc_file_t; | 77 | typedef struct iphone_afc_file_int *iphone_afc_file_t; |
| 78 | 78 | ||
| 79 | //device related functions | 79 | //device related functions |
| 80 | void iphone_set_debug(int level); | ||
| 80 | iphone_error_t iphone_get_device ( iphone_device_t *device ); | 81 | iphone_error_t iphone_get_device ( iphone_device_t *device ); |
| 81 | iphone_error_t iphone_free_device ( iphone_device_t device ); | 82 | iphone_error_t iphone_free_device ( iphone_device_t device ); |
| 82 | 83 | ||
