FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
tree.c File Reference
#include "error.h"
#include "log.h"
#include "mem.h"
#include "tree.h"

Go to the source code of this file.

Data Structures

struct  AVTreeNode
 

Functions

struct AVTreeNodeav_tree_node_alloc (void)
 Allocate an AVTreeNode.
 
voidav_tree_find (const AVTreeNode *t, void *key, int(*cmp)(void *key, const void *b), void *next[2])
 
voidav_tree_insert (AVTreeNode **tp, void *key, int(*cmp)(void *key, const void *b), AVTreeNode **next)
 Insert or remove an element.
 
void av_tree_destroy (AVTreeNode *t)
 
void av_tree_enumerate (AVTreeNode *t, void *opaque, int(*cmp)(void *opaque, void *elem), int(*enu)(void *opaque, void *elem))
 Apply enu(opaque, &elem) to all the elements in the tree in a given range.
 

Variables

const int av_tree_node_size = sizeof(AVTreeNode)
 

Function Documentation

void* av_tree_find ( const AVTreeNode t,
void key,
int(*)(void *key, const void *b cmp,
void next[2] 
)