Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(526)

Unified Diff: src/libmtp.h

Issue 2364793002: Revert "Uprev libmtp to 1.1.12" (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libmtp@master
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gphoto2-endian.h ('k') | src/libmtp.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/libmtp.h
diff --git a/src/libmtp.h b/src/libmtp.h
index 7b31a8a6be8cf30632e286e4a9480becbd7535d6..07aa27394b7e1f3212fd3dc536ad786cc22b76c6 100644
--- a/src/libmtp.h
+++ b/src/libmtp.h
@@ -2,7 +2,7 @@
* \file libmtp.h
* Interface to the Media Transfer Protocol library.
*
- * Copyright (C) 2005-2013 Linus Walleij <triad@df.lth.se>
+ * Copyright (C) 2005-2012 Linus Walleij <triad@df.lth.se>
* Copyright (C) 2005-2008 Richard A. Low <richard@wentnet.com>
* Copyright (C) 2007 Ted Bullock <tbullock@canada.com>
* Copyright (C) 2008 Florent Mertens <flomertens@gmail.com>
@@ -29,8 +29,8 @@
#ifndef LIBMTP_H_INCLUSION_GUARD
#define LIBMTP_H_INCLUSION_GUARD
-#define LIBMTP_VERSION 1.1.12
-#define LIBMTP_VERSION_STRING "1.1.12"
+#define LIBMTP_VERSION 1.1.5
+#define LIBMTP_VERSION_STRING "1.1.5"
/* This handles MSVC pecularities */
#ifdef _MSC_VER
@@ -50,8 +50,6 @@ typedef unsigned __int16 uint16_t;
typedef __int32 int32_t;
typedef unsigned __int32 uint32_t;
typedef unsigned __int64 uint64_t;
-#else
-#include <sys/time.h>
#endif
#include <stdio.h>
@@ -405,30 +403,6 @@ typedef enum {
} LIBMTP_datatype_t;
/**
- * These are device capabilities
- */
-typedef enum {
- /**
- * This capability tells whether you can call the funcion getting
- * partial objects, @see LIBMTP_GetPartialObject()
- */
- LIBMTP_DEVICECAP_GetPartialObject,
- /**
- * This capability tells whether you can call the function sending
- * partial objects. @see LIBMTP_SendPartialObject()
- */
- LIBMTP_DEVICECAP_SendPartialObject,
- /**
- * This capability tells whether you can call the functions editing
- * objects in-place on a device.
- * @see LIBMTP_BeginEditObject()
- * @see LIBMTP_EndEditObject()
- * @see LIBMTP_TruncateObject()
- */
- LIBMTP_DEVICECAP_EditObjects,
-} LIBMTP_devicecap_t;
-
-/**
* These are the numbered error codes. You can also
* get string representations for errors.
*/
@@ -797,9 +771,6 @@ struct LIBMTP_devicestorage_struct {
enum LIBMTP_event_enum {
LIBMTP_EVENT_NONE,
LIBMTP_EVENT_STORE_ADDED,
- LIBMTP_EVENT_STORE_REMOVED,
- LIBMTP_EVENT_OBJECT_ADDED,
- LIBMTP_EVENT_OBJECT_REMOVED,
};
typedef enum LIBMTP_event_enum LIBMTP_event_t;
@@ -851,7 +822,6 @@ int LIBMTP_Get_Batterylevel(LIBMTP_mtpdevice_t *,
int LIBMTP_Get_Secure_Time(LIBMTP_mtpdevice_t *, char ** const);
int LIBMTP_Get_Device_Certificate(LIBMTP_mtpdevice_t *, char ** const);
int LIBMTP_Get_Supported_Filetypes(LIBMTP_mtpdevice_t *, uint16_t ** const, uint16_t * const);
-int LIBMTP_Check_Capability(LIBMTP_mtpdevice_t *, LIBMTP_devicecap_t);
LIBMTP_error_t *LIBMTP_Get_Errorstack(LIBMTP_mtpdevice_t*);
void LIBMTP_Clear_Errorstack(LIBMTP_mtpdevice_t*);
void LIBMTP_Dump_Errorstack(LIBMTP_mtpdevice_t*);
@@ -1009,7 +979,7 @@ uint32_t LIBMTP_Create_Folder(LIBMTP_mtpdevice_t*, char *, uint32_t, uint32_t);
int LIBMTP_Set_Folder_Name(LIBMTP_mtpdevice_t *, LIBMTP_folder_t *, const char *);
/** @} */
-
+#if 0
/**
* @}
* @defgroup playlists The audio/video playlist management API.
@@ -1022,6 +992,7 @@ LIBMTP_playlist_t *LIBMTP_Get_Playlist(LIBMTP_mtpdevice_t *, uint32_t const);
int LIBMTP_Create_New_Playlist(LIBMTP_mtpdevice_t *, LIBMTP_playlist_t * const);
int LIBMTP_Update_Playlist(LIBMTP_mtpdevice_t *, LIBMTP_playlist_t * const);
int LIBMTP_Set_Playlist_Name(LIBMTP_mtpdevice_t *, LIBMTP_playlist_t *, const char *);
+#endif
/**
* @}
@@ -1044,24 +1015,14 @@ int LIBMTP_Set_Album_Name(LIBMTP_mtpdevice_t *, LIBMTP_album_t *, const char *);
*/
int LIBMTP_Delete_Object(LIBMTP_mtpdevice_t *, uint32_t);
int LIBMTP_Set_Object_Filename(LIBMTP_mtpdevice_t *, uint32_t , char *);
-int LIBMTP_GetPartialObject(LIBMTP_mtpdevice_t *, uint32_t const,
- uint64_t, uint32_t,
- unsigned char **, unsigned int *);
-int LIBMTP_SendPartialObject(LIBMTP_mtpdevice_t *, uint32_t const,
- uint64_t, unsigned char *, unsigned int);
-int LIBMTP_BeginEditObject(LIBMTP_mtpdevice_t *, uint32_t const);
-int LIBMTP_EndEditObject(LIBMTP_mtpdevice_t *, uint32_t const);
-int LIBMTP_TruncateObject(LIBMTP_mtpdevice_t *, uint32_t const, uint64_t);
/**
* @}
* @defgroup files The events API.
* @{
*/
-typedef void(* LIBMTP_event_cb_fn) (int, LIBMTP_event_t, uint32_t, void *);
int LIBMTP_Read_Event(LIBMTP_mtpdevice_t *, LIBMTP_event_t *, uint32_t *);
-int LIBMTP_Read_Event_Async(LIBMTP_mtpdevice_t *, LIBMTP_event_cb_fn, void *);
-int LIBMTP_Handle_Events_Timeout_Completed(struct timeval *, int *);
+
/** @} */
@@ -1071,4 +1032,3 @@ int LIBMTP_Handle_Events_Timeout_Completed(struct timeval *, int *);
#endif
#endif /* LIBMTP_H_INCLUSION_GUARD */
-
« no previous file with comments | « src/gphoto2-endian.h ('k') | src/libmtp.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698