]> git.sesse.net Git - ffmpeg/blobdiff - libavutil/tree.h
avutil: Add functions for allocating opaque contexts for algorithms
[ffmpeg] / libavutil / tree.h
index 59ea01dbdb049b3b627806a0ada1cb29989a5af4..623280f2b2fafe6c665729e8092102d86b4c86c9 100644 (file)
@@ -27,6 +27,9 @@
 #ifndef AVUTIL_TREE_H
 #define AVUTIL_TREE_H
 
+#include "attributes.h"
+#include "version.h"
+
 /**
  * @addtogroup lavu_tree AVTree
  * @ingroup lavu_data
 
 
 struct AVTreeNode;
-extern const int av_tree_node_size;
+#if FF_API_CONTEXT_SIZE
+extern attribute_deprecated const int av_tree_node_size;
+#endif
+
+/**
+ * Allocate an AVTreeNode.
+ */
+struct AVTreeNode *av_tree_node_alloc(void);
 
 /**
  * Find an element.