common: introduce bt_g_array_index
[babeltrace.git] / src / lib / trace-ir / field-class.h
index 29c4f72a92921004690eed2004eb412b939e8c93..159614a250905489687a92e885d9d0ce041120e4 100644 (file)
 #include <glib.h>
 
 #define BT_FIELD_CLASS_ENUM_MAPPING_AT_INDEX(_fc, _index)              \
-       (&g_array_index(((struct bt_field_class_enumeration *) (_fc))->mappings, \
+       (&bt_g_array_index(((struct bt_field_class_enumeration *) (_fc))->mappings, \
                struct bt_field_class_enumeration_mapping, (_index)))
 
 #define BT_FIELD_CLASS_ENUM_MAPPING_RANGE_AT_INDEX(_mapping, _index)   \
-       (&g_array_index((_mapping)->ranges,                             \
+       (&bt_g_array_index((_mapping)->ranges,                          \
                struct bt_field_class_enumeration_mapping_range, (_index)))
 
 struct bt_field_class {
This page took 0.023678 seconds and 4 git commands to generate.