projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib: update and simplify the `bt_object` API
[babeltrace.git]
/
include
/
babeltrace
/
plugin
/
plugin-internal.h
diff --git
a/include/babeltrace/plugin/plugin-internal.h
b/include/babeltrace/plugin/plugin-internal.h
index cbcf0274ca3ce71bc6db15c976093e717768a4a5..4cb57513a3073296637a8452df9d91ccc1aad860 100644
(file)
--- a/
include/babeltrace/plugin/plugin-internal.h
+++ b/
include/babeltrace/plugin/plugin-internal.h
@@
-169,7
+169,7
@@
struct bt_plugin *bt_plugin_create_empty(enum bt_plugin_type type)
goto error;
}
goto error;
}
- bt_object_init
(plugin
, bt_plugin_destroy);
+ bt_object_init
_shared(&plugin->base
, bt_plugin_destroy);
plugin->type = type;
/* Create empty array of component classes */
plugin->type = type;
/* Create empty array of component classes */
@@
-349,7
+349,7
@@
struct bt_plugin_set *bt_plugin_set_create(void)
}
BT_LOGD_STR("Creating empty plugin set.");
}
BT_LOGD_STR("Creating empty plugin set.");
- bt_object_init
(plugin_set
, bt_plugin_set_destroy);
+ bt_object_init
_shared(&plugin_set->base
, bt_plugin_set_destroy);
plugin_set->plugins = g_ptr_array_new_with_free_func(
(GDestroyNotify) bt_put);
plugin_set->plugins = g_ptr_array_new_with_free_func(
(GDestroyNotify) bt_put);
This page took
0.023138 seconds
and
4
git commands to generate.