diff mbox series

[PULL,06/17] crypto: Move QCryptoCipherDriver typedef to crypto/cipher.h

Message ID 20200910100623.1088965-7-berrange@redhat.com
State Accepted
Commit 954721ffa8c755ecd8552525b2a2f47da6c9d9f3
Headers show
Series Crypto next patches | expand

Commit Message

Daniel P. Berrangé Sept. 10, 2020, 10:06 a.m. UTC
From: Richard Henderson <richard.henderson@linaro.org>


Allow the use in QCryptoCipher to be properly typed with
the opaque struct pointer.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>

---
 crypto/cipherpriv.h     | 2 --
 include/crypto/cipher.h | 1 +
 2 files changed, 1 insertion(+), 2 deletions(-)

-- 
2.26.2
diff mbox series

Patch

diff --git a/crypto/cipherpriv.h b/crypto/cipherpriv.h
index 0823239f41..9228c9fc3a 100644
--- a/crypto/cipherpriv.h
+++ b/crypto/cipherpriv.h
@@ -17,8 +17,6 @@ 
 
 #include "qapi/qapi-types-crypto.h"
 
-typedef struct QCryptoCipherDriver QCryptoCipherDriver;
-
 struct QCryptoCipherDriver {
     int (*cipher_encrypt)(QCryptoCipher *cipher,
                           const void *in,
diff --git a/include/crypto/cipher.h b/include/crypto/cipher.h
index 5928e5ecc7..8a42a683a4 100644
--- a/include/crypto/cipher.h
+++ b/include/crypto/cipher.h
@@ -24,6 +24,7 @@ 
 #include "qapi/qapi-types-crypto.h"
 
 typedef struct QCryptoCipher QCryptoCipher;
+typedef struct QCryptoCipherDriver QCryptoCipherDriver;
 
 /* See also "QCryptoCipherAlgorithm" and "QCryptoCipherMode"
  * enums defined in qapi/crypto.json */