diff options
Diffstat (limited to 'trace-xml.h')
-rw-r--r-- | trace-xml.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/trace-xml.h b/trace-xml.h index 41f6193..4006538 100644 --- a/trace-xml.h +++ b/trace-xml.h | |||
@@ -22,8 +22,11 @@ | |||
22 | #define __TRACE_XML_H | 22 | #define __TRACE_XML_H |
23 | 23 | ||
24 | struct tracecmd_xml_handle; | 24 | struct tracecmd_xml_handle; |
25 | struct tacecmd_xml_system; | ||
26 | struct tacecmd_xml_system_node; | ||
25 | 27 | ||
26 | struct tracecmd_xml_handle *tracecmd_xml_create(const char *name); | 28 | struct tracecmd_xml_handle *tracecmd_xml_create(const char *name); |
29 | struct tracecmd_xml_handle *tracecmd_xml_open(const char *name); | ||
27 | void tracecmd_xml_close(struct tracecmd_xml_handle *handle); | 30 | void tracecmd_xml_close(struct tracecmd_xml_handle *handle); |
28 | 31 | ||
29 | int tracecmd_xml_start_system(struct tracecmd_xml_handle *handle, | 32 | int tracecmd_xml_start_system(struct tracecmd_xml_handle *handle, |
@@ -38,4 +41,20 @@ int tracecmd_xml_write_element(struct tracecmd_xml_handle *handle, | |||
38 | const char *obj, | 41 | const char *obj, |
39 | const char *fmt, ...); | 42 | const char *fmt, ...); |
40 | 43 | ||
44 | struct tracecmd_xml_handle *tracecmd_xml_open(const char *file); | ||
45 | |||
46 | struct tracecmd_xml_system * | ||
47 | tracecmd_xml_find_system(struct tracecmd_xml_handle *handle, | ||
48 | const char *system); | ||
49 | void tracecmd_xml_free_system(struct tracecmd_xml_system *system); | ||
50 | struct tracecmd_xml_system_node * | ||
51 | tracecmd_xml_system_node(struct tracecmd_xml_system *system); | ||
52 | const char *tracecmd_xml_node_type(struct tracecmd_xml_system_node *tnode); | ||
53 | struct tracecmd_xml_system_node * | ||
54 | tracecmd_xml_node_child(struct tracecmd_xml_system_node *tnode); | ||
55 | struct tracecmd_xml_system_node * | ||
56 | tracecmd_xml_node_next(struct tracecmd_xml_system_node *tnode); | ||
57 | const char *tracecmd_xml_node_value(struct tracecmd_xml_handle *handle, | ||
58 | struct tracecmd_xml_system_node *tnode); | ||
59 | |||
41 | #endif /* __TRACE_XML_H */ | 60 | #endif /* __TRACE_XML_H */ |