libmtp 1.1.23

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
30uint16_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 extern int use_mtpz;
49
50#endif /* LIBMTP_H_INCLUSION_GUARD */
51