#include "lib/object.h"
#include "compat/compiler.h"
#include "compat/fcntl.h"
-#include "common/align.h"
#include "common/assert.h"
#include <inttypes.h>
#include <stdbool.h>
#include "field.h"
#include "field-class.h"
#include "lib/func-status.h"
+#include "utils.h"
#define BT_ASSERT_PRE_DEV_FIELD_HOT(_field) \
BT_ASSERT_PRE_DEV_HOT("field", \
}
g_array_set_size(string_field->buf, 1);
- g_array_index(string_field->buf, char, 0) = '\0';
+ bt_g_array_index(string_field->buf, char, 0) = '\0';
BT_LIB_LOGD("Created string field object: %!+f", string_field);
end:
BT_ASSERT_DBG(field);
string_field->length = 0;
- g_array_index(string_field->buf, char, 0) = '\0';
+ bt_g_array_index(string_field->buf, char, 0) = '\0';
bt_field_set_single(field, true);
}