Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  data / file storage format
« previous next »
  • Print
Pages: [1]

Author Topic: data / file storage format  (Read 2496 times)

Offline andrewroth

  • Member
  • *
  • Posts: 6
data / file storage format
« on: August 17, 2010, 11:11:13 PM »
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.
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: data / file storage format
« Reply #1 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, so its probably not a good option.  I don't think we have any sort of built in file format.
Logged

Offline andrewroth

  • Member
  • *
  • Posts: 6
Re: data / file storage format
« Reply #2 on: August 18, 2010, 01:26:24 AM »
Ah, I see.  What is the limit for a plugin anyways?
Logged

Offline gevaerts

  • Administrator
  • Member
  • *
  • Posts: 1053
Re: data / file storage format
« Reply #3 on: August 18, 2010, 04:39:59 AM »
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.

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
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: data / file storage format
« Reply #4 on: August 18, 2010, 02:11:39 PM »
Quote from: andrewroth on August 18, 2010, 01:26:24 AM
Ah, I see.  What is the limit for a plugin anyways?

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.   
Logged

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: data / file storage format
« Reply #5 on: August 19, 2010, 02:53:16 AM »
csv is probably the way to go. I dont think there are any helpers but it isnt exaclty hard to write the needed parser.
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline andrewroth

  • Member
  • *
  • Posts: 6
Re: data / file storage format
« Reply #6 on: August 25, 2010, 12:52:44 AM »
If anyone's interested, I've written some of my brainstorming for this app at http://wiki.github.com/andrewroth/rockbox_workout/brainstorming
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  data / file storage format
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.082 seconds with 15 queries.