Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | convert examples to use LIBMTP_FreeMemory | Marcus Meissner | 2023-04-22 | 6 | -16/+16 |
| | |||||
* | remove dependency on ptp.h | Marcus Meissner | 2023-04-16 | 1 | -5/+4 |
| | |||||
* | merge over previously missing copyright headers from chrome libmtp fork | Marcus Meissner | 2022-11-15 | 1 | -0/+17 |
| | |||||
* | added optional serial number parameter to 'mtp-delfile' | Holger Schemel | 2020-10-27 | 1 | -14/+3 |
| | |||||
* | added optional serial number parameter to 'mtp-getfile' | Holger Schemel | 2020-10-27 | 1 | -14/+3 |
| | |||||
* | added serial number of device to output of 'mtp-files' | Holger Schemel | 2020-10-27 | 1 | -2/+7 |
| | |||||
* | added optional device ID parameter to 'mtp-delfile' | Holger Schemel | 2020-07-21 | 3 | -7/+35 |
| | |||||
* | fixed usage text for 'mtp-delfile' according to implementation | Holger Schemel | 2020-07-21 | 1 | -1/+1 |
| | |||||
* | added optional device ID parameter to 'mtp-getfile' | Holger Schemel | 2020-07-20 | 3 | -8/+37 |
| | |||||
* | fixed length in string comparisons | Holger Schemel | 2020-07-20 | 1 | -2/+2 |
| | |||||
* | Add LIBMTP_FILES_AND_FOLDERS_ROOT and fix examples | Stanisław Pitucha | 2017-02-04 | 5 | -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 albumart | Marcus Meissner | 2015-10-04 | 1 | -2/+5 |
| | |||||
* | simplify the reader logic, there is no 16 bit entity involved | Marcus Meissner | 2015-10-04 | 1 | -15/+7 |
| | | | | we just copy around the data directly | ||||
* | remove some memory leaks (Coverity) | Marcus Meissner | 2015-10-04 | 1 | -3/+19 |
| | |||||
* | sendtr: fixed memory leak in error exit | Marcus Meissner | 2015-10-04 | 1 | -6/+5 |
| | |||||
* | examples: detect: fresh up detect | Linus Walleij | 2015-08-22 | 1 | -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 code | Linus Walleij | 2015-08-21 | 1 | -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 code | Linus Walleij | 2015-08-21 | 2 | -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 code | Linus Walleij | 2015-08-21 | 1 | -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 avoid | Marcus Meissner | 2015-04-11 | 1 | -3/+6 |
| | | | | leaking it in error exits | ||||
* | free allocated memory on exit (Coverity) | Marcus Meissner | 2015-04-11 | 1 | -2/+10 |
| | |||||
* | Fix memory leak in mtp-filetree example. | Lei Zhang | 2013-11-06 | 1 | -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 Zhang | 2013-11-06 | 1 | -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 Patulea | 2012-07-30 | 4 | -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 Patulea | 2012-07-20 | 4 | -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 Patulea | 2012-07-18 | 1 | -5/+10 |
| | | | | Signed-off-by: Catalin Patulea <cat@vv.carleton.ca> | ||||
* | Venkateswarma found this bug in sendtr.c: | Venkateswara Rao Mandela | 2012-05-16 | 1 | -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 iterators | Linus Walleij | 2012-01-12 | 4 | -55/+54 |
| | | | | Signed-off-by: Linus Walleij <triad@df.lth.se> | ||||
* | Add a new interface for getting the folder list for a certain | Linus Walleij | 2011-03-05 | 2 | -11/+26 |
| | | | | | storage, useful in file handling: LIBMTP_Get_Folder_List_For_Storage() | ||||
* | More API changes | Linus Walleij | 2011-03-05 | 2 | -13/+12 |
| | |||||
* | Refactor and revamp the new interface a bit. | Linus Walleij | 2011-03-05 | 4 | -13/+168 |
| | | | | Introduce new mtp-filetree test program for the new interface. | ||||
* | Add proper .gitignore files | Linus Walleij | 2011-01-23 | 2 | -25/+3 |
| | |||||
* | Fixes missing connect.h file | Linus Walleij | 2011-01-23 | 1 | -1/+1 |
| | | | | Signed-off-by: Linus Walleij <triad@df.lth.se> | ||||
* | Clean up the making of examples | Linus Walleij | 2010-12-05 | 1 | -19/+19 |
| | |||||
* | Moved mtp-hotplug to separate util/ dir | Linus Walleij | 2010-11-30 | 2 | -209/+1 |
| | |||||
* | Drop some old udev styleing | Linus Walleij | 2010-11-30 | 1 | -26/+20 |
| | |||||
* | Tag on ID_MTP_DEVICE and ID_MEDIA_PLAYER to the udev environment | Linus Walleij | 2010-11-28 | 1 | -2/+2 |
| | | | | from hotplug.c. | ||||
* | Set the ID_MUSIC_PLAYER environment variable for udev | Linus Walleij | 2010-11-24 | 1 | -1/+1 |
| | |||||
* | Missed to check in this file, mea culpa. | Linus Walleij | 2010-10-18 | 1 | -0/+37 |
| | |||||
* | Collect headers for connect in a single header and propagate | Linus Walleij | 2010-10-17 | 6 | -243/+227 |
| | | | | error codes. | ||||
* | Exit sendfile with 1 on error. | Linus Walleij | 2010-10-17 | 1 | -4/+5 |
| | |||||
* | A new device and sendtr prototype fixup | Linus Walleij | 2010-01-30 | 3 | -16/+24 |
| | |||||
* | Fix the symlink creation problem. | Linus Walleij | 2010-01-19 | 1 | -5/+5 |
| | |||||
* | You can never get enough whitespace | Linus Walleij | 2009-11-07 | 1 | -20/+20 |
| | |||||
* | Add a new function to API to enable debug mode | nicklas79 | 2009-09-28 | 3 | -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 options | nicklas79 | 2009-09-28 | 2 | -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 mode | Linus Walleij | 2009-09-21 | 1 | -44/+32 |
| | |||||
* | Detect VCF files | Linus Walleij | 2009-06-20 | 1 | -0/+2 |
| | |||||
* | printf pretty print | Linus Walleij | 2009-06-15 | 1 | -2/+1 |
| | |||||
* | Largefile fixup from Marcus. | Linus Walleij | 2009-06-15 | 4 | -28/+5 |
| |