#ifndef BABELTRACE_PLUGIN_CTF_FS_SINK_FS_SINK_CTF_META_H
#define BABELTRACE_PLUGIN_CTF_FS_SINK_FS_SINK_CTF_META_H
-#include <babeltrace2/babeltrace.h>
-#include "common/common.h"
-#include "common/assert.h"
-#include "common/uuid.h"
#include <glib.h>
#include <stdint.h>
#include <string.h>
-#include <stdbool.h>
-#include <ctype.h>
+
+#include <babeltrace2/babeltrace.h>
+
+#include "common/assert.h"
+#include "common/common.h"
+#include "common/uuid.h"
enum fs_sink_ctf_field_class_type
{
{
BT_ASSERT_DBG(fc);
BT_ASSERT_DBG(index < fc->members->len);
- return &g_array_index(fc->members, struct fs_sink_ctf_named_field_class, index);
+ return &bt_g_array_index(fc->members, struct fs_sink_ctf_named_field_class, index);
}
static inline struct fs_sink_ctf_named_field_class *
g_array_set_size(fc->members, fc->members->len + 1);
named_fc =
- &g_array_index(fc->members, struct fs_sink_ctf_named_field_class, fc->members->len - 1);
+ &bt_g_array_index(fc->members, struct fs_sink_ctf_named_field_class, fc->members->len - 1);
_fs_sink_ctf_named_field_class_init(named_fc);
g_string_assign(named_fc->name, name);
named_fc->fc = member_fc;
{
BT_ASSERT_DBG(fc);
BT_ASSERT_DBG(index < fc->options->len);
- return &g_array_index(fc->options, struct fs_sink_ctf_named_field_class, index);
+ return &bt_g_array_index(fc->options, struct fs_sink_ctf_named_field_class, index);
}
static inline struct fs_sink_ctf_named_field_class *
g_array_set_size(fc->options, fc->options->len + 1);
named_fc =
- &g_array_index(fc->options, struct fs_sink_ctf_named_field_class, fc->options->len - 1);
+ &bt_g_array_index(fc->options, struct fs_sink_ctf_named_field_class, fc->options->len - 1);
_fs_sink_ctf_named_field_class_init(named_fc);
g_string_assign(named_fc->name, name);
named_fc->fc = option_fc;