forked from len0rd/rockbox
FS#11470 - new skin code, finally svn uses the new parser from the theme editor. This means that a skin that passes the editor WILL pass svn and checkwps (unless the target runs out of skin buffer or something.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27613 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e436483b66
commit
2d31d77a8b
44 changed files with 2105 additions and 3326 deletions
|
@ -115,14 +115,27 @@ struct skin_element
|
|||
struct skin_element* next;
|
||||
};
|
||||
|
||||
enum skin_cb_returnvalue
|
||||
{
|
||||
CALLBACK_ERROR = -666,
|
||||
FEATURE_NOT_AVAILABLE,
|
||||
CALLBACK_OK = 0,
|
||||
/* > 0 reserved for future use */
|
||||
};
|
||||
typedef int (*skin_callback)(struct skin_element* element, void* data);
|
||||
|
||||
/***********************************************************************
|
||||
***** Functions *******************************************************
|
||||
**********************************************************************/
|
||||
|
||||
/* Parses a WPS document and returns a list of skin_element
|
||||
structures. */
|
||||
#ifdef ROCKBOX
|
||||
struct skin_element* skin_parse(const char* document,
|
||||
skin_callback callback, void* callback_data);
|
||||
#else
|
||||
struct skin_element* skin_parse(const char* document);
|
||||
|
||||
#endif
|
||||
/* Memory management functions */
|
||||
struct skin_element* skin_alloc_element(void);
|
||||
struct skin_element** skin_alloc_children(int count);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue