Rockbox

Tasklist

FS#12079 - Support for new commands in iap.c

Attached to Project: Rockbox
Opened by Ophir Lojkine (lovasoa) - Sunday, 24 April 2011, 23:32 GMT
Last edited by Bertrik Sikken (bertrik) - Wednesday, 27 April 2011, 06:25 GMT
Task Type Patches
Category Drivers
Status Closed
Assigned To No-one
Operating System All players
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

This is my first consequent patch to rockbox, so I may have done a lot of mistakes, please be indulgent.

This patch implements several new commands in iap.c to support some stuff related to playlists. Basically, this allows me to access quickly my playlists from my iPod dock.
This task depends upon

Closed by  Bertrik Sikken (bertrik)
Wednesday, 27 April 2011, 06:25 GMT
Reason for closing:  Accepted
Additional comments about closing:  Committed as SVN r29788, thanks!
Comment by Ophir Lojkine (lovasoa) - Sunday, 24 April 2011, 23:36 GMT
I didn't join the patch...
Comment by Bertrik Sikken (bertrik) - Monday, 25 April 2011, 11:43 GMT
I cleaned up the patch a bit:
* removed tabs, replaced them by spaces (please read docs/CONTRIBUTING)
* renamed current_item to cur_dbrecord (I think this is more descriptive)
* commented commands according to specification
* fixed calculation of item_offset (bytes not shifted properly)
* fixed conflict with lingo0/cmd6

I'd like to have this reviewed by another rockbox developer with regards to the playlist logic.
Comment by Ophir Lojkine (lovasoa) - Monday, 25 April 2011, 13:29 GMT
Wow, you have been very fast. You motivated me to uget_playlist_namepdate my patch again.
- I changed get_playlist_name() to avoid buffer overflow,
- added a check to verify that the files returned are actually playlists
- and prevented the remote device to print files extensions

Again, thanks for your interest...
Comment by Ophir Lojkine (lovasoa) - Monday, 25 April 2011, 13:30 GMT
Hmmm; Again! I didn't join the patch! It should be possible to edit previous posts!

Loading...