From: Jérémie Galarneau Date: Wed, 4 Mar 2015 17:24:08 +0000 (-0500) Subject: Reader plugin skeleton X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=4c1456f0e7bbf3e74bc437fd9222dbe044f9acec;p=deliverable%2Fbabeltrace.git Reader plugin skeleton Signed-off-by: Jérémie Galarneau --- diff --git a/plugins/ctf/reader.c b/plugins/ctf/reader.c new file mode 100644 index 000000000..f642e3c7f --- /dev/null +++ b/plugins/ctf/reader.c @@ -0,0 +1,28 @@ +enum bt_plugin_type bt_plugin_get_type(void) +{ + return BT_PLUGIN_TYPE_SOURCE; +} + +const char *bt_plugin_get_format_name(void) +{ + return "ctf"; +} + +static struct bt_notification_iterator *create_iterator(struct bt_plugin *plugin) +{ + return NULL; +} + +static void destroy_mein_shitzle(struct bt_plugin *plugin) +{ + free(bt_plugin_get_data(plugin)); +} + +struct bt_plugin *bt_plugin_create(struct bt_ctf_field *params) +{ + void *mein_shit = 0x4589; + + return bt_plugin_source_create("ctf", mein_shit, destroy_func, + create_iterator); +} +