|
This function clears the error stack of a device and frees any memory used by it. Call this when you're finished with using the errors.
|
|
Detect the raw MTP device descriptors and return a list of of the devices found.
|
|
This function dumps out a large chunk of textual information provided from the PTP protocol and additionally some extra MTP-specific information where applicable.
|
|
This function dumps the error stack to
|
|
Formats device storage (if the device supports the operation). WARNING: This WILL delete all data from the device. Make sure you've got confirmation from the user BEFORE you call this function.
|
|
This function retrieves the current battery level on the device.
|
|
Get the first connected MTP device node in the linked list of devices. Currently this only provides access to USB devices
|
|
This function returns the device (public key) certificate as an XML document string from the device.
|
|
This retrieves the device version (hardware and firmware version) of an MTP device.
|
|
This returns the error stack for a device in case you need to either reference the error numbers (e.g. when creating multilingual apps with multiple-language text representations for each error number) or when you need to build a multi-line error text widget or something like that. You need to call the
|
|
Get the first (as in "first in the list of") connected MTP device.
|
|
This retrieves the "friendly name" of an MTP device. Usually this is simply the name of the owner or something like "John Doe's Digital Audio Player". This property should be supported by all MTP devices.
|
|
This retrieves the manufacturer name of an MTP device.
|
|
This retrieves the model name (often equal to product name) of an MTP device.
|
|
This function returns the secure time as an XML document string from the device.
|
|
This retrieves the serial number of an MTP device.
|
|
This function updates all the storage id's of a device and their properties, then creates a linked list and puts the list head into the device struct. It also optionally sorts this list. If you want to display storage information in your application you should call this function, then dereference the device struct (
You need to call this everytime you want to update the
WARNING: since this list is dynamically updated, do not reference its fields in external applications by pointer! E.g do not put a reference to any
|
|
This function retrieves a list of supported file types, i.e. the file types that this device claims it supports, e.g. audio file types that the device can play etc. This list is mitigated to inlcude the file types that libmtp can handle, i.e. it will not list filetypes that libmtp will handle internally like playlists and folders.
|
|
This retrieves the syncronization partner of an MTP device. This property should be supported by all MTP devices.
|
|
Get the number of devices that are available in the listed device list
|
|
This function opens a device from a raw device. It is the preferred way to access devices in the new interface where several devices can come and go as the library is working on a certain device.
|
|
This closes and releases an allocated MTP device.
|
|
This closes and releases an allocated MTP device.
|
|
This resets a device in case it supports the
|
|
Sets the "friendly name" of an MTP device.
|
|
Sets the synchronization partner of an MTP device. Note that we have no idea what the effect of setting this to "foobar" may be. But the general idea seems to be to tell which program shall synchronize with this device and tell others to leave it alone.
|