extern "C" {
#endif
+#include <stdint.h>
#include <babeltrace/babeltrace-internal.h>
#include <babeltrace/values.h>
BT_HIDDEN
const char *bt_ctf_attributes_get_field_name(struct bt_value *attr_obj,
- int index);
+ uint64_t index);
BT_HIDDEN
struct bt_value *bt_ctf_attributes_get_field_value(struct bt_value *attr_obj,
- int index);
+ uint64_t index);
BT_HIDDEN
int bt_ctf_attributes_set_field_value(struct bt_value *attr_obj,
BT_HIDDEN
const char *bt_ctf_attributes_get_field_name(struct bt_value *attr_obj,
- int index)
+ uint64_t index)
{
int rc;
const char *ret = NULL;
BT_HIDDEN
struct bt_value *bt_ctf_attributes_get_field_value(struct bt_value *attr_obj,
- int index)
+ uint64_t index)
{
struct bt_value *value_obj = NULL;
struct bt_value *attr_field_obj = NULL;
struct bt_value *bt_ctf_attributes_get_field_by_name(
struct bt_value *attr_obj, const char *name)
{
- int i;
- int attr_size;
+ uint64_t i;
+ int64_t attr_size;
struct bt_value *value_obj = NULL;
struct bt_value *attr_field_name_obj = NULL;
BT_HIDDEN
int bt_ctf_attributes_freeze(struct bt_value *attr_obj)
{
- int i;
- int count;
+ uint64_t i;
+ int64_t count;
int ret = 0;
if (!attr_obj) {