libmtp: /root/tmp/build-libmtp/libmtp-1.1.11/src/mtpz.h Source File

libmtp 1.1.11

- Main Page
- Modules
- Data Structures
- Files
- Examples

- File List
- Globals

mtpz.h
Go to the documentation of this file.
1
22 #ifndef MTPZ_H_INCLUSION_GUARD
23 #define MTPZ_H_INCLUSION_GUARD
24
25 #include "config.h" /* USE_MTPZ or not */
26 #include "ptp.h" /* PTPParams */
27
28 #ifdef USE_MTPZ
29
30 uint16_t ptp_mtpz_handshake (PTPParams* params);
31 int mtpz_loaddata(void);
32
33 #else
34
35 /* Stubs if mtpz is unused */
36 static inline uint16_t ptp_mtpz_handshake (PTPParams* params)
37 {
38 return PTP_RC_OperationNotSupported;
39 }
40
41 static inline int mtpz_loaddata(void)
42 {
43 return -1;
44 }
45
46 #endif
47
48 int use_mtpz;
49
50 #endif /* LIBMTP_H_INCLUSION_GUARD */
51
_PTPParams
Definition: ptp.h:2322