bt_value_map_extend(): make base/extension objects `const`
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Mon, 19 Nov 2018 19:59:54 +0000 (14:59 -0500)
committerFrancis Deslauriers <francis.deslauriers@efficios.com>
Thu, 2 May 2019 20:50:15 +0000 (20:50 +0000)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
include/babeltrace/private-values.h
include/babeltrace/values.h
lib/values.c

index f94f27a0e9c9b37d020c4d520fd7d37b97823780..8563e31dfad15aa1b434afa7ea43dab021c2ef08 100644 (file)
@@ -44,7 +44,6 @@ extern struct bt_value *bt_value_borrow_from_private(
 
 extern struct bt_private_value *bt_private_value_bool_create(void);
 
-
 extern struct bt_private_value *bt_private_value_bool_create_init(bt_bool val);
 
 extern void bt_private_value_bool_set(struct bt_private_value *bool_obj,
index eb98e9599f47cf77c77b27f37c39d7b04afaaf4c..5bb43335c235e3573fd4326d788c1dc4dab4e2d1 100644 (file)
@@ -170,8 +170,8 @@ extern bt_bool bt_value_map_has_entry(const struct bt_value *map_obj,
 
 extern enum bt_value_status bt_value_map_extend(
                struct bt_private_value **extended_map_obj,
-               struct bt_value *base_map_obj,
-               struct bt_value *extension_map_obj);
+               const struct bt_value *base_map_obj,
+               const struct bt_value *extension_map_obj);
 
 #ifdef __cplusplus
 }
index 82765958b31b177509af123902594b5ae32fbb20..d91b5f2ef8e128e5368718dddf72423093c8c6c6 100644 (file)
@@ -1200,8 +1200,8 @@ end:
 
 enum bt_value_status bt_value_map_extend(
                struct bt_private_value **extended_map_obj,
-               struct bt_value *base_map_obj,
-               struct bt_value *extension_obj)
+               const struct bt_value *base_map_obj,
+               const struct bt_value *extension_obj)
 {
        struct extend_map_element_data extend_data = {
                .extended_obj = NULL,
This page took 0.027059 seconds and 4 git commands to generate.