projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename visitor and element names
[babeltrace.git]
/
formats
/
ctf
/
ir
/
visitor.c
diff --git
a/formats/ctf/ir/visitor.c
b/formats/ctf/ir/visitor.c
index 762dce22df4a04af4a32d4038daac0d352131bd9..115b54ac95eb8e2da2a74c0896c84759188d35d8 100644
(file)
--- a/
formats/ctf/ir/visitor.c
+++ b/
formats/ctf/ir/visitor.c
@@
-30,11
+30,11
@@
#include <babeltrace/ref.h>
BT_HIDDEN
#include <babeltrace/ref.h>
BT_HIDDEN
-int visitor_helper(struct bt_ctf_
ir_elemen
t *root,
+int visitor_helper(struct bt_ctf_
objec
t *root,
bt_child_count_accessor child_counter,
bt_child_accessor child_accessor,
bt_child_visitor child_visitor,
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)
{
int ret, child_count, i;
void *data)
{
int ret, child_count, i;
@@
-44,7
+44,7
@@
int visitor_helper(struct bt_ctf_ir_element *root,
goto end;
}
goto end;
}
- child_count = child_counter(root->
elemen
t);
+ child_count = child_counter(root->
objec
t);
if (child_count < 0) {
ret = child_count;
goto end;
if (child_count < 0) {
ret = child_count;
goto end;
@@
-53,7
+53,7
@@
int visitor_helper(struct bt_ctf_ir_element *root,
for (i = 0; i < child_count; i++) {
void *child;
for (i = 0; i < child_count; i++) {
void *child;
- child = child_accessor(root->
elemen
t, i);
+ child = child_accessor(root->
objec
t, i);
if (!child) {
ret = -1;
goto end;
if (!child) {
ret = -1;
goto end;
@@
-68,29
+68,28
@@
end:
return ret;
}
return ret;
}
-enum bt_ctf_ir_type bt_ctf_ir_element_get_type(
- struct bt_ctf_ir_element *element)
+enum bt_ctf_object_type bt_ctf_object_get_type(struct bt_ctf_object *object)
{
{
- enum bt_ctf_
ir_type ret = BT_CTF_IR
_TYPE_UNKNOWN;
-
- if (!
elemen
t) {
+ enum bt_ctf_
object_type ret = BT_CTF_OBJECT
_TYPE_UNKNOWN;
+
+ if (!
objec
t) {
goto end;
}
goto end;
}
- ret =
elemen
t->type;
+ ret =
objec
t->type;
end:
return ret;
}
end:
return ret;
}
-void *bt_ctf_
ir_element_get_element(struct bt_ctf_ir_element *elemen
t)
+void *bt_ctf_
object_get_object(struct bt_ctf_object *objec
t)
{
void *ret = NULL;
{
void *ret = NULL;
- if (!
elemen
t) {
+ if (!
objec
t) {
goto end;
}
goto end;
}
- ret =
element->elemen
t;
+ ret =
object->objec
t;
end:
return ret;
}
end:
return ret;
}
This page took
0.024284 seconds
and
4
git commands to generate.