X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=include%2Fbabeltrace%2Fctf%2Fiterator.h;h=1071def852749d3a4abee44a346e2280dd2d7452;hp=71f935a0fe581c557ea8e3585b19c9fcde763de9;hb=e003e87103a3fd72d543ec3191c20df56599b0f5;hpb=ec4c2b5ccbda1625a9011c27994186bf78cc9d72 diff --git a/include/babeltrace/ctf/iterator.h b/include/babeltrace/ctf/iterator.h index 71f935a0..1071def8 100644 --- a/include/babeltrace/ctf/iterator.h +++ b/include/babeltrace/ctf/iterator.h @@ -39,6 +39,13 @@ struct bt_ctf_event; * By default, if begin_pos is NULL, a BT_SEEK_CUR is performed at * creation. By default, if end_pos is NULL, a BT_SEEK_END (end of * trace) is the EOF criterion. + * + * Return a pointer to the newly allocated iterator. + * + * Only one iterator can be created against a context. If more than one + * iterator is being created for the same context, the second creation + * will return NULL. The previous iterator must be destroyed before + * creation of the new iterator for this function to succeed. */ struct bt_ctf_iter *bt_ctf_iter_create(struct bt_context *ctx, const struct bt_iter_pos *begin_pos,