[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 02/17] crypto: Move QCryptoCipherDriver typedef to qemu/typedefs.
From: |
Richard Henderson |
Subject: |
[PATCH 02/17] crypto: Move QCryptoCipherDriver typedef to qemu/typedefs.h |
Date: |
Wed, 12 Aug 2020 20:25:22 -0700 |
This will allow the pointer to be used in crypto/cipher.h,
and not just in code using cipherpriv.h.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
crypto/cipherpriv.h | 2 --
include/qemu/typedefs.h | 1 +
2 files changed, 1 insertion(+), 2 deletions(-)
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/qemu/typedefs.h b/include/qemu/typedefs.h
index 45b9c57717..d4ca469b6b 100644
--- a/include/qemu/typedefs.h
+++ b/include/qemu/typedefs.h
@@ -96,6 +96,7 @@ typedef struct Property Property;
typedef struct PropertyInfo PropertyInfo;
typedef struct QBool QBool;
typedef struct QCryptoCipher QCryptoCipher;
+typedef struct QCryptoCipherDriver QCryptoCipherDriver;
typedef struct QDict QDict;
typedef struct QEMUBH QEMUBH;
typedef struct QemuConsole QemuConsole;
--
2.25.1
[PATCH 02/17] crypto: Move QCryptoCipherDriver typedef to qemu/typedefs.h,
Richard Henderson <=
[PATCH 03/17] crypto: Assume blocksize is a power of 2, Richard Henderson, 2020/08/12
[PATCH 04/17] crypto: Rename cipher include files to .inc.c, Richard Henderson, 2020/08/12
[PATCH 05/17] crypto: Remove redundant includes, Richard Henderson, 2020/08/12
[PATCH 06/17] crypto/nettle: Fix xts_encrypt arguments, Richard Henderson, 2020/08/12