assert-pre-internal.h: add BT_ASSERT_PRE_VALID_INDEX()
[babeltrace.git] / include / babeltrace / ctf-ir / validation-internal.h
index cf05a23b164e19f3ff28fff4433fe90811265022..2eaa8d6e875e50c0deddcb6a6ce56e1df2d31eef 100644 (file)
  * SOFTWARE.
  */
 
-#include <babeltrace/ctf-ir/field-types.h>
-#include <babeltrace/ctf-ir/event.h>
-#include <babeltrace/ctf-ir/stream-class.h>
-#include <babeltrace/ctf-ir/trace.h>
 #include <babeltrace/values.h>
 #include <babeltrace/babeltrace-internal.h>
 
+struct bt_trace;
+struct bt_stream_class;
+struct bt_event_class;
+struct bt_field_type;
+
+typedef struct bt_field_type *(*bt_validation_flag_copy_field_type_func)(
+               struct bt_field_type *);
+
 enum bt_validation_flag {
        BT_VALIDATION_FLAG_TRACE        = 1,
        BT_VALIDATION_FLAG_STREAM       = 2,
@@ -87,7 +91,8 @@ int bt_validate_class_types(struct bt_value *environment,
                struct bt_field_type *event_payload_type,
                int trace_valid, int stream_class_valid, int event_class_valid,
                struct bt_validation_output *output,
-               enum bt_validation_flag validate_flags);
+               enum bt_validation_flag validate_flags,
+               bt_validation_flag_copy_field_type_func copy_field_type_func);
 
 /*
  * This function replaces the actual field types of a trace, a stream
This page took 0.024198 seconds and 4 git commands to generate.