libmtp 1.1.12

mtpz.h

Go to the documentation of this file.
00001 
00022 #ifndef MTPZ_H_INCLUSION_GUARD
00023 #define MTPZ_H_INCLUSION_GUARD
00024 
00025 #include "config.h" /* USE_MTPZ or not */
00026 #include "ptp.h" /* PTPParams */
00027 
00028 #ifdef USE_MTPZ
00029 
00030 uint16_t ptp_mtpz_handshake (PTPParams* params);
00031 int mtpz_loaddata(void);
00032 
00033 #else
00034 
00035 /* Stubs if mtpz is unused */
00036 static inline uint16_t ptp_mtpz_handshake (PTPParams* params)
00037 {
00038   return PTP_RC_OperationNotSupported;
00039 }
00040 
00041 static inline int mtpz_loaddata(void)
00042 {
00043   return -1;
00044 }
00045 
00046 #endif
00047 
00048 int use_mtpz;
00049 
00050 #endif /* LIBMTP_H_INCLUSION_GUARD */
00051