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

void* LIBMTP_mtpdevice_struct::cd
 

Per device iconv() converters, only used internally

uint32_t LIBMTP_mtpdevice_struct::default_album_folder
 

Default Album folder

uint32_t LIBMTP_mtpdevice_struct::default_music_folder
 

Default music folder

uint32_t LIBMTP_mtpdevice_struct::default_organizer_folder
 

Default organizer folder

uint32_t LIBMTP_mtpdevice_struct::default_picture_folder
 

Default picture folder

uint32_t LIBMTP_mtpdevice_struct::default_playlist_folder
 

Default playlist folder

uint32_t LIBMTP_mtpdevice_struct::default_text_folder
 

Default Text folder

uint32_t LIBMTP_mtpdevice_struct::default_video_folder
 

Default video folder

uint32_t LIBMTP_mtpdevice_struct::default_zencast_folder
 

Default ZENcast folder (only Creative devices...)

LIBMTP_error_t* LIBMTP_mtpdevice_struct::errorstack
 

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

uint8_t LIBMTP_mtpdevice_struct::maximum_battery_level
 

The maximum battery level for this device

LIBMTP_mtpdevice_t* LIBMTP_mtpdevice_struct::next
 

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

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

uint8_t LIBMTP_mtpdevice_struct::object_bitsize
 

Object bitsize, typically 32 or 64.

void* LIBMTP_mtpdevice_struct::params
 

Parameters for this device, must be cast into (PTPParams*) before internal use.

LIBMTP_devicestorage_t* 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.

void* LIBMTP_mtpdevice_struct::usbinfo
 

USB device for this device, must be cast into (PTP_USB*) before internal use.


The documentation for this struct was generated from the following file:
Generated on Mon Jan 5 21:05:33 2009 for libmtp by  doxygen 1.4.6