<libroxml  version="3.0.2" />
contact: tristan.lelong@libroxml.net
roxml_stub.c
Go to the documentation of this file.
1
12#include "roxml_internal.h"
13
14#ifndef CONFIG_XML_COMMIT
15ROXML_STUB int roxml_commit_changes(node_t *n, char *dest, char **buffer, int human)
16{
17 fprintf(stderr, "** %s: function not implemented. You may need to reconfigure libroxml. **\n", __func__);
18 return -1;
19}
20
21ROXML_STUB int roxml_commit_file(node_t *n, char *dest, int human)
22{
23 fprintf(stderr, "** %s: function not implemented. You may need to reconfigure libroxml. **\n", __func__);
24 return -1;
25}
26
27ROXML_STUB int roxml_commit_buffer(node_t *n, char **buffer, int human)
28{
29 fprintf(stderr, "** %s: function not implemented. You may need to reconfigure libroxml. **\n", __func__);
30 return -1;
31}
32
33ROXML_STUB int roxml_commit_fd(node_t *n, int fd, int human)
34{
35 fprintf(stderr, "** %s: function not implemented. You may need to reconfigure libroxml. **\n", __func__);
36 return -1;
37}
38#endif /* CONFIG_XML_COMMIT */
39
40#ifndef CONFIG_XML_EDIT
41ROXML_STUB void roxml_del_node(node_t *n)
42{
43 fprintf(stderr, "** %s: function not implemented. You may need to reconfigure libroxml. **\n", __func__);
44 return;
45}
46
47ROXML_STUB node_t *roxml_add_node(node_t *parent, int position, int type, char *name, char *value)
48{
49 fprintf(stderr, "** %s: function not implemented. You may need to reconfigure libroxml. **\n", __func__);
50 return NULL;
51}
52
53ROXML_STUB node_t *roxml_set_ns(node_t *n, node_t *ns)
54{
55 fprintf(stderr, "** %s: function not implemented. You may need to reconfigure libroxml. **\n", __func__);
56 return NULL;
57}
58#endif /* CONFIG_XML_EDIT */
59
60#ifndef CONFIG_XML_CONTENT
61ROXML_STUB char *roxml_get_content(node_t *n, char *buffer, int bufsize, int *size)
62{
63 if (size)
64 *size = 0;
65 fprintf(stderr, "** %s: function not implemented. You may need to reconfigure libroxml. **\n", __func__);
66 return NULL;
67}
68
69ROXML_STUB char *roxml_get_name(node_t *n, char *buffer, int size)
70{
71 fprintf(stderr, "** %s: function not implemented. You may need to reconfigure libroxml. **\n", __func__);
72 return NULL;
73}
74
75ROXML_STUB int roxml_get_nodes_nb(node_t *n, int type)
76{
77 fprintf(stderr, "** %s: function not implemented. You may need to reconfigure libroxml. **\n", __func__);
78 return -1;
79}
80
81ROXML_STUB node_t *roxml_get_nodes(node_t *n, int type, char *name, int nth)
82{
83 fprintf(stderr, "** %s: function not implemented. You may need to reconfigure libroxml. **\n", __func__);
84 return NULL;
85}
86
87ROXML_STUB node_t *roxml_get_ns(node_t *n)
88{
89 fprintf(stderr, "** %s: function not implemented. You may need to reconfigure libroxml. **\n", __func__);
90 return NULL;
91}
92
93ROXML_STUB int roxml_get_pi_nb(node_t *n)
94{
95 fprintf(stderr, "** %s: function not implemented. You may need to reconfigure libroxml. **\n", __func__);
96 return -1;
97}
98
99ROXML_STUB node_t *roxml_get_pi(node_t *n, int nth)
100{
101 fprintf(stderr, "** %s: function not implemented. You may need to reconfigure libroxml. **\n", __func__);
102 return NULL;
103}
104
105ROXML_STUB int roxml_get_cmt_nb(node_t *n)
106{
107 fprintf(stderr, "** %s: function not implemented. You may need to reconfigure libroxml. **\n", __func__);
108 return -1;
109}
110
111ROXML_STUB node_t *roxml_get_cmt(node_t *n, int nth)
112{
113 fprintf(stderr, "** %s: function not implemented. You may need to reconfigure libroxml. **\n", __func__);
114 return NULL;
115}
116
117ROXML_STUB int roxml_get_txt_nb(node_t *n)
118{
119 fprintf(stderr, "** %s: function not implemented. You may need to reconfigure libroxml. **\n", __func__);
120 return -1;
121}
122
123ROXML_STUB node_t *roxml_get_txt(node_t *n, int nth)
124{
125 fprintf(stderr, "** %s: function not implemented. You may need to reconfigure libroxml. **\n", __func__);
126 return NULL;
127}
128
129ROXML_STUB int roxml_get_attr_nb(node_t *n)
130{
131 fprintf(stderr, "** %s: function not implemented. You may need to reconfigure libroxml. **\n", __func__);
132 return -1;
133}
134
135ROXML_STUB node_t *roxml_get_attr(node_t *n, char *name, int nth)
136{
137 fprintf(stderr, "** %s: function not implemented. You may need to reconfigure libroxml. **\n", __func__);
138 return NULL;
139}
140
141ROXML_STUB int roxml_get_chld_nb(node_t *n)
142{
143 fprintf(stderr, "** %s: function not implemented. You may need to reconfigure libroxml. **\n", __func__);
144 return -1;
145}
146
147ROXML_STUB node_t *roxml_get_chld(node_t *n, char *name, int nth)
148{
149 fprintf(stderr, "** %s: function not implemented. You may need to reconfigure libroxml. **\n", __func__);
150 return NULL;
151}
152
153ROXML_STUB int roxml_get_type(node_t *n)
154{
155 fprintf(stderr, "** %s: function not implemented. You may need to reconfigure libroxml. **\n", __func__);
156 return ROXML_INVALID_NODE;
157}
158
160{
161 fprintf(stderr, "** %s: function not implemented. You may need to reconfigure libroxml. **\n", __func__);
162 return -1;
163}
164#endif /* CONFIG_XML_CONTENT */
165
166#ifndef CONFIG_XML_XPATH
167ROXML_STUB node_t **roxml_xpath(node_t *n, char *path, int *nb_ans)
168{
169 if (nb_ans)
170 *nb_ans = 0;
171 fprintf(stderr, "** %s: function not implemented. You may need to reconfigure libroxml. **\n", __func__);
172 return NULL;
173}
174#endif /* CONFIG_XML_XPATH */
175
176#ifndef CONFIG_XML_NAV
178{
179 fprintf(stderr, "** %s: function not implemented. You may need to reconfigure libroxml. **\n", __func__);
180 return NULL;
181}
182
184{
185 fprintf(stderr, "** %s: function not implemented. You may need to reconfigure libroxml. **\n", __func__);
186 return NULL;
187}
188
190{
191 fprintf(stderr, "** %s: function not implemented. You may need to reconfigure libroxml. **\n", __func__);
192 return NULL;
193}
194
196{
197 fprintf(stderr, "** %s: function not implemented. You may need to reconfigure libroxml. **\n", __func__);
198 return NULL;
199}
200#endif /* CONFIG_XML_NAV */
201
202#ifndef CONFIG_XML_FILE
203ROXML_STUB node_t *roxml_load_fd(int fd)
204{
205 fprintf(stderr, "** %s: function not implemented. You may need to reconfigure libroxml. **\n", __func__);
206 return NULL;
207}
208
209ROXML_STUB node_t *roxml_load_doc(char *filename)
210{
211 fprintf(stderr, "** %s: function not implemented. You may need to reconfigure libroxml. **\n", __func__);
212 return NULL;
213}
214
215ROXML_STUB int roxml_read_file(int pos, int size, char *buffer, node_t *node)
216{
217 fprintf(stderr, "** %s: function not implemented. You may need to reconfigure libroxml. **\n", __func__);
218 return -1;
219}
220
221ROXML_STUB void roxml_close_file(node_t *n)
222{
223 fprintf(stderr, "** %s: function not implemented. You may need to reconfigure libroxml. **\n", __func__);
224 return;
225}
226
227ROXML_STUB int roxml_parse_file(roxml_load_ctx_t *context, roxml_parser_item_t *parser, FILE *file)
228{
229 fprintf(stderr, "** %s: function not implemented. You may need to reconfigure libroxml. **\n", __func__);
230 return -1;
231}
232#endif /* CONFIG_XML_FILE */
233
234#ifndef CONFIG_XML_BUFF
235ROXML_STUB node_t *roxml_load_buf(char *buffer)
236{
237 fprintf(stderr, "** %s: function not implemented. You may need to reconfigure libroxml. **\n", __func__);
238 return NULL;
239}
240
241ROXML_STUB int roxml_read_buff(int pos, int size, char *buffer, node_t *node)
242{
243 fprintf(stderr, "** %s: function not implemented. You may need to reconfigure libroxml. **\n", __func__);
244 return -1;
245}
246
247ROXML_STUB void roxml_close_buff(node_t *n)
248{
249 fprintf(stderr, "** %s: function not implemented. You may need to reconfigure libroxml. **\n", __func__);
250 return;
251}
252
253ROXML_STUB int roxml_parse_buff(roxml_load_ctx_t *context, roxml_parser_item_t *parser, char *buffer)
254{
255 fprintf(stderr, "** %s: function not implemented. You may need to reconfigure libroxml. **\n", __func__);
256 return -1;
257}
258#endif /* CONFIG_XML_BUFF */
#define ROXML_INVALID_NODE
Definition roxml.h:43
internal header required by all libroxml sources
ROXML_STUB int roxml_read_buff(int pos, int size, char *buffer, node_t *node)
read xml doc function
Definition roxml_stub.c:241
ROXML_STUB node_t * roxml_get_cmt(node_t *n, int nth)
comment getter function
Definition roxml_stub.c:111
ROXML_STUB int roxml_get_nodes_nb(node_t *n, int type)
number of nodes getter function
Definition roxml_stub.c:75
ROXML_STUB node_t * roxml_get_txt(node_t *n, int nth)
text node getter function
Definition roxml_stub.c:123
ROXML_STUB int roxml_commit_changes(node_t *n, char *dest, char **buffer, int human)
sync function
Definition roxml_stub.c:15
ROXML_STUB void roxml_close_file(node_t *n)
unload function
Definition roxml_stub.c:221
ROXML_STUB int roxml_get_pi_nb(node_t *n)
process-instruction number getter function
Definition roxml_stub.c:93
ROXML_STUB node_t * roxml_get_root(node_t *n)
root getter function
Definition roxml_stub.c:195
ROXML_STUB node_t * roxml_get_parent(node_t *n)
parent getter function
Definition roxml_stub.c:189
ROXML_STUB int roxml_commit_file(node_t *n, char *dest, int human)
sync to named file function
Definition roxml_stub.c:21
ROXML_STUB node_t * roxml_load_doc(char *filename)
load function for files
Definition roxml_stub.c:209
ROXML_STUB char * roxml_get_content(node_t *n, char *buffer, int bufsize, int *size)
content getter function
Definition roxml_stub.c:61
ROXML_STUB int roxml_parse_buff(roxml_load_ctx_t *context, roxml_parser_item_t *parser, char *buffer)
generic load function
Definition roxml_stub.c:253
ROXML_STUB int roxml_get_txt_nb(node_t *n)
text node number getter function
Definition roxml_stub.c:117
ROXML_STUB int roxml_get_attr_nb(node_t *n)
number of attribute getter function
Definition roxml_stub.c:129
ROXML_STUB void roxml_del_node(node_t *n)
node deletion function
Definition roxml_stub.c:41
ROXML_STUB node_t * roxml_load_fd(int fd)
load function for file descriptors
Definition roxml_stub.c:203
ROXML_STUB node_t * roxml_get_prev_sibling(node_t *n)
prev sibling getter function
Definition roxml_stub.c:177
ROXML_STUB int roxml_commit_fd(node_t *n, int fd, int human)
sync to file descriptor function
Definition roxml_stub.c:33
ROXML_STUB node_t * roxml_set_ns(node_t *n, node_t *ns)
namespace setter function
Definition roxml_stub.c:53
ROXML_STUB node_t * roxml_get_next_sibling(node_t *n)
next sibling getter function
Definition roxml_stub.c:183
ROXML_STUB int roxml_read_file(int pos, int size, char *buffer, node_t *node)
read xml doc function
Definition roxml_stub.c:215
ROXML_STUB node_t * roxml_add_node(node_t *parent, int position, int type, char *name, char *value)
add a node to the tree
Definition roxml_stub.c:47
ROXML_STUB int roxml_parse_file(roxml_load_ctx_t *context, roxml_parser_item_t *parser, FILE *file)
generic load function
Definition roxml_stub.c:227
ROXML_STUB int roxml_get_node_position(node_t *n)
node get position function
Definition roxml_stub.c:159
ROXML_STUB node_t * roxml_get_attr(node_t *n, char *name, int nth)
attribute getter function
Definition roxml_stub.c:135
ROXML_STUB node_t * roxml_get_ns(node_t *n)
namespace getter function
Definition roxml_stub.c:87
ROXML_STUB node_t * roxml_get_nodes(node_t *n, int type, char *name, int nth)
nodes getter function
Definition roxml_stub.c:81
ROXML_STUB int roxml_get_cmt_nb(node_t *n)
comments number getter function
Definition roxml_stub.c:105
ROXML_STUB char * roxml_get_name(node_t *n, char *buffer, int size)
name getter function
Definition roxml_stub.c:69
ROXML_STUB node_t ** roxml_xpath(node_t *n, char *path, int *nb_ans)
exec path function
Definition roxml_stub.c:167
ROXML_STUB int roxml_get_chld_nb(node_t *n)
chlds number getter function
Definition roxml_stub.c:141
ROXML_STUB int roxml_commit_buffer(node_t *n, char **buffer, int human)
sync to a memory buffer function
Definition roxml_stub.c:27
ROXML_STUB node_t * roxml_load_buf(char *buffer)
load function for buffers
Definition roxml_stub.c:235
ROXML_STUB int roxml_get_type(node_t *n)
node type function
Definition roxml_stub.c:153
ROXML_STUB node_t * roxml_get_chld(node_t *n, char *name, int nth)
chld getter function
Definition roxml_stub.c:147
ROXML_STUB void roxml_close_buff(node_t *n)
unload function
Definition roxml_stub.c:247
ROXML_STUB node_t * roxml_get_pi(node_t *n, int nth)
process-instruction getter function
Definition roxml_stub.c:99
node_t structure
xml parsing context
the parser item struct