blob: a5dbde9157e1b1afbf58e7d31259a2d64335787f [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001/******************************************************************************
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
27int get_int_value (void * pHandle, const char *loc_path, int *defval);
28int get_char_array (void * pHandle, const char *loc_path, char *defval, int max_len);
29int set_int_value (void * pHandle, const char *loc_path, int val);
30int set_char_array (void * pHandle, const char *loc_path, const char *val);
31int add_comment (void * pHandle, const char *loc_path, const char *comment);
32void *open_tel_cfg (const char *cfgfile_name);
33void *create_tel_cfg (const char *rootname);
34int save_tel_cfg (const char *cfgfile_name, void **ppHandle);
35int close_tel_cfg (void **ppHandle);
36
37#endif