X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=lib%2Fvalues.c;h=afbabc656de617862b6421a2e5be12b53f7705e7;hp=70c3676a9a68d751cc9d035bc26ca69539c80d6a;hb=40f4ba76dd6f9508ca51b6220eaed57632281a07;hpb=05e2128659970c32648a01255ed870449f05d518 diff --git a/lib/values.c b/lib/values.c index 70c3676a..afbabc65 100644 --- a/lib/values.c +++ b/lib/values.c @@ -1113,7 +1113,7 @@ enum bt_value_status bt_value_map_insert_empty_map_entry( } enum bt_value_status bt_value_map_foreach_entry(struct bt_value *map_obj, - bt_value_map_foreach_entry_cb cb, void *data) + bt_value_map_foreach_entry_func func, void *data) { enum bt_value_status ret = BT_VALUE_STATUS_OK; gpointer key, element_obj; @@ -1121,14 +1121,14 @@ enum bt_value_status bt_value_map_foreach_entry(struct bt_value *map_obj, struct bt_value_map *typed_map_obj = BT_VALUE_TO_MAP(map_obj); BT_ASSERT_PRE_NON_NULL(map_obj, "Value object"); - BT_ASSERT_PRE_NON_NULL(cb, "Callback"); + BT_ASSERT_PRE_NON_NULL(func, "Callback"); BT_ASSERT_PRE_VALUE_IS_TYPE(map_obj, BT_VALUE_TYPE_MAP); g_hash_table_iter_init(&iter, typed_map_obj->ght); while (g_hash_table_iter_next(&iter, &key, &element_obj)) { const char *key_str = g_quark_to_string(GPOINTER_TO_UINT(key)); - if (!cb(key_str, element_obj, data)) { + if (!func(key_str, element_obj, data)) { BT_LOGV("User canceled the loop: key=\"%s\", " "value-addr=%p, data=%p", key_str, element_obj, data); @@ -1142,10 +1142,10 @@ enum bt_value_status bt_value_map_foreach_entry(struct bt_value *map_obj, enum bt_value_status bt_value_map_foreach_entry_const( const struct bt_value *map_obj, - bt_value_map_foreach_entry_const_cb cb, void *data) + bt_value_map_foreach_entry_const_func func, void *data) { return bt_value_map_foreach_entry((void *) map_obj, - (bt_value_map_foreach_entry_cb) cb, data); + (bt_value_map_foreach_entry_func) func, data); } struct extend_map_element_data {