LIBMTP_mtpdevice_struct Struct Reference
[libmtp data structures]

#include <libmtp.h>


Data Fields

uint8_t object_bitsize
void * params
void * usbinfo
LIBMTP_devicestorage_tstorage
LIBMTP_error_terrorstack
uint8_t maximum_battery_level
uint32_t default_music_folder
uint32_t default_playlist_folder
uint32_t default_picture_folder
uint32_t default_video_folder
uint32_t default_organizer_folder
uint32_t default_zencast_folder
uint32_t default_album_folder
uint32_t default_text_folder
void * cd
LIBMTP_mtpdevice_tnext


Detailed Description

Main MTP device object struct
Examples:

delfile.c, detect.c, files.c, folders.c, getfile.c, getplaylist.c, newfolder.c, playlists.c, sendfile.c, sendtr.c, tracks.c, and trexist.c.


Field Documentation

Object bitsize, typically 32 or 64.

Referenced by LIBMTP_Dump_Device_Info(), LIBMTP_Get_Filelisting_With_Callback(), and LIBMTP_Get_Filemetadata().

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.

Referenced by LIBMTP_Dump_Device_Info(), LIBMTP_Get_Storage(), and LIBMTP_Send_File_From_File_Descriptor().

The error stack. This shall be handled using the error getting and clearing functions, not by dereferencing this list.

Referenced by LIBMTP_Clear_Errorstack(), LIBMTP_Dump_Errorstack(), and LIBMTP_Get_Errorstack().

The maximum battery level for this device

Referenced by LIBMTP_Get_Batterylevel().

Default music folder

Referenced by LIBMTP_Dump_Device_Info(), and LIBMTP_Send_File_From_File_Descriptor().

Default playlist folder

Referenced by LIBMTP_Create_New_Playlist(), and LIBMTP_Dump_Device_Info().

Default picture folder

Referenced by LIBMTP_Dump_Device_Info(), and LIBMTP_Send_File_From_File_Descriptor().

Default video folder

Referenced by LIBMTP_Dump_Device_Info(), and LIBMTP_Send_File_From_File_Descriptor().

Default organizer folder

Referenced by LIBMTP_Dump_Device_Info(), and LIBMTP_Send_File_From_File_Descriptor().

Default ZENcast folder (only Creative devices...)

Referenced by LIBMTP_Dump_Device_Info().

Default Album folder

Referenced by LIBMTP_Create_New_Album(), and LIBMTP_Dump_Device_Info().

Default Text folder

Referenced by LIBMTP_Dump_Device_Info(), and LIBMTP_Send_File_From_File_Descriptor().

Per device iconv() converters, only used internally

Pointer to next device in linked list; NULL if this is the last device

Examples:
detect.c, files.c, folders.c, and tracks.c.

Referenced by LIBMTP_Get_First_Device(), LIBMTP_Number_Devices_In_List(), and LIBMTP_Release_Device_List().


The documentation for this struct was generated from the following file:

Generated on Thu Apr 10 16:24:14 2008 for libmtp by  doxygen 1.5.5