#include <babeltrace/iterator.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct bt_ctf_iter;
-struct ctf_event_definition;
+struct bt_ctf_event;
/*
* bt_ctf_iter_create - Allocate a CTF trace collection iterator.
/*
* bt_ctf_iter_read_event: Read the iterator's current event data.
*
- * @iter: trace collection iterator (input)
+ * @iter: trace collection iterator (input). Should NOT be NULL.
*
* Return current event on success, NULL on end of trace.
*/
-struct ctf_event_definition *bt_ctf_iter_read_event(struct bt_ctf_iter *iter);
+struct bt_ctf_event *bt_ctf_iter_read_event(struct bt_ctf_iter *iter);
+
+#ifdef __cplusplus
+}
+#endif
#endif /* _BABELTRACE_CTF_ITERATOR_H */