-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstring_helper.h
More file actions
23 lines (17 loc) · 903 Bytes
/
Copy pathstring_helper.h
File metadata and controls
23 lines (17 loc) · 903 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef _STRING_HELPER_H
#define _STRING_HELPER_H
typedef struct dump_context {
char ** output;
int indent;
} DumpContext;
void string_helper_init();
int xml_pi( DumpContext * context, const char * tagname, ... ) __attribute__((sentinel));
int xml_tag( DumpContext * context, const char * tagname, ... ) __attribute__((sentinel));
int xml_tag_open( DumpContext * context, const char * tagname );
int xml_tag_open_namespace( DumpContext * context, const char * tagname, const char * namespace );
int xml_tag_close( DumpContext * context, const char * tagname );
int xml_attributes( DumpContext * context, va_list ap );
int xml_content( DumpContext * context, const char * fmt, ... ) __attribute__((format (printf,2,3)));
int xml_textnode( DumpContext * context, const char * tagname, const char * format, ... ) __attribute__((format (printf,3,4)));
DumpContext * new_dump_context();
#endif