-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathezxml_wrapper.h
31 lines (27 loc) · 1.12 KB
/
ezxml_wrapper.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
* Copyright (c) 2024 roleo.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 3.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef EZXML_WRAPPER_H
#define EZXML_WRAPPER_H
#include "ezxml/ezxml.h"
void init_xml(char *buffer, int buffer_size);
void close_xml();
const char *get_method(int skip_prefix);
const char *get_element(char *name, char *first_node);
ezxml_t get_element_ptr(ezxml_t start_from, char *name, char *first_node);
const char *get_element_in_element(const char *name, ezxml_t father);
ezxml_t get_element_in_element_ptr(const char *name, ezxml_t father);
const char *get_attribute(ezxml_t node, char *name);
#endif //EZXML_WRAPPER_H