aboutsummaryrefslogtreecommitdiffstats
path: root/trace-xml.h
diff options
context:
space:
mode:
Diffstat (limited to 'trace-xml.h')
-rw-r--r--trace-xml.h19
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
24struct tracecmd_xml_handle; 24struct tracecmd_xml_handle;
25struct tacecmd_xml_system;
26struct tacecmd_xml_system_node;
25 27
26struct tracecmd_xml_handle *tracecmd_xml_create(const char *name); 28struct tracecmd_xml_handle *tracecmd_xml_create(const char *name);
29struct tracecmd_xml_handle *tracecmd_xml_open(const char *name);
27void tracecmd_xml_close(struct tracecmd_xml_handle *handle); 30void tracecmd_xml_close(struct tracecmd_xml_handle *handle);
28 31
29int tracecmd_xml_start_system(struct tracecmd_xml_handle *handle, 32int 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
44struct tracecmd_xml_handle *tracecmd_xml_open(const char *file);
45
46struct tracecmd_xml_system *
47tracecmd_xml_find_system(struct tracecmd_xml_handle *handle,
48 const char *system);
49void tracecmd_xml_free_system(struct tracecmd_xml_system *system);
50struct tracecmd_xml_system_node *
51tracecmd_xml_system_node(struct tracecmd_xml_system *system);
52const char *tracecmd_xml_node_type(struct tracecmd_xml_system_node *tnode);
53struct tracecmd_xml_system_node *
54tracecmd_xml_node_child(struct tracecmd_xml_system_node *tnode);
55struct tracecmd_xml_system_node *
56tracecmd_xml_node_next(struct tracecmd_xml_system_node *tnode);
57const 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 */