projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib: strictly type function return status enumerations
[babeltrace.git]
/
src
/
bindings
/
python
/
bt2
/
bt2
/
native_bt_value.i
diff --git
a/src/bindings/python/bt2/bt2/native_bt_value.i
b/src/bindings/python/bt2/bt2/native_bt_value.i
index 8072614d4f7f756a4ae724df11bff65f576953b8..e9eea0435b613873088c35e306f27fa1e65bd955 100644
(file)
--- a/
src/bindings/python/bt2/bt2/native_bt_value.i
+++ b/
src/bindings/python/bt2/bt2/native_bt_value.i
@@
-32,11
+32,11
@@
struct bt_value_map_get_keys_data {
static int bt_value_map_get_keys_cb(const char *key, const struct bt_value *object, void *data)
{
static int bt_value_map_get_keys_cb(const char *key, const struct bt_value *object, void *data)
{
-
enum bt_value
_status status;
+
bt_value_array_append_element
_status status;
struct bt_value_map_get_keys_data *priv_data = data;
status = bt_value_array_append_string_element(priv_data->keys, key);
struct bt_value_map_get_keys_data *priv_data = data;
status = bt_value_array_append_string_element(priv_data->keys, key);
- if (status !=
BT_VALUE
_STATUS_OK) {
+ if (status !=
__BT_FUNC
_STATUS_OK) {
return BT_FALSE;
}
return BT_FALSE;
}
@@
-45,7
+45,7
@@
static int bt_value_map_get_keys_cb(const char *key, const struct bt_value *obje
static struct bt_value *bt_value_map_get_keys(const struct bt_value *map_obj)
{
static struct bt_value *bt_value_map_get_keys(const struct bt_value *map_obj)
{
-
enum bt_value
_status status;
+
bt_value_map_foreach_entry_const
_status status;
struct bt_value_map_get_keys_data data;
data.keys = bt_value_array_create();
struct bt_value_map_get_keys_data data;
data.keys = bt_value_array_create();
@@
-55,7
+55,7
@@
static struct bt_value *bt_value_map_get_keys(const struct bt_value *map_obj)
status = bt_value_map_foreach_entry_const(map_obj, bt_value_map_get_keys_cb,
&data);
status = bt_value_map_foreach_entry_const(map_obj, bt_value_map_get_keys_cb,
&data);
- if (status !=
BT_VALUE
_STATUS_OK) {
+ if (status !=
__BT_FUNC
_STATUS_OK) {
goto error;
}
goto error;
}
This page took
0.024579 seconds
and
4
git commands to generate.