[FFmpeg-cvslog] r22119 - in trunk/libavutil: tree.c tree.h

Stefano Sabatini stefano.sabatini-lala
Wed Mar 3 00:53:15 CET 2010


On date Tuesday 2010-03-02 23:26:26 +0100, Vitor Sessak wrote:
> Michael Niedermayer wrote:
[...]
> Index: libavutil/tree.h
> ===================================================================
> --- libavutil/tree.h	(revision 22135)
> +++ libavutil/tree.h	(working copy)
> @@ -79,4 +79,17 @@
>  void *av_tree_insert(struct AVTreeNode **rootp, void *key, int (*cmp)(void *key, const void *b), struct AVTreeNode **next);
>  void av_tree_destroy(struct AVTreeNode *t);
>  
> +/**
> + * Apply enu(opaque, &elem) to all the elements in the tree in a given range

Doxy-nit #1: Applies ... missing final ".".

> + *
> + * @param cmp a comparison function that returns < 0 for a element below the
> + *            range, > 0 for a element above the range and == 0 for a
> + *            element inside the range.

Doxy-nit #2: As you prefer: upcase the first word and put the final point, or don't
upcase the first word and don't use the final point.

> + *
> + * @note The cmp function should use the same ordering used to construct the
> + *       tree.
> + */
> +void av_tree_enumerate(struct AVTreeNode *t, void *opaque, int (*cmp)(void *opaque, void *elem), int (*enu)(void *opaque, void *elem));
> +
> +
>  #endif /* AVUTIL_TREE_H */
> Index: libavutil/avutil.h
> ===================================================================
> --- libavutil/avutil.h	(revision 22109)
> +++ libavutil/avutil.h	(working copy)
> @@ -40,7 +40,7 @@
>  #define AV_VERSION(a, b, c) AV_VERSION_DOT(a, b, c)
>  
>  #define LIBAVUTIL_VERSION_MAJOR 50
> -#define LIBAVUTIL_VERSION_MINOR  9
> +#define LIBAVUTIL_VERSION_MINOR 10
>  #define LIBAVUTIL_VERSION_MICRO  0

Ah, don't forget to add an entry in APIChanges.

Regards.



More information about the ffmpeg-cvslog mailing list