Add utils.dummy component class, move plugins/trimmer to plugins/utils
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Sat, 11 Feb 2017 03:49:22 +0000 (22:49 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 28 May 2017 16:57:38 +0000 (12:57 -0400)
commite0dfa761f98d627ba5083e99f23d40528b2c4f14
tree7ec1d7716c5ef197b8632fca15b613b20267f9c4
parentad96d93646ede91f93d3630b7e6d655f0edf1b3b
Add utils.dummy component class, move plugins/trimmer to plugins/utils

This patch adds a plugins/utils directory where the utils plugin sources
are. plugins/trimmer is moved to this new directory because the trimmer
component class is part of the utils plugin.

Also in the utils plugin is the dummy sink component class. This sink
does absolutely nothing with its notifications. It is the equivalent of
the BT 1.x dummy format. At consume time, it gets one notification per
input notification iterator and returns
BT_NOTIFICATION_ITERATOR_STATUS_END when all the iterators are at the
end.

The legacy `-o dummy` option is not handled specifically in this commit.
You can use the dummy sink as usual:

    babeltrace /path/to/trace -o utils.dummy

The dummy component class ignores its initialization parameters.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
18 files changed:
configure.ac
converter/Makefile.am
plugins/Makefile.am
plugins/trimmer/Makefile.am [deleted file]
plugins/trimmer/iterator.c [deleted file]
plugins/trimmer/iterator.h [deleted file]
plugins/trimmer/trimmer.c [deleted file]
plugins/trimmer/trimmer.h [deleted file]
plugins/utils/Makefile.am [new file with mode: 0644]
plugins/utils/dummy/Makefile.am [new file with mode: 0644]
plugins/utils/dummy/dummy.c [new file with mode: 0644]
plugins/utils/dummy/dummy.h [new file with mode: 0644]
plugins/utils/plugin.c [new file with mode: 0644]
plugins/utils/trimmer/Makefile.am [new file with mode: 0644]
plugins/utils/trimmer/iterator.c [new file with mode: 0644]
plugins/utils/trimmer/iterator.h [new file with mode: 0644]
plugins/utils/trimmer/trimmer.c [new file with mode: 0644]
plugins/utils/trimmer/trimmer.h [new file with mode: 0644]
This page took 0.025277 seconds and 4 git commands to generate.