Remove the need to implement the notification iterator's "get" method
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 28 Mar 2017 23:57:34 +0000 (19:57 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 28 May 2017 16:57:39 +0000 (12:57 -0400)
commit41a2b7aeccec8153fc6845819a0ca98461f35cb1
tree352c6bd79c2718404f5a9fb13b56b06f45c53d92
parent64cadc660bbd0400df65da3534d28dbe59395ec7
Remove the need to implement the notification iterator's "get" method

The order of a notification iterator's "get" method is to return the
"current notification", set by the last "next" method call. Since all
source and filter plugins do the same in their "get" method, let's
remove the need to implement it at all.

The bt_notification_iterator_next() and
bt_notification_iterator_get_notification() public functions are still
available for the iterator's user, but the iterator object itself keeps
the current notification returned by the last "next" method call.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
21 files changed:
include/babeltrace/component/component-class-filter.h
include/babeltrace/component/component-class-internal.h
include/babeltrace/component/component-class-source.h
include/babeltrace/component/component-class.h
include/babeltrace/component/notification/iterator-internal.h
include/babeltrace/component/notification/iterator.h
include/babeltrace/plugin/plugin-dev.h
lib/component/component-class.c
lib/component/iterator.c
lib/plugin/plugin-so.c
plugins/ctf/fs/fs.c
plugins/ctf/fs/fs.h
plugins/ctf/lttng-live/lttng-live-internal.h
plugins/ctf/lttng-live/lttng-live.c
plugins/ctf/plugin.c
plugins/muxer/muxer.c
plugins/text/text.c
plugins/utils/plugin.c
plugins/utils/trimmer/iterator.c
plugins/utils/trimmer/iterator.h
tests/lib/test-plugin-plugins/sfs.c
This page took 0.02915 seconds and 4 git commands to generate.