lib: make public reference count functions have strict types
[babeltrace.git] / lib / graph / connection.c
index 3fabe213d3fd5498462cfc5bae4008962c0be665..ebe03903025ea30305c80b2d08b977b90b8d9a6f 100644 (file)
@@ -24,6 +24,8 @@
 #define BT_LOG_TAG "CONNECTION"
 #include <babeltrace/lib-logging-internal.h>
 
+#include <babeltrace/assert-internal.h>
+#include <babeltrace/assert-pre-internal.h>
 #include <babeltrace/graph/notification-iterator-internal.h>
 #include <babeltrace/graph/component-internal.h>
 #include <babeltrace/graph/connection-internal.h>
@@ -32,9 +34,6 @@
 #include <babeltrace/graph/port-internal.h>
 #include <babeltrace/object-internal.h>
 #include <babeltrace/compiler-internal.h>
-#include <babeltrace/object.h>
-#include <babeltrace/assert-internal.h>
-#include <babeltrace/assert-pre-internal.h>
 #include <stdlib.h>
 #include <glib.h>
 
@@ -284,3 +283,13 @@ bt_bool bt_connection_is_ended(const struct bt_connection *connection)
 {
        return !connection->downstream_port && !connection->upstream_port;
 }
+
+void bt_connection_get_ref(const struct bt_connection *connection)
+{
+       bt_object_get_ref(connection);
+}
+
+void bt_connection_put_ref(const struct bt_connection *connection)
+{
+       bt_object_put_ref(connection);
+}
This page took 0.024347 seconds and 4 git commands to generate.