From 9bd7b23e9980247e97e54a275769e5f1dd3b443e Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Sun, 9 Aug 2009 16:16:55 +0000 Subject: 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 --- apps/gui/viewport.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'apps/gui/viewport.h') 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 -- cgit v1.2.3