Mercurial > libavutil.hg
comparison tree.h @ 855:ccac021c9a8e libavutil
Plug memory leak in NUT muxer and demuxer
author | vitor |
---|---|
date | Wed, 03 Mar 2010 17:31:24 +0000 |
parents | e067fb9b7d68 |
children | 0795a743bda1 |
comparison
equal
deleted
inserted
replaced
854:d6d589d11549 | 855:ccac021c9a8e |
---|---|
77 * should make no assumptions that it's one or the other in the code. | 77 * should make no assumptions that it's one or the other in the code. |
78 */ | 78 */ |
79 void *av_tree_insert(struct AVTreeNode **rootp, void *key, int (*cmp)(void *key, const void *b), struct AVTreeNode **next); | 79 void *av_tree_insert(struct AVTreeNode **rootp, void *key, int (*cmp)(void *key, const void *b), struct AVTreeNode **next); |
80 void av_tree_destroy(struct AVTreeNode *t); | 80 void av_tree_destroy(struct AVTreeNode *t); |
81 | 81 |
82 /** | |
83 * Applies enu(opaque, &elem) to all the elements in the tree in a given range. | |
84 * | |
85 * @param cmp a comparison function that returns < 0 for a element below the | |
86 * range, > 0 for a element above the range and == 0 for a | |
87 * element inside the range | |
88 * | |
89 * @note The cmp function should use the same ordering used to construct the | |
90 * tree. | |
91 */ | |
92 void av_tree_enumerate(struct AVTreeNode *t, void *opaque, int (*cmp)(void *opaque, void *elem), int (*enu)(void *opaque, void *elem)); | |
93 | |
94 | |
82 #endif /* AVUTIL_TREE_H */ | 95 #endif /* AVUTIL_TREE_H */ |