common: introduce bt_g_array_index
[babeltrace.git] / src / lib / graph / component.c
index e73a1c7a384e00a957bf2cddc48db09cd76f1a06..b5f4d28d3c6cbae59f371a615f6a46f88807657e 100644 (file)
@@ -133,7 +133,7 @@ void destroy_component(struct bt_object *obj)
 
        for (i = component->destroy_listeners->len - 1; i >= 0; i--) {
                struct bt_component_destroy_listener *listener =
-                       &g_array_index(component->destroy_listeners,
+                       &bt_g_array_index(component->destroy_listeners,
                                struct bt_component_destroy_listener, i);
 
                listener->func(component, listener->data);
@@ -610,7 +610,7 @@ void bt_component_remove_destroy_listener(struct bt_component *component,
 
        for (i = 0; i < component->destroy_listeners->len; i++) {
                struct bt_component_destroy_listener *listener =
-                       &g_array_index(component->destroy_listeners,
+                       &bt_g_array_index(component->destroy_listeners,
                                struct bt_component_destroy_listener, i);
 
                if (listener->func == func && listener->data == data) {
This page took 0.02318 seconds and 4 git commands to generate.