LIBMTP_mtpdevice_t

Type Alias LIBMTP_mtpdevice_t 

Source
pub type LIBMTP_mtpdevice_t = LIBMTP_mtpdevice_struct;
Expand description

< @see LIBMTP_device_extension_struct

Aliased Type§

#[repr(C)]
pub struct LIBMTP_mtpdevice_t {
Show 18 fields pub object_bitsize: u8, pub params: *mut c_void, pub usbinfo: *mut c_void, pub storage: *mut LIBMTP_devicestorage_struct, pub errorstack: *mut LIBMTP_error_struct, pub maximum_battery_level: u8, pub default_music_folder: u32, pub default_playlist_folder: u32, pub default_picture_folder: u32, pub default_video_folder: u32, pub default_organizer_folder: u32, pub default_zencast_folder: u32, pub default_album_folder: u32, pub default_text_folder: u32, pub cd: *mut c_void, pub extensions: *mut LIBMTP_device_extension_struct, pub cached: i32, pub next: *mut LIBMTP_mtpdevice_struct,
}

Fields§

§object_bitsize: u8

Object bitsize, typically 32 or 64.

§params: *mut c_void

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

§usbinfo: *mut c_void

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

§storage: *mut LIBMTP_devicestorage_struct

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. @see LIBMTP_Get_Storage()

§errorstack: *mut LIBMTP_error_struct

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

§maximum_battery_level: u8

The maximum battery level for this device

§default_music_folder: u32

Default music folder

§default_playlist_folder: u32

Default playlist folder

§default_picture_folder: u32

Default picture folder

§default_video_folder: u32

Default video folder

§default_organizer_folder: u32

Default organizer folder

§default_zencast_folder: u32

Default ZENcast folder (only Creative devices…)

§default_album_folder: u32

Default Album folder

§default_text_folder: u32

Default Text folder

§cd: *mut c_void

Per device iconv() converters, only used internally

§extensions: *mut LIBMTP_device_extension_struct

Extension list

§cached: i32

Whether the device uses caching, only used internally

§next: *mut LIBMTP_mtpdevice_struct

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