summaryrefslogtreecommitdiff
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* convert examples to use LIBMTP_FreeMemoryMarcus Meissner2023-04-226-16/+16
|
* remove dependency on ptp.hMarcus Meissner2023-04-161-5/+4
|
* merge over previously missing copyright headers from chrome libmtp forkMarcus Meissner2022-11-151-0/+17
|
* added optional serial number parameter to 'mtp-delfile'Holger Schemel2020-10-271-14/+3
|
* added optional serial number parameter to 'mtp-getfile'Holger Schemel2020-10-271-14/+3
|
* added serial number of device to output of 'mtp-files'Holger Schemel2020-10-271-2/+7
|
* added optional device ID parameter to 'mtp-delfile'Holger Schemel2020-07-213-7/+35
|
* fixed usage text for 'mtp-delfile' according to implementationHolger Schemel2020-07-211-1/+1
|
* added optional device ID parameter to 'mtp-getfile'Holger Schemel2020-07-203-8/+37
|
* fixed length in string comparisonsHolger Schemel2020-07-201-2/+2
|
* Add LIBMTP_FILES_AND_FOLDERS_ROOT and fix examplesStanisław Pitucha2017-02-045-5/+5
| | | | | | | | | Examples assumed that parent id 0 will list only the top directory, but actually that's an id for all files (it does happen to correspond to the reported parent id however). The actual id to be used for the top folder is 0xffffffff. Add a new define to make the value more obvious as well.
* check read return in albumartMarcus Meissner2015-10-041-2/+5
|
* simplify the reader logic, there is no 16 bit entity involvedMarcus Meissner2015-10-041-15/+7
| | | | we just copy around the data directly
* remove some memory leaks (Coverity)Marcus Meissner2015-10-041-3/+19
|
* sendtr: fixed memory leak in error exitMarcus Meissner2015-10-041-6/+5
|
* examples: detect: fresh up detectLinus Walleij2015-08-221-32/+42
| | | | | | | | Make the detect algorithm use the raw interface properly with Get_Files_And_Folders() and restore the certificate fetch for Creative devices only, we know these work. Signed-off-by: Linus Walleij <triad@df.lth.se>
* examples: albums: retire cached codeLinus Walleij2015-08-211-14/+58
| | | | | | | | | | | The new uncached device access interface is obviously the way forward for all applications, start retiring the old method of traversing the devices in the examples. The output looks the same after this change, it just uses the raw device interface to get the album listing iteratively. Signed-off-by: Linus Walleij <triad@df.lth.se>
* examples: tracks: retire cached codeLinus Walleij2015-08-212-21/+62
| | | | | | | | | | | The new uncached device access interface is obviously the way forward for all applications, start retiring the old method of traversing the devices in the examples. The output looks the same after this change, it just uses the raw device interface to get the track listing iteratively. Signed-off-by: Linus Walleij <triad@df.lth.se>
* examples: files: retire cached codeLinus Walleij2015-08-211-23/+56
| | | | | | | | | | | The new uncached device access interface is obviously the way forward for all applications, start retiring the old method of traversing the devices in the examples. The output looks the same after this change, it just uses the raw device interface to get the track listing iteratively. Signed-off-by: Linus Walleij <triad@df.lth.se>
* allocate albuminfo and trackinfo later, to avoidMarcus Meissner2015-04-111-3/+6
| | | | leaking it in error exits
* free allocated memory on exit (Coverity)Marcus Meissner2015-04-111-2/+10
|
* Fix memory leak in mtp-filetree example.Lei Zhang2013-11-061-1/+7
| | | | | Signed-off-by: Lei Zhang <thestig@google.com> Signed-off-by: Linus Walleij <triad@df.lth.se>
* Do not use legacy device interface in mtp-folders.Lei Zhang2013-11-061-7/+15
| | | | | Signed-off-by: Lei Zhang <thestig@google.com> Signed-off-by: Linus Walleij <triad@df.lth.se>
* Oops.. restore examples to their original debug flags.Catalin Patulea2012-07-304-4/+4
| | | | | Signed-off-by: Catalin Patulea <cat@vv.carleton.ca> Signed-off-by: Linus Walleij <triad@df.lth.se>
* Clean up related to debug flags.Catalin Patulea2012-07-204-5/+5
| | | | | Signed-off-by: Catalin Patulea <cat@vv.carleton.ca> Signed-off-by: Linus Walleij <triad@df.lth.se>
* Beef up UTF-8 detection.Catalin Patulea2012-07-181-5/+10
| | | | Signed-off-by: Catalin Patulea <cat@vv.carleton.ca>
* Venkateswarma found this bug in sendtr.c:Venkateswara Rao Mandela2012-05-161-5/+28
| | | | | | | | | | | | | > I have found the cause of the album names problem I mentioned earlier. > In sendtr.c, there is a > check on album name and album artist (or) album name and composer for > matching. I added a > fall back check on album name only (like gMTP) and could get all the > tracks into one album. Would > you be interested in pulling this in? Signed-off-by: Venkateswara Rao Mandela <venkat.mandela@gmail.com> Signed-off-by: Linus Walleij <triad@df.lth.se>
* Fix some confused iteratorsLinus Walleij2012-01-124-55/+54
| | | | Signed-off-by: Linus Walleij <triad@df.lth.se>
* Add a new interface for getting the folder list for a certainLinus Walleij2011-03-052-11/+26
| | | | | storage, useful in file handling: LIBMTP_Get_Folder_List_For_Storage()
* More API changesLinus Walleij2011-03-052-13/+12
|
* Refactor and revamp the new interface a bit.Linus Walleij2011-03-054-13/+168
| | | | Introduce new mtp-filetree test program for the new interface.
* Add proper .gitignore filesLinus Walleij2011-01-232-25/+3
|
* Fixes missing connect.h fileLinus Walleij2011-01-231-1/+1
| | | | Signed-off-by: Linus Walleij <triad@df.lth.se>
* Clean up the making of examplesLinus Walleij2010-12-051-19/+19
|
* Moved mtp-hotplug to separate util/ dirLinus Walleij2010-11-302-209/+1
|
* Drop some old udev styleingLinus Walleij2010-11-301-26/+20
|
* Tag on ID_MTP_DEVICE and ID_MEDIA_PLAYER to the udev environmentLinus Walleij2010-11-281-2/+2
| | | | from hotplug.c.
* Set the ID_MUSIC_PLAYER environment variable for udevLinus Walleij2010-11-241-1/+1
|
* Missed to check in this file, mea culpa.Linus Walleij2010-10-181-0/+37
|
* Collect headers for connect in a single header and propagateLinus Walleij2010-10-176-243/+227
| | | | error codes.
* Exit sendfile with 1 on error.Linus Walleij2010-10-171-4/+5
|
* A new device and sendtr prototype fixupLinus Walleij2010-01-303-16/+24
|
* Fix the symlink creation problem.Linus Walleij2010-01-191-5/+5
|
* You can never get enough whitespaceLinus Walleij2009-11-071-20/+20
|
* Add a new function to API to enable debug modenicklas792009-09-283-3/+36
| | | | | | | | | | | | | | | | | To avoid build and build only to enable (or disable) debug mode, we work now as the lib libusb :) As libusb, you can do : LIBMTP_Set_Debug(flags); or use an environnement variable : export LIBMTP_DEBUG=flags flags value details : * 0x00 [0000 0000] : no debug (default) * 0x01 [0000 0001] : PTP debug * 0x02 [0000 0010] : Playlist debug * 0x04 [0000 0100] : USB debug * 0x08 [0000 1000] : USB data debug
* Add 'p' and 's' command line optionsnicklas792009-09-282-8/+24
| | | | | | Add p (parent_id) and s (storage_id) to command mtp-albumart and mtp-newplaylit. It's usefull for the devices who have several mass storage units.
* Patch for quiet modeLinus Walleij2009-09-211-44/+32
|
* Detect VCF filesLinus Walleij2009-06-201-0/+2
|
* printf pretty printLinus Walleij2009-06-151-2/+1
|
* Largefile fixup from Marcus.Linus Walleij2009-06-154-28/+5
|