BT_NOTIFICATION_ITERATOR_STATUS_OK = 0,
};
+/**
+ * Notification iterator seek reference.
+ */
enum bt_notification_iterator_seek_type {
/** Seek at a time relative to the beginning of the trace. */
BT_NOTIFICATION_ITERATOR_SEEK_TYPE_BEGIN = 0,
- /** Seek at a time relative to the current position */
+ /** Seek at a time relative to the current position. */
BT_NOTIFICATION_ITERATOR_SEEK_TYPE_CURRENT = 1,
- /** Seek at a absolute time */
- BT_NOTIFICATION_ITERATOR_SEEK_TYPE_SET = 2,
+ /** Seek at a time relative to the end of the trace. */
+ BT_NOTIFICATION_ITERATOR_SEEK_TYPE_END = 1,
};
/**
void *private_data, bt_plugin_destroy_func destroy_func,
bt_plugin_sink_handle_notification_cb notification_cb);
+/* Notification iterator functions */
/**
* Allocate an notification iterator.
*
bt_notification_iterator_next_cb next_cb,
bt_notification_iterator_get_notification_cb notification_cb);
+/**
+ * Set an iterator's private data.
+ *
+ * @param plugin Plug-in instance on which to iterate
+ * @param data Iterator private data
+ * @returns One of #bt_notification_iterator_status values
+ */
+extern enum bt_notification_iterator_status *bt_notification_iterator_create(
+ struct bt_plugin *plugin, void *data);
+
#ifdef __cplusplus
}
#endif