-static
-void ctf_reader_destroy(struct bt_plugin *plugin)
-{
- struct ctf_reader *reader;
-
- if (!plugin) {
- return;
- }
-
- reader = bt_plugin_get_private_data(plugin);
- if (!reader) {
- return;
- }
-
- g_free(reader);
-}
-
-static
-struct bt_notification_iterator *ctf_reader_iterator_create(
- struct bt_plugin *plugin)
-{
- return NULL;
-}
-
-struct bt_plugin *bt_plugin_lib_create(struct bt_object *params)
-{
- struct bt_plugin *plugin = NULL;
- struct ctf_reader *reader = g_new0(struct ctf_reader, 1);
-
- plugin = bt_plugin_source_create(plugin_name, reader,
- ctf_reader_destroy, ctf_reader_iterator_create);
- if (!plugin) {
- goto error;
- }
-
-end:
- return plugin;
-error:
- if (reader) {
- g_free(reader);
- }
- goto end;
-}