summaryrefslogtreecommitdiff
path: root/camlibs/ptp2/ptp-bugs.h
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2006-07-02 17:06:36 +0000
committerMarcus Meissner <marcus@jet.franken.de>2006-07-02 17:06:36 +0000
commit4b98fd27f21d182844d068edb460fee2e15fcdf9 (patch)
tree5d72a61e6dd82a27c0c34a63bca71d8d711070ea /camlibs/ptp2/ptp-bugs.h
parent3a2f18641346037f0bdfb9ae72d580e3aaebb9f3 (diff)
downloadlibgphoto2-4b98fd27f21d182844d068edb460fee2e15fcdf9.tar.gz
* library.c: Enhanced duplication logic to
work for the cases we encounter on MTP devices. * ptp-bugs.h, library.c: Mark up MTP devices and classify them as Audio Devices. (For later use by packaging scripts.) git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@9013 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'camlibs/ptp2/ptp-bugs.h')
-rw-r--r--camlibs/ptp2/ptp-bugs.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/camlibs/ptp2/ptp-bugs.h b/camlibs/ptp2/ptp-bugs.h
index 2669c85a2..54d027c2e 100644
--- a/camlibs/ptp2/ptp-bugs.h
+++ b/camlibs/ptp2/ptp-bugs.h
@@ -26,12 +26,13 @@
#define PTPBUG_DCIM_WRONG_PARENT (1<<0)
#define PTPBUG_DELETE_SENDS_EVENT (1<<1)
#define PTPBUG_DUPE_FILE (1<<2)
+#define PTP_MTP (1<<3)
#define DCIM_WRONG_PARENT_BUG(x) \
((x)->bugs & PTPBUG_DCIM_WRONG_PARENT)
#define DELETE_SENDS_EVENT(x) \
((x)->bugs & PTPBUG_DELETE_SENDS_EVENT)
#define CAN_HAVE_DUPE_FILE(x) \
- ((x)->bugs & PTPBUG_DUPE_FILE)
+ ((x)->bugs & (PTPBUG_DUPE_FILE | PTP_MTP))
#endif