projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib: bt_object_{get,put}_ref(): accept a `const` parameter
[babeltrace.git]
/
lib
/
plugin
/
plugin-so.c
diff --git
a/lib/plugin/plugin-so.c
b/lib/plugin/plugin-so.c
index 9208dc535bb967b60661c000d868e2b5648f6799..1c3e348a04b759d07dcd5b56944fa99f84be37b7 100644
(file)
--- a/
lib/plugin/plugin-so.c
+++ b/
lib/plugin/plugin-so.c
@@
-1130,7
+1130,8
@@
struct bt_plugin *bt_plugin_so_create_empty(
}
spec = plugin->spec_data;
}
spec = plugin->spec_data;
- spec->shared_lib_handle = bt_object_get_ref(shared_lib_handle);
+ spec->shared_lib_handle = shared_lib_handle;
+ bt_object_get_no_null_check(spec->shared_lib_handle);
goto end;
error:
goto end;
error:
@@
-1498,7
+1499,8
@@
void bt_plugin_so_on_add_component_class(struct bt_plugin *plugin,
BT_ASSERT(plugin->type == BT_PLUGIN_TYPE_SO);
bt_list_add(&comp_class->node, &component_class_list);
BT_ASSERT(plugin->type == BT_PLUGIN_TYPE_SO);
bt_list_add(&comp_class->node, &component_class_list);
- comp_class->so_handle = bt_object_get_ref(spec->shared_lib_handle);
+ comp_class->so_handle = spec->shared_lib_handle;
+ bt_object_get_no_null_check(comp_class->so_handle);
/* Add our custom destroy listener */
bt_component_class_add_destroy_listener(comp_class,
/* Add our custom destroy listener */
bt_component_class_add_destroy_listener(comp_class,
This page took
0.02342 seconds
and
4
git commands to generate.