On Sat, Oct 24, 2015 at 6:02 PM, Ganesh Ajjanagadde <gajjanaga...@gmail.com> wrote: > This documents the additional constness, and provides a useful libc > reference for the API specification of the comparator. > > Signed-off-by: Ganesh Ajjanagadde <gajjanaga...@gmail.com> > --- > libavutil/tree.h | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/libavutil/tree.h b/libavutil/tree.h > index a14fa91..16dd8de 100644 > --- a/libavutil/tree.h > +++ b/libavutil/tree.h > @@ -56,6 +56,8 @@ struct AVTreeNode *av_tree_node_alloc(void); > * @param next If next is not NULL, then next[0] will contain the previous > * element and next[1] the next element. If either does not > exist, > * then the corresponding entry in next is unchanged. > + * @param cmp compare function used to compare elements in the tree, > + * API identical to that of libc's qsort > * @return An element with cmp(key, elem) == 0 or NULL if no such element > * exists in the tree. > */ > @@ -99,7 +101,8 @@ void *av_tree_find(const struct AVTreeNode *root, void > *key, > * return av_tree_insert(rootp, key, cmp, next); > * } > * @endcode > - * @param cmp compare function used to compare elements in the tree > + * @param cmp compare function used to compare elements in the tree, API > identical > + * to that of libc's qsort > * @return If no insertion happened, the found element; if an insertion or > * removal happened, then either key or NULL will be returned. > * Which one it is depends on the tree state and the implementation. > You > -- > 2.6.2 >
pushed as part of the set. _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel