summaryrefslogtreecommitdiff
path: root/camlibs/ptp2/ptp-bugs.h
blob: 42940ce29989293f118a84fd6b0d4cb10b722da6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/* ptp-bugs.h
 *
 * Copyright (C) 2005-2006 Hubert Figuiere <hfiguiere@teaser.fr>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful, 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details. 
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 */


#ifndef __PTP_BUGS_H_
#define __PTP_BUGS_H_


#define PTPBUG_DELETE_SENDS_EVENT	(1<<1)
#define PTPBUG_DUPE_FILE		(1<<2)
#define PTP_MTP				(1<<3)
#define PTP_CAP				(1<<4)
#define PTP_CAP_PREVIEW			(1<<5)
#define PTP_MTP_PROPLIST_WORKS		(1<<6)
#define PTP_NIKON_BROKEN_CAP		(1<<7)
#define PTP_MTP_ZEN_BROKEN_HEADER	(1<<8)
#define PTP_NO_CAPTURE_COMPLETE		(1<<9)

#define DELETE_SENDS_EVENT(x) \
  ((x)->bugs & PTPBUG_DELETE_SENDS_EVENT)
#define CAN_HAVE_DUPE_FILE(x) \
  ((x)->bugs & (PTPBUG_DUPE_FILE | PTP_MTP))
#define NIKON_BROKEN_CAP(x) \
  ((x)->bugs & (PTP_NIKON_BROKEN_CAP))
#define NO_CAPTURE_COMPLETE(x) \
  ((x)->bugs & (PTP_NO_CAPTURE_COMPLETE))
#define MTP_ZEN_BROKEN_HEADER(x) \
  ((x)->bugs & (PTP_MTP_ZEN_BROKEN_HEADER))

#endif