X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fctf-ir%2Fvisitor-internal.h;h=e37172e1680daddbfb62143ffc7323e75a251feb;hb=d9a13d8630473a4b4da6f00610a07647b05ba80f;hp=a8fd1ae92fa7bfc52cf3fcecf3bef6bf70aaba57;hpb=8bf65fbd5d6164488f1912f88ef632a58598ed2f;p=babeltrace.git diff --git a/include/babeltrace/ctf-ir/visitor-internal.h b/include/babeltrace/ctf-ir/visitor-internal.h index a8fd1ae9..e37172e1 100644 --- a/include/babeltrace/ctf-ir/visitor-internal.h +++ b/include/babeltrace/ctf-ir/visitor-internal.h @@ -30,22 +30,22 @@ #include #include -typedef void *(*bt_child_accessor)(void *element, int index); -typedef int (*bt_child_count_accessor)(void *element); -typedef int (*bt_child_visitor)(void *element, bt_ctf_ir_visitor visitor, +typedef void *(*bt_child_accessor)(void *object, int index); +typedef int (*bt_child_count_accessor)(void *object); +typedef int (*bt_child_visitor)(void *object, bt_ctf_visitor visitor, void *data); -struct bt_ctf_ir_element { - enum bt_ctf_ir_type type; - void *element; +struct bt_ctf_object { + enum bt_ctf_object_type type; + void *object; }; BT_HIDDEN -int visitor_helper(struct bt_ctf_ir_element *root, +int visitor_helper(struct bt_ctf_object *root, bt_child_count_accessor child_counter, bt_child_accessor child_accessor, bt_child_visitor child_visitor, - bt_ctf_ir_visitor visitor, + bt_ctf_visitor visitor, void *data); #endif /* BABELTRACE_CTF_IR_VISITOR_INTERNAL_H */