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.2 | #define LIBMTP_VERSION 0.3.3 | |||
#define LIBMTP_VERSION_STRING "0.3.2" | #define LIBMTP_VERSION_STRING "0.3.3" | |||
/* 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 | #endif | |||
#include <stdio.h> | #include <stdio.h> | |||
skipping to change at line 515 | skipping to change at line 515 | |||
int LIBMTP_Get_File_To_File(LIBMTP_mtpdevice_t*, uint32_t, char const * con st, | int LIBMTP_Get_File_To_File(LIBMTP_mtpdevice_t*, uint32_t, char const * con st, | |||
LIBMTP_progressfunc_t const, void const * const); | LIBMTP_progressfunc_t const, void const * const); | |||
int LIBMTP_Get_File_To_File_Descriptor(LIBMTP_mtpdevice_t*, uint32_t const, int const, | int LIBMTP_Get_File_To_File_Descriptor(LIBMTP_mtpdevice_t*, uint32_t const, int const, | |||
LIBMTP_progressfunc_t const, void const * const); | LIBMTP_progressfunc_t const, void const * const); | |||
int LIBMTP_Send_File_From_File(LIBMTP_mtpdevice_t *, char const * const, | int LIBMTP_Send_File_From_File(LIBMTP_mtpdevice_t *, char const * const, | |||
LIBMTP_file_t * const, LIBMTP_progressfunc_t const, | LIBMTP_file_t * const, LIBMTP_progressfunc_t const, | |||
void const * const); | void const * const); | |||
int LIBMTP_Send_File_From_File_Descriptor(LIBMTP_mtpdevice_t *, int const, | int LIBMTP_Send_File_From_File_Descriptor(LIBMTP_mtpdevice_t *, int const, | |||
LIBMTP_file_t * const, LIBMTP_progressfunc_t const, | LIBMTP_file_t * const, LIBMTP_progressfunc_t const, | |||
void const * const); | void const * const); | |||
int LIBMTP_Set_File_Name(LIBMTP_mtpdevice_t *, LIBMTP_file_t *, const char *); | ||||
LIBMTP_filesampledata_t *LIBMTP_new_filesampledata_t(void); | LIBMTP_filesampledata_t *LIBMTP_new_filesampledata_t(void); | |||
void LIBMTP_destroy_filesampledata_t(LIBMTP_filesampledata_t *); | void LIBMTP_destroy_filesampledata_t(LIBMTP_filesampledata_t *); | |||
int LIBMTP_Get_Representative_Sample_Format(LIBMTP_mtpdevice_t *, | int LIBMTP_Get_Representative_Sample_Format(LIBMTP_mtpdevice_t *, | |||
LIBMTP_filetype_t const, | LIBMTP_filetype_t const, | |||
LIBMTP_filesampledata_t **); | LIBMTP_filesampledata_t **); | |||
int LIBMTP_Send_Representative_Sample(LIBMTP_mtpdevice_t *, uint32_t const, | int LIBMTP_Send_Representative_Sample(LIBMTP_mtpdevice_t *, uint32_t const, | |||
LIBMTP_filesampledata_t *); | LIBMTP_filesampledata_t *); | |||
int LIBMTP_Get_Representative_Sample(LIBMTP_mtpdevice_t *, uint32_t const, | int LIBMTP_Get_Representative_Sample(LIBMTP_mtpdevice_t *, uint32_t const, | |||
LIBMTP_filesampledata_t *); | LIBMTP_filesampledata_t *); | |||
skipping to change at line 551 | skipping to change at line 552 | |||
char const * const, LIBMTP_track_t * const, | char const * const, LIBMTP_track_t * const, | |||
LIBMTP_progressfunc_t const, | LIBMTP_progressfunc_t const, | |||
void const * const); | void const * const); | |||
int LIBMTP_Send_Track_From_File_Descriptor(LIBMTP_mtpdevice_t *, | int LIBMTP_Send_Track_From_File_Descriptor(LIBMTP_mtpdevice_t *, | |||
int const, LIBMTP_track_t * const, | int const, LIBMTP_track_t * const, | |||
LIBMTP_progressfunc_t const, | LIBMTP_progressfunc_t const, | |||
void const * const); | void const * const); | |||
int LIBMTP_Update_Track_Metadata(LIBMTP_mtpdevice_t *, | int LIBMTP_Update_Track_Metadata(LIBMTP_mtpdevice_t *, | |||
LIBMTP_track_t const * const); | LIBMTP_track_t const * const); | |||
int LIBMTP_Track_Exists(LIBMTP_mtpdevice_t *, uint32_t); | int LIBMTP_Track_Exists(LIBMTP_mtpdevice_t *, uint32_t); | |||
int LIBMTP_Set_Track_Name(LIBMTP_mtpdevice_t *, LIBMTP_track_t *, const cha r *); | ||||
/** @} */ | /** @} */ | |||
/** | /** | |||
* @} | * @} | |||
* @defgroup folders The folder management API. | * @defgroup folders The folder management API. | |||
* @{ | * @{ | |||
*/ | */ | |||
LIBMTP_folder_t *LIBMTP_new_folder_t(void); | LIBMTP_folder_t *LIBMTP_new_folder_t(void); | |||
void LIBMTP_destroy_folder_t(LIBMTP_folder_t*); | void LIBMTP_destroy_folder_t(LIBMTP_folder_t*); | |||
LIBMTP_folder_t *LIBMTP_Get_Folder_List(LIBMTP_mtpdevice_t*); | LIBMTP_folder_t *LIBMTP_Get_Folder_List(LIBMTP_mtpdevice_t*); | |||
LIBMTP_folder_t *LIBMTP_Find_Folder(LIBMTP_folder_t*, uint32_t const); | LIBMTP_folder_t *LIBMTP_Find_Folder(LIBMTP_folder_t*, uint32_t const); | |||
uint32_t LIBMTP_Create_Folder(LIBMTP_mtpdevice_t*, char *, uint32_t, uint32 _t); | 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 c har *); | ||||
/** @} */ | /** @} */ | |||
/** | /** | |||
* @} | * @} | |||
* @defgroup playlists The audio/video playlist management API. | * @defgroup playlists The audio/video playlist management API. | |||
* @{ | * @{ | |||
*/ | */ | |||
LIBMTP_playlist_t *LIBMTP_new_playlist_t(void); | LIBMTP_playlist_t *LIBMTP_new_playlist_t(void); | |||
void LIBMTP_destroy_playlist_t(LIBMTP_playlist_t *); | void LIBMTP_destroy_playlist_t(LIBMTP_playlist_t *); | |||
LIBMTP_playlist_t *LIBMTP_Get_Playlist_List(LIBMTP_mtpdevice_t *); | LIBMTP_playlist_t *LIBMTP_Get_Playlist_List(LIBMTP_mtpdevice_t *); | |||
LIBMTP_playlist_t *LIBMTP_Get_Playlist(LIBMTP_mtpdevice_t *, uint32_t const ); | LIBMTP_playlist_t *LIBMTP_Get_Playlist(LIBMTP_mtpdevice_t *, uint32_t const ); | |||
int LIBMTP_Create_New_Playlist(LIBMTP_mtpdevice_t *, LIBMTP_playlist_t * co nst); | int LIBMTP_Create_New_Playlist(LIBMTP_mtpdevice_t *, LIBMTP_playlist_t * co nst); | |||
int LIBMTP_Update_Playlist(LIBMTP_mtpdevice_t *, LIBMTP_playlist_t const * const); | int LIBMTP_Update_Playlist(LIBMTP_mtpdevice_t *, LIBMTP_playlist_t const * const); | |||
int LIBMTP_Set_Playlist_Name(LIBMTP_mtpdevice_t *, LIBMTP_playlist_t *, con st char *); | ||||
/** | /** | |||
* @} | * @} | |||
* @defgroup albums The audio/video album management API. | * @defgroup albums The audio/video album management API. | |||
* @{ | * @{ | |||
*/ | */ | |||
LIBMTP_album_t *LIBMTP_new_album_t(void); | LIBMTP_album_t *LIBMTP_new_album_t(void); | |||
void LIBMTP_destroy_album_t(LIBMTP_album_t *); | void LIBMTP_destroy_album_t(LIBMTP_album_t *); | |||
LIBMTP_album_t *LIBMTP_Get_Album_List(LIBMTP_mtpdevice_t *); | LIBMTP_album_t *LIBMTP_Get_Album_List(LIBMTP_mtpdevice_t *); | |||
LIBMTP_album_t *LIBMTP_Get_Album(LIBMTP_mtpdevice_t *, uint32_t const); | LIBMTP_album_t *LIBMTP_Get_Album(LIBMTP_mtpdevice_t *, uint32_t const); | |||
int LIBMTP_Create_New_Album(LIBMTP_mtpdevice_t *, LIBMTP_album_t * const); | int LIBMTP_Create_New_Album(LIBMTP_mtpdevice_t *, LIBMTP_album_t * const); | |||
int LIBMTP_Update_Album(LIBMTP_mtpdevice_t *, LIBMTP_album_t const * const) ; | int LIBMTP_Update_Album(LIBMTP_mtpdevice_t *, LIBMTP_album_t const * const) ; | |||
int LIBMTP_Set_Album_Name(LIBMTP_mtpdevice_t *, LIBMTP_album_t *, const cha r *); | ||||
/** | /** | |||
* @} | * @} | |||
* @defgroup objects The object management API. | * @defgroup objects The object management API. | |||
* @{ | * @{ | |||
*/ | */ | |||
int LIBMTP_Delete_Object(LIBMTP_mtpdevice_t *, uint32_t); | int LIBMTP_Delete_Object(LIBMTP_mtpdevice_t *, uint32_t); | |||
int LIBMTP_Set_Object_Filename(LIBMTP_mtpdevice_t *, uint32_t , char *); | int LIBMTP_Set_Object_Filename(LIBMTP_mtpdevice_t *, uint32_t , char *); | |||
/** @} */ | /** @} */ | |||
End of changes. 6 change blocks. | ||||
2 lines changed or deleted | 7 lines changed or added | |||