<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
15 ROXML_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 
21 ROXML_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 
27 ROXML_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 
33 ROXML_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
41 ROXML_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 
47 ROXML_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 
53 ROXML_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
61 ROXML_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 
69 ROXML_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 
75 ROXML_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 
81 ROXML_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 
87 ROXML_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 
93 ROXML_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 
99 ROXML_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 
105 ROXML_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 
111 ROXML_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 
117 ROXML_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 
123 ROXML_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 
129 ROXML_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 
135 ROXML_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 
141 ROXML_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 
147 ROXML_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 
153 ROXML_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 
159 ROXML_STUB int roxml_get_node_position(node_t *n)
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
167 ROXML_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 
195 ROXML_STUB node_t *roxml_get_root(node_t *n)
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
203 ROXML_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 
209 ROXML_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 
215 ROXML_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 
221 ROXML_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 
227 ROXML_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
235 ROXML_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 
241 ROXML_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 
247 ROXML_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 
253 ROXML_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 */
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 int roxml_get_nodes_nb(node_t *n, int type)
number of nodes getter function
Definition: roxml_stub.c:75
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
node_t structure
Definition: roxml_types.h:133
ROXML_STUB node_t * roxml_get_cmt(node_t *n, int nth)
comment getter function
Definition: roxml_stub.c:111
ROXML_STUB node_t ** roxml_xpath(node_t *n, char *path, int *nb_ans)
exec path function
Definition: roxml_stub.c:167
#define ROXML_INVALID_NODE
Definition: roxml.h:43
ROXML_STUB void roxml_del_node(node_t *n)
node deletion function
Definition: roxml_stub.c:41
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_node_position(node_t *n)
node get position function
Definition: roxml_stub.c:159
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_get_pi(node_t *n, int nth)
process-instruction getter function
Definition: roxml_stub.c:99
ROXML_STUB void roxml_close_file(node_t *n)
unload function
Definition: roxml_stub.c:221
ROXML_STUB int roxml_get_chld_nb(node_t *n)
chlds number getter function
Definition: roxml_stub.c:141
ROXML_STUB node_t * roxml_get_parent(node_t *n)
parent getter function
Definition: roxml_stub.c:189
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 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 node_t * roxml_load_buf(char *buffer)
load function for buffers
Definition: roxml_stub.c:235
ROXML_STUB int roxml_get_cmt_nb(node_t *n)
comments number getter function
Definition: roxml_stub.c:105
ROXML_STUB node_t * roxml_get_next_sibling(node_t *n)
next sibling getter function
Definition: roxml_stub.c:183
ROXML_STUB node_t * roxml_get_ns(node_t *n)
namespace getter function
Definition: roxml_stub.c:87
ROXML_STUB int roxml_get_pi_nb(node_t *n)
process-instruction number getter function
Definition: roxml_stub.c:93
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 node_t * roxml_load_fd(int fd)
load function for file descriptors
Definition: roxml_stub.c:203
internal header required by all libroxml sources
ROXML_STUB int roxml_commit_buffer(node_t *n, char **buffer, int human)
sync to a memory buffer function
Definition: roxml_stub.c:27
xml parsing context
Definition: roxml_types.h:158
ROXML_STUB node_t * roxml_load_doc(char *filename)
load function for files
Definition: roxml_stub.c:209
ROXML_STUB void roxml_close_buff(node_t *n)
unload function
Definition: roxml_stub.c:247
the parser item struct
ROXML_STUB int roxml_commit_changes(node_t *n, char *dest, char **buffer, int human)
sync function
Definition: roxml_stub.c:15
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 int roxml_get_attr_nb(node_t *n)
number of attribute getter function
Definition: roxml_stub.c:129
ROXML_STUB node_t * roxml_get_chld(node_t *n, char *name, int nth)
chld getter function
Definition: roxml_stub.c:147
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_read_file(int pos, int size, char *buffer, node_t *node)
read xml doc function
Definition: roxml_stub.c:215
ROXML_STUB int roxml_get_type(node_t *n)
node type function
Definition: roxml_stub.c:153
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_get_attr(node_t *n, char *name, int nth)
attribute getter function
Definition: roxml_stub.c:135
ROXML_STUB int roxml_get_txt_nb(node_t *n)
text node number getter function
Definition: roxml_stub.c:117
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_prev_sibling(node_t *n)
prev sibling getter function
Definition: roxml_stub.c:177
ROXML_STUB node_t * roxml_get_root(node_t *n)
root getter function
Definition: roxml_stub.c:195