X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=lib%2Fgraph%2Fport.c;fp=lib%2Fgraph%2Fport.c;h=da83725ee8b1ac0b96a9ec136df945997331c1b2;hb=c5b9b4417bedfbec9b5dd23b8395ccdd4eeffc44;hp=01ee3944fc62bc83d101545da44266055e966399;hpb=e2f7325d1e58710ee928373592adcee466f93d06;p=babeltrace.git diff --git a/lib/graph/port.c b/lib/graph/port.c index 01ee3944..da83725e 100644 --- a/lib/graph/port.c +++ b/lib/graph/port.c @@ -24,6 +24,8 @@ #define BT_LOG_TAG "PORT" #include +#include +#include #include #include #include @@ -34,10 +36,7 @@ #include #include #include -#include #include -#include -#include static void destroy_port(struct bt_object *obj) @@ -171,3 +170,33 @@ void *bt_self_component_port_get_data(const struct bt_self_component_port *port) BT_ASSERT_PRE_NON_NULL(port, "Port"); return ((struct bt_port *) port)->user_data; } + +void bt_port_get_ref(const struct bt_port *port) +{ + bt_object_get_ref(port); +} + +void bt_port_put_ref(const struct bt_port *port) +{ + bt_object_put_ref(port); +} + +void bt_port_input_get_ref(const struct bt_port_input *port_input) +{ + bt_object_get_ref(port_input); +} + +void bt_port_input_put_ref(const struct bt_port_input *port_input) +{ + bt_object_put_ref(port_input); +} + +void bt_port_output_get_ref(const struct bt_port_output *port_output) +{ + bt_object_get_ref(port_output); +} + +void bt_port_output_put_ref(const struct bt_port_output *port_output) +{ + bt_object_put_ref(port_output); +}