Visibility hidden by default
[babeltrace.git] / src / lib / graph / message / message-iterator-inactivity.c
index 4223585d8990416281bf770193a2082b8f50d9b4..3006811fb515acd33818e314471b09279c36db68 100644 (file)
@@ -34,6 +34,7 @@ void bt_message_message_iterator_inactivity_destroy(struct bt_object *obj)
        g_free(message);
 }
 
+BT_EXPORT
 struct bt_message *bt_message_message_iterator_inactivity_create(
                struct bt_self_message_iterator *self_msg_iter,
                const struct bt_clock_class *clock_class,
@@ -45,8 +46,8 @@ struct bt_message *bt_message_message_iterator_inactivity_create(
        struct bt_message *ret_msg = NULL;
 
        BT_ASSERT_PRE_DEV_NO_ERROR();
-       BT_ASSERT_PRE_NON_NULL(msg_iter, "Message iterator");
-       BT_ASSERT_PRE_NON_NULL(clock_class, "Default clock class");
+       BT_ASSERT_PRE_MSG_ITER_NON_NULL(msg_iter);
+       BT_ASSERT_PRE_DEF_CLK_CLS_NON_NULL(clock_class);
        BT_LIB_LOGD("Creating message iterator inactivity message object: "
                "%![iter-]+i, %![cc-]+K, value=%" PRIu64, msg_iter,
                clock_class, value_cycles);
@@ -79,14 +80,16 @@ end:
        return (void *) ret_msg;
 }
 
-extern const struct bt_clock_snapshot *
+BT_EXPORT
+const struct bt_clock_snapshot *
 bt_message_message_iterator_inactivity_borrow_clock_snapshot_const(
                const bt_message *msg)
 {
        struct bt_message_message_iterator_inactivity *inactivity = (void *) msg;
 
-       BT_ASSERT_PRE_DEV_NON_NULL(msg, "Message");
-       BT_ASSERT_PRE_DEV_MSG_HAS_TYPE(msg,
+       BT_ASSERT_PRE_DEV_MSG_NON_NULL(msg);
+       BT_ASSERT_PRE_DEV_MSG_HAS_TYPE("message", msg,
+               "message-iterator-inactivity",
                BT_MESSAGE_TYPE_MESSAGE_ITERATOR_INACTIVITY);
        return inactivity->cs;
 }
This page took 0.02578 seconds and 4 git commands to generate.