.TH "LIBMTP_mtpdevice_struct" 3 "Wed Apr 19 2017" "Version 1.1.12" "libmtp" \" -*- nroff -*- .ad l .nh .SH NAME libmtp \- LIBMTP_mtpdevice_struct .SH SYNOPSIS .br .PP .PP \fC#include \fP .SS "Data Fields" .in +1c .ti -1c .RI "uint8_t \fBobject_bitsize\fP" .br .ti -1c .RI "void * \fBparams\fP" .br .ti -1c .RI "void * \fBusbinfo\fP" .br .ti -1c .RI "\fBLIBMTP_devicestorage_t\fP * \fBstorage\fP" .br .ti -1c .RI "\fBLIBMTP_error_t\fP * \fBerrorstack\fP" .br .ti -1c .RI "uint8_t \fBmaximum_battery_level\fP" .br .ti -1c .RI "uint32_t \fBdefault_music_folder\fP" .br .ti -1c .RI "uint32_t \fBdefault_playlist_folder\fP" .br .ti -1c .RI "uint32_t \fBdefault_picture_folder\fP" .br .ti -1c .RI "uint32_t \fBdefault_video_folder\fP" .br .ti -1c .RI "uint32_t \fBdefault_organizer_folder\fP" .br .ti -1c .RI "uint32_t \fBdefault_zencast_folder\fP" .br .ti -1c .RI "uint32_t \fBdefault_album_folder\fP" .br .ti -1c .RI "uint32_t \fBdefault_text_folder\fP" .br .ti -1c .RI "void * \fBcd\fP" .br .ti -1c .RI "\fBLIBMTP_device_extension_t\fP * \fBextensions\fP" .br .ti -1c .RI "int \fBcached\fP" .br .ti -1c .RI "\fBLIBMTP_mtpdevice_t\fP * \fBnext\fP" .br .in -1c .SH "Detailed Description" .PP Main MTP device object struct .PP \fBExamples: \fP .in +1c \fBdelfile\&.c\fP, \fBdetect\&.c\fP, \fBfiles\&.c\fP, \fBfolders\&.c\fP, \fBgetfile\&.c\fP, \fBgetplaylist\&.c\fP, \fBnewfolder\&.c\fP, \fBplaylists\&.c\fP, \fBsendfile\&.c\fP, \fBsendtr\&.c\fP, \fBtracks\&.c\fP, and \fBtrexist\&.c\fP\&. .SH "Field Documentation" .PP .SS "int LIBMTP_mtpdevice_struct::cached" Whether the device uses caching, only used internally .PP Referenced by LIBMTP_Get_Filemetadata(), LIBMTP_Get_Files_And_Folders(), and LIBMTP_Open_Raw_Device_Uncached()\&. .SS "void* LIBMTP_mtpdevice_struct::cd" Per device iconv() converters, only used internally .SS "uint32_t LIBMTP_mtpdevice_struct::default_album_folder" Default Album folder .PP Referenced by LIBMTP_Create_New_Album(), LIBMTP_Dump_Device_Info(), and LIBMTP_Open_Raw_Device_Uncached()\&. .SS "uint32_t LIBMTP_mtpdevice_struct::default_music_folder" Default music folder .PP Referenced by LIBMTP_Create_New_Album(), LIBMTP_Create_New_Playlist(), LIBMTP_Dump_Device_Info(), and LIBMTP_Open_Raw_Device_Uncached()\&. .SS "uint32_t LIBMTP_mtpdevice_struct::default_organizer_folder" Default organizer folder .PP Referenced by LIBMTP_Dump_Device_Info(), and LIBMTP_Open_Raw_Device_Uncached()\&. .SS "uint32_t LIBMTP_mtpdevice_struct::default_picture_folder" Default picture folder .PP Referenced by LIBMTP_Dump_Device_Info(), and LIBMTP_Open_Raw_Device_Uncached()\&. .SS "uint32_t LIBMTP_mtpdevice_struct::default_playlist_folder" Default playlist folder .PP Referenced by LIBMTP_Create_New_Playlist(), LIBMTP_Dump_Device_Info(), and LIBMTP_Open_Raw_Device_Uncached()\&. .SS "uint32_t LIBMTP_mtpdevice_struct::default_text_folder" Default Text folder .PP Referenced by LIBMTP_Dump_Device_Info(), and LIBMTP_Open_Raw_Device_Uncached()\&. .SS "uint32_t LIBMTP_mtpdevice_struct::default_video_folder" Default video folder .PP Referenced by LIBMTP_Dump_Device_Info(), and LIBMTP_Open_Raw_Device_Uncached()\&. .SS "uint32_t LIBMTP_mtpdevice_struct::default_zencast_folder" Default ZENcast folder (only Creative devices\&.\&.\&.) .PP Referenced by LIBMTP_Dump_Device_Info(), and LIBMTP_Open_Raw_Device_Uncached()\&. .SS "\fBLIBMTP_error_t\fP* LIBMTP_mtpdevice_struct::errorstack" The error stack\&. This shall be handled using the error getting and clearing functions, not by dereferencing this list\&. .PP Referenced by LIBMTP_Clear_Errorstack(), LIBMTP_Dump_Errorstack(), LIBMTP_Get_Errorstack(), and LIBMTP_Open_Raw_Device_Uncached()\&. .SS "\fBLIBMTP_device_extension_t\fP* LIBMTP_mtpdevice_struct::extensions" Extension list .PP Referenced by LIBMTP_Dump_Device_Info(), LIBMTP_Open_Raw_Device_Uncached(), and LIBMTP_Release_Device()\&. .SS "uint8_t LIBMTP_mtpdevice_struct::maximum_battery_level" The maximum battery level for this device .PP Referenced by LIBMTP_Get_Batterylevel(), and LIBMTP_Open_Raw_Device_Uncached()\&. .SS "\fBLIBMTP_mtpdevice_t\fP* LIBMTP_mtpdevice_struct::next" Pointer to next device in linked list; NULL if this is the last device .PP Referenced by LIBMTP_Number_Devices_In_List(), and LIBMTP_Release_Device_List()\&. .SS "uint8_t LIBMTP_mtpdevice_struct::object_bitsize" Object bitsize, typically 32 or 64\&. .PP Referenced by LIBMTP_Dump_Device_Info(), and LIBMTP_Open_Raw_Device_Uncached()\&. .SS "void* LIBMTP_mtpdevice_struct::params" Parameters for this device, must be cast into \fC\fP(PTPParams*) before internal use\&. .PP Referenced by LIBMTP_Check_Capability(), LIBMTP_Create_Folder(), LIBMTP_Delete_Object(), LIBMTP_Dump_Device_Info(), LIBMTP_Format_Storage(), LIBMTP_Get_Album(), LIBMTP_Get_Album_List_For_Storage(), LIBMTP_Get_Allowed_Property_Values(), LIBMTP_Get_Batterylevel(), LIBMTP_Get_Deviceversion(), LIBMTP_Get_File_To_File_Descriptor(), LIBMTP_Get_File_To_Handler(), LIBMTP_Get_Filelisting_With_Callback(), LIBMTP_Get_Filemetadata(), LIBMTP_Get_Files_And_Folders(), LIBMTP_Get_Folder_List_For_Storage(), LIBMTP_Get_Friendlyname(), LIBMTP_Get_Manufacturername(), LIBMTP_Get_Modelname(), LIBMTP_Get_Playlist(), LIBMTP_Get_Playlist_List(), LIBMTP_Get_Representative_Sample(), LIBMTP_Get_Representative_Sample_Format(), LIBMTP_Get_Serialnumber(), LIBMTP_Get_Storage(), LIBMTP_Get_Supported_Filetypes(), LIBMTP_Get_Syncpartner(), LIBMTP_Get_Thumbnail(), LIBMTP_Get_Tracklisting_With_Callback_For_Storage(), LIBMTP_Get_Trackmetadata(), LIBMTP_Is_Property_Supported(), LIBMTP_Open_Raw_Device_Uncached(), LIBMTP_Read_Event(), LIBMTP_Read_Event_Async(), LIBMTP_Release_Device(), LIBMTP_Reset_Device(), LIBMTP_Send_File_From_File_Descriptor(), LIBMTP_Send_File_From_Handler(), LIBMTP_Send_Representative_Sample(), LIBMTP_Send_Track_From_File_Descriptor(), LIBMTP_Send_Track_From_Handler(), LIBMTP_Set_Friendlyname(), LIBMTP_Set_Syncpartner(), LIBMTP_Track_Exists(), LIBMTP_Update_Track_Metadata(), utf16_to_utf8(), and utf8_to_utf16()\&. .SS "\fBLIBMTP_devicestorage_t\fP* LIBMTP_mtpdevice_struct::storage" The storage for this device, do not use strings in here without copying them first, and beware that this list may be rebuilt at any time\&. .PP \fBSee also:\fP .RS 4 \fBLIBMTP_Get_Storage()\fP .RE .PP .PP \fBExamples: \fP .in +1c \fBdetect\&.c\fP, \fBfiles\&.c\fP, \fBfolders\&.c\fP, \fBsendtr\&.c\fP, and \fBtracks\&.c\fP\&. .PP Referenced by LIBMTP_Dump_Device_Info(), LIBMTP_Get_Storage(), and LIBMTP_Open_Raw_Device_Uncached()\&. .SS "void* LIBMTP_mtpdevice_struct::usbinfo" USB device for this device, must be cast into \fC\fP(PTP_USB*) before internal use\&. .PP Referenced by LIBMTP_Create_Folder(), LIBMTP_Create_New_Playlist(), LIBMTP_Dump_Device_Info(), LIBMTP_Get_Batterylevel(), LIBMTP_Get_File_To_File_Descriptor(), LIBMTP_Get_File_To_Handler(), LIBMTP_Get_Files_And_Folders(), LIBMTP_Get_Playlist(), LIBMTP_Get_Playlist_List(), LIBMTP_Get_Supported_Filetypes(), LIBMTP_Get_Tracklisting_With_Callback_For_Storage(), LIBMTP_Get_Trackmetadata(), LIBMTP_Open_Raw_Device_Uncached(), LIBMTP_Release_Device(), LIBMTP_Send_File_From_File_Descriptor(), LIBMTP_Send_File_From_Handler(), LIBMTP_Send_Representative_Sample(), LIBMTP_Send_Track_From_File_Descriptor(), LIBMTP_Send_Track_From_Handler(), LIBMTP_Update_Playlist(), and LIBMTP_Update_Track_Metadata()\&. .SH "Author" .PP Generated automatically by Doxygen for libmtp from the source code\&.