Reader plugin skeleton
[babeltrace.git] / plugins / ctf / reader.c
1 enum bt_plugin_type bt_plugin_get_type(void)
2 {
3 return BT_PLUGIN_TYPE_SOURCE;
4 }
5
6 const char *bt_plugin_get_format_name(void)
7 {
8 return "ctf";
9 }
10
11 static struct bt_notification_iterator *create_iterator(struct bt_plugin *plugin)
12 {
13 return NULL;
14 }
15
16 static void destroy_mein_shitzle(struct bt_plugin *plugin)
17 {
18 free(bt_plugin_get_data(plugin));
19 }
20
21 struct bt_plugin *bt_plugin_create(struct bt_ctf_field *params)
22 {
23 void *mein_shit = 0x4589;
24
25 return bt_plugin_source_create("ctf", mein_shit, destroy_func,
26 create_iterator);
27 }
28
This page took 0.030381 seconds and 5 git commands to generate.