summaryrefslogtreecommitdiffstats
path: root/apps/gui/viewport.h
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2009-08-09 16:16:55 +0000
committerThomas Martitz <kugel@rockbox.org>2009-08-09 16:16:55 +0000
commit9bd7b23e9980247e97e54a275769e5f1dd3b443e (patch)
tree562d57058aa287f59a735fc6e045a87fb5b3f746 /apps/gui/viewport.h
parent5aeaa84cab08154dc451a39902c376bd8a8922f4 (diff)
downloadrockbox-9bd7b23e9980247e97e54a275769e5f1dd3b443e.tar.gz
rockbox-9bd7b23e9980247e97e54a275769e5f1dd3b443e.tar.bz2
rockbox-9bd7b23e9980247e97e54a275769e5f1dd3b443e.zip
Factor out WPS' %V parsing function into viewport.c, in preperation of customlist. No functional change.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22222 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/viewport.h')
-rw-r--r--apps/gui/viewport.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/gui/viewport.h b/apps/gui/viewport.h
index acc9758ee3..65a9815bcd 100644
--- a/apps/gui/viewport.h
+++ b/apps/gui/viewport.h
@@ -38,6 +38,13 @@ int viewport_load_config(const char *config, struct viewport *vp);
void viewport_set_defaults(struct viewport *vp, enum screen_type screen);
+/* parse a viewport list, which looks like
+ * X|Y|width|height|font|foregorund color|background color
+ * | is a separator */
+const char* viewport_parse_viewport(struct viewport *vp,
+ enum screen_type screen,
+ const char *bufptr,
+ const char separator);
/* Used to specify which screens the statusbar (SB) should be displayed on.
*
* The parameter is a bit OR'ed combination of the following (screen is