path: root/common/file-list.c
Commit message (Collapse)AuthorAgeFilesLines
* file_list: Add ubi flagSascha Hauer2018-01-171-0/+3
| | | | | | | | | | | This flag is added to better support flashing UBI image with Android sparse images. Android fastboot splits images which are bigger than the free memory into multiple images which are then transferred in multiple fastboot sessions. In a session which is not the first one we can no longer detect if an image is a UBI image or not, so we need a flag to make this explicit. Signed-off-by: Sascha Hauer <>
* file_list: Add error messagesSascha Hauer2017-09-271-4/+9
| | | | | | | Add error messages when file list parsing fails. Also, forward the error from file_list_parse_one() instead of using -EINVAL for every error. Signed-off-by: Sascha Hauer <>
* file_list: Add GPL header to fileSascha Hauer2017-09-271-0/+11
| | | | Signed-off-by: Sascha Hauer <>
* file_list: Fix memory leak in failure pathSascha Hauer2017-09-271-1/+1
| | | | | | | In case of a parse error not only the list header has to be freed, but also the entries. Use file_list_free() for this purpose. Signed-off-by: Sascha Hauer <>
* file_list: Allow only unique names on listSascha Hauer2017-09-271-1/+7
| | | | | | The key to a file_list is it's name, so ensure it's unique. Signed-off-by: Sascha Hauer <>
* file_list: Add function to get entry by its nameSascha Hauer2017-09-271-0/+12
| | | | Signed-off-by: Sascha Hauer <>
* file_list: Add function to add an entry to the listSascha Hauer2017-09-271-9/+19
| | | | | | | | Add file_list_add_entry() to add a single entry to a file_list. Then use it in file_list_parse_one() instead of open coding adding a new entry. Signed-off-by: Sascha Hauer <>
* Add function to parse a string in dfu formatSascha Hauer2014-07-221-0/+113
The dfu command parses a string which contains a list of devices and flags. This format is useful for other users aswell, so add common helper functions to parse it and let the dfu command use this format. Signed-off-by: Sascha Hauer <>