X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fgraph%2Fcomponent.h;h=c35685aa93e4a2c7daa3b88749294c213f9e55ab;hb=8138bfe1b1d389d60d8f6c98b8f0cc8e84b9907b;hp=f2db9d723c1f254056937b90e1be920fe016429f;hpb=44514773a92ed494fc9dc8637edcdaa3359baa54;p=babeltrace.git diff --git a/include/babeltrace/graph/component.h b/include/babeltrace/graph/component.h index f2db9d72..c35685aa 100644 --- a/include/babeltrace/graph/component.h +++ b/include/babeltrace/graph/component.h @@ -33,8 +33,8 @@ /* For bt_bool */ #include -/* For bt_get */ -#include +/* For bt_object_get_ref */ +#include #ifdef __cplusplus extern "C" { @@ -92,7 +92,7 @@ extern struct bt_graph *bt_component_borrow_graph(struct bt_component *component static inline struct bt_graph *bt_component_get_graph(struct bt_component *component) { - return bt_get(bt_component_borrow_graph(component)); + return bt_object_get_ref(bt_component_borrow_graph(component)); } #ifdef __cplusplus