X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fgraph%2Fnotification-iterator.h;h=29d787a9c42ca2011fb76517c9382d5fc69cf85d;hb=3bfc4183e4026c21bad8c817125b1f6d31d6d89d;hp=03b84d97762cc197871bf0f2b14fc0c9d5768159;hpb=1d9157896dc759fcf7da3803523cf32a2400f1c0;p=babeltrace.git diff --git a/include/babeltrace/graph/notification-iterator.h b/include/babeltrace/graph/notification-iterator.h index 03b84d97..29d787a9 100644 --- a/include/babeltrace/graph/notification-iterator.h +++ b/include/babeltrace/graph/notification-iterator.h @@ -2,7 +2,7 @@ #define BABELTRACE_GRAPH_NOTIFICATION_ITERATOR_H /* - * BabelTrace - Plug-in Notification Iterator + * BabelTrace - Notification Iterator * * Copyright 2015 Jérémie Galarneau * @@ -58,23 +58,6 @@ enum bt_notification_iterator_status { BT_NOTIFICATION_ITERATOR_STATUS_UNSUPPORTED = -2, }; -/** - * Notification iterator seek reference. - */ -enum bt_notification_iterator_seek_origin { - /** Seek at a time relative to the beginning of the trace. */ - BT_NOTIFICATION_ITERATOR_SEEK_ORIGIN_BEGIN = 0, - - /** Seek at a time relative to the current position. */ - BT_NOTIFICATION_ITERATOR_SEEK_ORIGIN_CURRENT = 1, - - /** Seek at a time relative to the end of the trace. */ - BT_NOTIFICATION_ITERATOR_SEEK_ORIGIN_END = 2, - - /** Seek at a time relative to EPOCH. */ - BT_NOTIFICATION_ITERATOR_SEEK_ORIGIN_EPOCH = 3, -}; - /** * Get current notification at iterator's position. * @@ -103,29 +86,6 @@ extern struct bt_notification *bt_notification_iterator_get_notification( extern enum bt_notification_iterator_status bt_notification_iterator_next(struct bt_notification_iterator *iterator); -/** - * Seek iterator to time. - * - * Sets the iterator's position for the trace associated with the iterator. - * The new position is computed by adding \p time to the position specified - * by \p seek_origin. - * - * time is expressed in nanoseconds. - * - * @param iterator Iterator instance - * @param seek_origin One of #bt_notification_iterator_seek_type values. - * @returns One of #bt_notification_iterator_status values; - * if \iterator does not support seeking, - * #BT_NOTIFICATION_ITERATOR_STATUS_UNSUPPORTED is - * returned. - * - * @see bt_notification_iterator_get_notification() - */ -extern enum bt_notification_iterator_status bt_notification_iterator_seek_time( - struct bt_notification_iterator *iterator, - enum bt_notification_iterator_seek_origin seek_origin, - int64_t time); - extern struct bt_component *bt_notification_iterator_get_component( struct bt_notification_iterator *iterator);