]> git.sesse.net Git - ffmpeg/blobdiff - libavutil/sha.h
cosmetics: Write NULL pointer equality checks more compactly
[ffmpeg] / libavutil / sha.h
index 8350954c4b4897eac7f67472c536239bdf113d16..4c9a0c90950d116ae8f7e5114ee6198819e12403 100644 (file)
 
 #include <stdint.h>
 
+#include "attributes.h"
+#include "version.h"
+
 /**
  * @defgroup lavu_sha SHA
  * @ingroup lavu_crypto
  * @{
  */
 
-extern const int av_sha_size;
+#if FF_API_CONTEXT_SIZE
+extern attribute_deprecated const int av_sha_size;
+#endif
 
 struct AVSHA;
 
+/**
+ * Allocate an AVSHA context.
+ */
+struct AVSHA *av_sha_alloc(void);
+
 /**
  * Initialize SHA-1 or SHA-2 hashing.
  *