1 /**
2  * @file lv_xml.h
3  *
4  */
5 
6 #ifndef LV_XML_H
7 #define LV_XML_H
8 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 
13 /*********************
14  *      INCLUDES
15  *********************/
16 #include "../../misc/lv_types.h"
17 #if LV_USE_XML
18 
19 /*********************
20  *      DEFINES
21  *********************/
22 
23 /**********************
24  *      TYPEDEFS
25  **********************/
26 
27 /**********************
28  * GLOBAL PROTOTYPES
29  **********************/
30 
31 void lv_xml_init(void);
32 
33 void * lv_xml_create(lv_obj_t * parent, const char * name, const char ** attrs);
34 
35 void * lv_xml_create_from_ctx(lv_obj_t * parent, lv_xml_component_ctx_t * parent_ctx, lv_xml_component_ctx_t * ctx,
36                               const char ** attrs);
37 
38 lv_result_t lv_xml_register_font(const char * name, const lv_font_t * font);
39 
40 const lv_font_t * lv_xml_get_font(const char * name);
41 
42 lv_result_t lv_xml_register_image(const char * name, const void * src);
43 
44 const void * lv_xml_get_image(const char * name);
45 
46 
47 /**********************
48  *      MACROS
49  **********************/
50 
51 #endif /* LV_USE_XML */
52 
53 #ifdef __cplusplus
54 } /*extern "C"*/
55 #endif
56 
57 #endif /*LV_XML_H*/
58