~ubuntu-branches/ubuntu/precise/libmtp/precise-proposed

« back to all changes in this revision

Viewing changes to src/libusb-glue.h

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2010-02-04 16:34:58 UTC
  • mto: (16.1.5 sid) (0.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 26.
  • Revision ID: james.westby@ubuntu.com-20100204163458-pegywpiiisrzx72w
Tags: upstream-1.0.2
ImportĀ upstreamĀ versionĀ 1.0.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
extern "C" {
41
41
#endif /* __cplusplus */
42
42
 
 
43
/**
 
44
 * Debug macro
 
45
 */
 
46
#define LIBMTP_USB_DEBUG(format, args...) \
 
47
  do { \
 
48
    if ((LIBMTP_debug & LIBMTP_DEBUG_USB) != 0) \
 
49
      fprintf(stdout, "LIBMTP %s[%d]: " format, __FUNCTION__, __LINE__, ##args); \
 
50
  } while (0)
 
51
 
 
52
#define LIBMTP_USB_DATA(buffer, length, base) \
 
53
  do { \
 
54
    if ((LIBMTP_debug & LIBMTP_DEBUG_DATA) != 0) \
 
55
      data_dump_ascii (stdout, buffer, length, base); \
 
56
  } while (0)
 
57
 
 
58
 
43
59
#define USB_BULK_READ usb_bulk_read
44
60
#define USB_BULK_WRITE usb_bulk_write
45
61
 
116
132
  ((a)->rawdevice.device_entry.device_flags & DEVICE_FLAG_BROKEN_BATTERY_LEVEL)
117
133
#define FLAG_FLAC_IS_UNKNOWN(a) \
118
134
  ((a)->rawdevice.device_entry.device_flags & DEVICE_FLAG_FLAC_IS_UNKNOWN)
 
135
#define FLAG_UNIQUE_FILENAMES(a) \
 
136
  ((a)->rawdevice.device_entry.device_flags & DEVICE_FLAG_UNIQUE_FILENAMES)
 
137
#define FLAG_SWITCH_MODE_BLACKBERRY(a) \
 
138
  ((a)->rawdevice.device_entry.device_flags & DEVICE_FLAG_SWITCH_MODE_BLACKBERRY)
119
139
 
120
140
/* connect_first_device return codes */
121
141
#define PTP_CD_RC_CONNECTED     0