projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move remaining protorectoral files to ctf fs plugin
[babeltrace.git]
/
plugins
/
text
/
text.c
diff --git
a/plugins/text/text.c
b/plugins/text/text.c
index 8f72b999eb18fc74ea574c9a6ad0cdf767ff9678..9a31041e0d0e2746de86ab29d871df7e8d92110c 100644
(file)
--- a/
plugins/text/text.c
+++ b/
plugins/text/text.c
@@
-99,11
+99,19
@@
struct text_component *create_text(void)
return g_new0(struct text_component, 1);
}
return g_new0(struct text_component, 1);
}
-static void destroy_text(void *data)
+static
+void destroy_text_data(struct text_component *data)
{
g_free(data);
}
{
g_free(data);
}
+static void destroy_text(struct bt_component *component)
+{
+ void *data = bt_component_get_private_data(component);
+
+ destroy_text_data(data);
+}
+
static
enum bt_component_status handle_notification(struct bt_component *component,
struct bt_notification *notification)
static
enum bt_component_status handle_notification(struct bt_component *component,
struct bt_notification *notification)
@@
-135,20
+143,19
@@
enum bt_component_status text_component_init(
}
ret = bt_component_sink_set_handle_notification_cb(component,
}
ret = bt_component_sink_set_handle_notification_cb(component,
- handle_notification);
+
handle_notification);
if (ret != BT_COMPONENT_STATUS_OK) {
goto error;
}
end:
return ret;
error:
if (ret != BT_COMPONENT_STATUS_OK) {
goto error;
}
end:
return ret;
error:
- destroy_text(text);
+ destroy_text
_data
(text);
return ret;
}
return ret;
}
-
/* Initialize plug-in entry points. */
/* Initialize plug-in entry points. */
-BT_PLUGIN_NAME("
ctf-
text");
+BT_PLUGIN_NAME("text");
BT_PLUGIN_DESCRIPTION("Babeltrace text output plug-in.");
BT_PLUGIN_AUTHOR("Jérémie Galarneau");
BT_PLUGIN_LICENSE("MIT");
BT_PLUGIN_DESCRIPTION("Babeltrace text output plug-in.");
BT_PLUGIN_AUTHOR("Jérémie Galarneau");
BT_PLUGIN_LICENSE("MIT");
This page took
0.024525 seconds
and
4
git commands to generate.