| ---
xmlpull.h (643B)
---
1 /*
2 * Copy me if you can.
3 * by 20h
4 */
5
6 #ifdef nil
7 #pragma lib "libxmlpull.a"
8 #endif
9
10 #ifndef XMLPULL_H
11 #define XMLPULL_H
12
13 #ifndef nil
14 #define nil NULL
15 #define print printf
16 #define snprint snprintf
17 #define exits return
18 #endif
19
20 enum {
21 START_DOCUMENT = 0x0,
22 START_TAG,
23 START_END_TAG,
24 TEXT,
25 TEXT_C,
26 ATTR,
27 END_TAG,
28 END_TAG_S,
29 END_TAG_N,
30 END_DOCUMENT,
31 };
32
33 typedef struct xmlpull xmlpull;
34 struct xmlpull {
35 int fd;
36 char ev;
37 char nev;
38 char *lm;
39 char *na;
40 char *va;
41 int la;
42 int lv;
43 int ln;
44 };
45
46 void freexmlpull(xmlpull *x);
47 xmlpull *openxmlpull(int fd);
48 xmlpull *nextxmlpull(xmlpull *x);
49 xmlpull *writexmlpull(xmlpull *x);
50
51 #endif |