b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | /****************************************************************************** |
| 2 | |
| 3 | *(C) Copyright 2011 Marvell International Ltd. |
| 4 | |
| 5 | * All Rights Reserved |
| 6 | |
| 7 | ******************************************************************************/ |
| 8 | /******************************************/ |
| 9 | /* */ |
| 10 | /* Title: head file of xml parser wrapper */ |
| 11 | /* Filename: xmlparser.h */ |
| 12 | /* */ |
| 13 | /* Author: Liming Xie */ |
| 14 | /* */ |
| 15 | /* Project, Target, subsystem: Tavor, PXA920, HAL */ |
| 16 | /* */ |
| 17 | /* */ |
| 18 | /* Created: Sep 2011 */ |
| 19 | /* */ |
| 20 | /********************************************/ |
| 21 | |
| 22 | #ifndef CONFIG_XML_PARSER_H_ |
| 23 | #define CONFIG_XML_PARSER_H_ |
| 24 | |
| 25 | #define MAX_CFG_VALUE_LEN 1024 |
| 26 | |
| 27 | int get_int_value (void * pHandle, const char *loc_path, int *defval); |
| 28 | int get_char_array (void * pHandle, const char *loc_path, char *defval, int max_len); |
| 29 | int set_int_value (void * pHandle, const char *loc_path, int val); |
| 30 | int set_char_array (void * pHandle, const char *loc_path, const char *val); |
| 31 | int add_comment (void * pHandle, const char *loc_path, const char *comment); |
| 32 | void *open_tel_cfg (const char *cfgfile_name); |
| 33 | void *create_tel_cfg (const char *rootname); |
| 34 | int save_tel_cfg (const char *cfgfile_name, void **ppHandle); |
| 35 | int close_tel_cfg (void **ppHandle); |
| 36 | |
| 37 | #endif |