diff options
Diffstat (limited to 'lib/skin_parser/skin_parser.h')
-rw-r--r-- | lib/skin_parser/skin_parser.h | 15 |
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 | ||
118 | enum skin_cb_returnvalue | ||
119 | { | ||
120 | CALLBACK_ERROR = -666, | ||
121 | FEATURE_NOT_AVAILABLE, | ||
122 | CALLBACK_OK = 0, | ||
123 | /* > 0 reserved for future use */ | ||
124 | }; | ||
125 | typedef 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 | ||
134 | struct skin_element* skin_parse(const char* document, | ||
135 | skin_callback callback, void* callback_data); | ||
136 | #else | ||
124 | struct skin_element* skin_parse(const char* document); | 137 | struct skin_element* skin_parse(const char* document); |
125 | 138 | #endif | |
126 | /* Memory management functions */ | 139 | /* Memory management functions */ |
127 | struct skin_element* skin_alloc_element(void); | 140 | struct skin_element* skin_alloc_element(void); |
128 | struct skin_element** skin_alloc_children(int count); | 141 | struct skin_element** skin_alloc_children(int count); |