#define BT_LOG_TAG "PLUGIN-CTF-METADATA-META-VALIDATE"
#include "logging.h"
-#include <babeltrace/babeltrace.h>
-#include <babeltrace/babeltrace-internal.h>
-#include <babeltrace/assert-internal.h>
+#include <babeltrace2/babeltrace.h>
+#include <babeltrace2/babeltrace-internal.h>
+#include <babeltrace2/assert-internal.h>
#include <glib.h>
#include <stdint.h>
#include <string.h>
int ret = 0;
struct ctf_field_class_int *int_fc;
struct ctf_field_class *fc;
- bool has_total_size = false;
- bool has_content_size = false;
if (sc->is_translated) {
goto end;
"`packet_size` member is signed.");
goto invalid;
}
-
- has_total_size = true;
}
fc = ctf_field_class_struct_borrow_member_field_class_by_name(
"`content_size` member is signed.");
goto invalid;
}
-
- has_content_size = true;
- }
-
- if (has_content_size && !has_total_size) {
- BT_LOGE_STR("Invalid packet context field class: "
- "`content_size` member exists without "
- "`packet_size` member.");
- goto invalid;
}
fc = ctf_field_class_struct_borrow_member_field_class_by_name(