summaryrefslogtreecommitdiff
path: root/lib/skin_parser/skin_parser.h
diff options
context:
space:
mode:
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);