projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename bt_ctf_X -> bt_X, maintain backward compat. for pre-2.0 CTF writer
[babeltrace.git]
/
plugins
/
ctf
/
common
/
metadata
/
ast.h
diff --git
a/plugins/ctf/common/metadata/ast.h
b/plugins/ctf/common/metadata/ast.h
index c8843270657ea012bdb1e03d00efea6d519eb86b..9e697bdae1cdf906f314996a907d1b79dcabe005 100644
(file)
--- a/
plugins/ctf/common/metadata/ast.h
+++ b/
plugins/ctf/common/metadata/ast.h
@@
-20,8
+20,11
@@
#include <stdint.h>
#include <stdio.h>
#include <glib.h>
#include <stdint.h>
#include <stdio.h>
#include <glib.h>
-#include <babeltrace/list.h>
-#include <babeltrace/ctf-ir/trace.h>
+#include <babeltrace/list-internal.h>
+#include <babeltrace/babeltrace.h>
+#include <babeltrace/babeltrace-internal.h>
+
+#include "decoder.h"
// the parameter name (of the reentrant 'yyparse' function)
// data is a pointer to a 'SParserParam' structure
// the parameter name (of the reentrant 'yyparse' function)
// data is a pointer to a 'SParserParam' structure
@@
-29,6
+32,9
@@
struct ctf_node;
struct ctf_parser;
struct ctf_node;
struct ctf_parser;
+struct ctf_visitor_generate_ir;
+
+#define EINCOMPLETE 1000
#define FOREACH_CTF_NODES(F) \
F(NODE_UNKNOWN) \
#define FOREACH_CTF_NODES(F) \
F(NODE_UNKNOWN) \
@@
-303,19
+309,25
@@
struct ctf_ast {
const char *node_type(struct ctf_node *node);
const char *node_type(struct ctf_node *node);
-struct ctf_trace;
+BT_HIDDEN
+struct ctf_visitor_generate_ir *ctf_visitor_generate_ir_create(
+ const struct ctf_metadata_decoder_config *config,
+ const char *name);
+
+void ctf_visitor_generate_ir_destroy(struct ctf_visitor_generate_ir *visitor);
BT_HIDDEN
BT_HIDDEN
-int ctf_visitor_generate_ir(FILE *efd, struct ctf_node *node,
- struct
bt_ctf_trace **trace
);
+struct bt_trace *ctf_visitor_generate_ir_get_trace(
+ struct
ctf_visitor_generate_ir *visitor
);
BT_HIDDEN
BT_HIDDEN
-int ctf_visitor_semantic_check(FILE *fd, int depth, struct ctf_node *node);
+int ctf_visitor_generate_ir_visit_node(struct ctf_visitor_generate_ir *visitor,
+ struct ctf_node *node);
BT_HIDDEN
BT_HIDDEN
-int ctf_visitor_
parent_links(FILE *fd,
int depth, struct ctf_node *node);
+int ctf_visitor_
semantic_check(
int depth, struct ctf_node *node);
BT_HIDDEN
BT_HIDDEN
-int ctf_
destroy_metadata(struct ctf_trace *trac
e);
+int ctf_
visitor_parent_links(int depth, struct ctf_node *nod
e);
#endif /* _CTF_AST_H */
#endif /* _CTF_AST_H */
This page took
0.024803 seconds
and
4
git commands to generate.