summaryrefslogtreecommitdiff
path: root/lib/skin_parser/skin_parser.h
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2010-07-29 12:37:48 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2010-07-29 12:37:48 +0000
commit2d31d77a8ba231cb03ec35863c4c4ce2024f6509 (patch)
treeb85ca1bede3e83695619064ee9a323f0a8da1865 /lib/skin_parser/skin_parser.h
parente436483b66a931fef6436e9cd3e69eb2b3ff1f7b (diff)
downloadrockbox-2d31d77a8ba231cb03ec35863c4c4ce2024f6509.tar.gz
rockbox-2d31d77a8ba231cb03ec35863c4c4ce2024f6509.zip
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
Diffstat (limited to 'lib/skin_parser/skin_parser.h')
-rw-r--r--lib/skin_parser/skin_parser.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/lib/skin_parser/skin_parser.h b/lib/skin_parser/skin_parser.h
index ad10f90125..8514dfdd0e 100644
--- a/lib/skin_parser/skin_parser.h
+++ b/lib/skin_parser/skin_parser.h
@@ -115,14 +115,27 @@ struct skin_element
115 struct skin_element* next; 115 struct skin_element* next;
116}; 116};
117 117
118enum skin_cb_returnvalue
119{
120 CALLBACK_ERROR = -666,
121 FEATURE_NOT_AVAILABLE,
122 CALLBACK_OK = 0,
123 /* > 0 reserved for future use */
124};
125typedef int (*skin_callback)(struct skin_element* element, void* data);
126
118/*********************************************************************** 127/***********************************************************************
119 ***** Functions ******************************************************* 128 ***** Functions *******************************************************
120 **********************************************************************/ 129 **********************************************************************/
121 130
122/* Parses a WPS document and returns a list of skin_element 131/* Parses a WPS document and returns a list of skin_element
123 structures. */ 132 structures. */
133#ifdef ROCKBOX
134struct skin_element* skin_parse(const char* document,
135 skin_callback callback, void* callback_data);
136#else
124struct skin_element* skin_parse(const char* document); 137struct skin_element* skin_parse(const char* document);
125 138#endif
126/* Memory management functions */ 139/* Memory management functions */
127struct skin_element* skin_alloc_element(void); 140struct skin_element* skin_alloc_element(void);
128struct skin_element** skin_alloc_children(int count); 141struct skin_element** skin_alloc_children(int count);