#include <babeltrace/ctf-writer/functor-internal.h>
#include <babeltrace/ctf-ir/utils.h>
#include <babeltrace/ref.h>
-#include <babeltrace/compiler.h>
-#include <babeltrace/align.h>
-#include <babeltrace/endian.h>
+#include <babeltrace/compiler-internal.h>
+#include <babeltrace/align-internal.h>
+#include <babeltrace/endian-internal.h>
#include <inttypes.h>
static
if (packet_context_type &&
bt_ctf_field_type_get_type_id(packet_context_type) !=
- BT_CTF_TYPE_ID_STRUCT) {
+ BT_CTF_FIELD_TYPE_ID_STRUCT) {
/* A packet context must be a structure. */
ret = -1;
goto end;
if (event_header_type &&
bt_ctf_field_type_get_type_id(event_header_type) !=
- BT_CTF_TYPE_ID_STRUCT) {
+ BT_CTF_FIELD_TYPE_ID_STRUCT) {
/* An event header must be a structure. */
ret = -1;
goto end;
if (event_context_type &&
bt_ctf_field_type_get_type_id(event_context_type) !=
- BT_CTF_TYPE_ID_STRUCT) {
+ BT_CTF_FIELD_TYPE_ID_STRUCT) {
/* A packet context must be a structure. */
ret = -1;
goto end;