libmtp.h | libmtp.h | |||
---|---|---|---|---|
skipping to change at line 32 | skipping to change at line 32 | |||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330, | * Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |||
* Boston, MA 02111-1307, USA. | * Boston, MA 02111-1307, USA. | |||
* | * | |||
* <code> | * <code> | |||
* #include <libmtp.h> | * #include <libmtp.h> | |||
* </code> | * </code> | |||
*/ | */ | |||
#ifndef LIBMTP_H_INCLUSION_GUARD | #ifndef LIBMTP_H_INCLUSION_GUARD | |||
#define LIBMTP_H_INCLUSION_GUARD | #define LIBMTP_H_INCLUSION_GUARD | |||
#define LIBMTP_VERSION 0.3.5 | #define LIBMTP_VERSION 0.3.6 | |||
#define LIBMTP_VERSION_STRING "0.3.5" | #define LIBMTP_VERSION_STRING "0.3.6" | |||
/* This handles MSVC pecularities */ | /* This handles MSVC pecularities */ | |||
#ifdef _MSC_VER | #ifdef _MSC_VER | |||
#include <windows.h> | #include <windows.h> | |||
#define __WIN32__ | #define __WIN32__ | |||
#define snprintf _snprintf | #define snprintf _snprintf | |||
#define ssize_t SSIZE_T | #define ssize_t SSIZE_T | |||
#endif | ||||
#include <stdio.h> | ||||
#include <usb.h> | ||||
#include <stdint.h> | ||||
#ifdef __WIN32__ | ||||
/* | /* | |||
* Windows specific code, types that do not exist in Windows | * Types that do not exist in Windows | |||
* sys/types.h | * sys/types.h, but they exist in mingw32 | |||
* sys/types.h. | ||||
*/ | */ | |||
typedef char int8_t; | typedef char int8_t; | |||
typedef unsigned char uint8_t; | typedef unsigned char uint8_t; | |||
typedef __int16 int16_t; | typedef __int16 int16_t; | |||
typedef unsigned __int16 uint16_t; | typedef unsigned __int16 uint16_t; | |||
typedef __int32 int32_t; | typedef __int32 int32_t; | |||
typedef unsigned __int32 uint32_t; | typedef unsigned __int32 uint32_t; | |||
typedef unsigned __int64 uint64_t; | typedef unsigned __int64 uint64_t; | |||
#endif | #endif | |||
#include <stdio.h> | ||||
#include <usb.h> | ||||
#include <stdint.h> | ||||
/** | /** | |||
* @defgroup types libmtp global type definitions | * @defgroup types libmtp global type definitions | |||
* @{ | * @{ | |||
* The filetypes defined here are the external types used | * The filetypes defined here are the external types used | |||
* by the libmtp library interface. The types used internally | * by the libmtp library interface. The types used internally | |||
* as PTP-defined enumerator types is something different. | * as PTP-defined enumerator types is something different. | |||
*/ | */ | |||
typedef enum { | typedef enum { | |||
LIBMTP_FILETYPE_WAV, | LIBMTP_FILETYPE_WAV, | |||
LIBMTP_FILETYPE_MP3, | LIBMTP_FILETYPE_MP3, | |||
End of changes. 4 change blocks. | ||||
11 lines changed or deleted | 9 lines changed or added | |||