Document libbabeltrace2's C API
[babeltrace.git] / src / lib / trace-ir / clock-snapshot.c
index cbce39c14e022f90fd93c74473f719dc314dba77..9d20c9c1a0ff69e7b4e378702155224bc8d509e7 100644 (file)
@@ -27,7 +27,7 @@
 #include "common/uuid.h"
 #include "clock-class.h"
 #include "clock-snapshot.h"
-#include <babeltrace2/trace-ir/clock-snapshot-const.h>
+#include <babeltrace2/trace-ir/clock-snapshot.h>
 #include "compat/compiler.h"
 #include <babeltrace2/types.h>
 #include "compat/string.h"
@@ -149,6 +149,7 @@ bt_clock_snapshot_get_ns_from_origin(
 {
        int ret = BT_FUNC_STATUS_OK;
 
+       BT_ASSERT_PRE_DEV_NO_ERROR();
        BT_ASSERT_PRE_DEV_NON_NULL(clock_snapshot, "Clock snapshot");
        BT_ASSERT_PRE_DEV_NON_NULL(ret_value_ns, "Value (ns) (output)");
        BT_ASSERT_PRE_DEV(clock_snapshot->is_set,
This page took 0.024059 seconds and 4 git commands to generate.