From 5d8bea3bb2357bb304f8f771a4107039037c5549 Mon Sep 17 00:00:00 2001 From: James Almer Date: Tue, 28 Jul 2015 16:57:48 -0300 Subject: xtea: add av_xtea_alloc() Signed-off-by: James Almer Signed-off-by: Anton Khirnov --- libavutil/xtea.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'libavutil/xtea.h') diff --git a/libavutil/xtea.h b/libavutil/xtea.h index 0fc3810dd2..4d7c5818d3 100644 --- a/libavutil/xtea.h +++ b/libavutil/xtea.h @@ -22,6 +22,7 @@ #define AVUTIL_XTEA_H #include +#include "version.h" /** * @file @@ -31,9 +32,18 @@ * @{ */ +#if FF_API_CRYPTO_CONTEXT typedef struct AVXTEA { uint32_t key[16]; } AVXTEA; +#else +typedef struct AVXTEA AVXTEA; +#endif + +/** + * Allocate an AVXTEA context. + */ +AVXTEA *av_xtea_alloc(void); /** * Initialize an AVXTEA context. -- cgit v1.2.3