Rockbox Development > Starting Development and Compiling
data / file storage format
andrewroth:
Hi,
I'd like to write a simple workout plugin. The idea is to run that plugin during a workout to remind me what exercise to do next, how many sets, reps, etc. I followed the ubuntu guide and am able to compile rockbox and the uisimulator.
Now, I'm wondering how I should store workout info on rockbox. I need very simple relations, like a workout has many exercises that have many sets.
Are there any libraries like sqlite, tpl, etc. that are known to work on rockbox? Almost all libraries I look in to require malloc. At a bare minimum is there maybe XML or CSV helpers I can use?
Thanks.
saratoga:
I think sqlite alone uses a couple times as much memory as you have for your entire plugin, so its probably not a good option. I don't think we have any sort of built in file format.
andrewroth:
Ah, I see. What is the limit for a plugin anyways?
gevaerts:
--- Quote from: saratoga on August 17, 2010, 11:38:54 PM ---I think sqlite alone uses a couple times as much memory as you have for your entire plugin.
--- End quote ---
That depends. sqlite won't run on some of our low-memory targets, but it's small enough to fit in the 512K buffer many targets have. See http://www.rockbox.org/tracker/task/8852 for some details
saratoga:
--- Quote from: andrewroth on August 18, 2010, 01:26:24 AM ---Ah, I see. What is the limit for a plugin anyways?
--- End quote ---
Depends on your player and if you want to have music running at the same time. For most targets its 512KB with playback also working. On some its a lot less.
Navigation
[0] Message Index
[#] Next page
Go to full version