Document libbabeltrace2's C API
[babeltrace.git] / src / lib / graph / mip.c
index 6107dfbcde469483c774a684f98b44689faa812b..27da722f28db6ef2d7aab7a547004411363d745d 100644 (file)
@@ -28,7 +28,7 @@
 #include <stdbool.h>
 #include <unistd.h>
 #include <glib.h>
-#include <babeltrace2/graph/mip.h>
+#include <babeltrace2/graph/graph.h>
 
 #include "common/assert.h"
 #include "compat/compiler.h"
@@ -116,7 +116,7 @@ int validate_operative_mip_version_in_array(GPtrArray *descriptors,
                        break;
                }
                default:
-                       abort();
+                       bt_common_abort();
                }
 
                if (!method) {
@@ -146,6 +146,7 @@ int validate_operative_mip_version_in_array(GPtrArray *descriptors,
                        range_set->ranges->len > 0,
                        "User method returned `BT_FUNC_STATUS_OK` without "
                        "adding a range to the supported MIP version range set.");
+               BT_ASSERT_POST_NO_ERROR_IF_NO_ERROR_STATUS(method_status);
                if (method_status < 0) {
                        BT_LIB_LOGW_APPEND_CAUSE(
                                "Component class's \"get supported MIP versions\" method failed: "
@@ -194,6 +195,7 @@ bt_get_greatest_operative_mip_version(
 {
        int status = BT_FUNC_STATUS_OK;
 
+       BT_ASSERT_PRE_NO_ERROR();
        BT_ASSERT_PRE_NON_NULL(comp_descr_set, "Component descriptor set");
        BT_ASSERT_PRE_NON_NULL(operative_mip_version,
                "Operative MIP version (output)");
This page took 0.023594 seconds and 4 git commands to generate.