[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 01/17] crypto: Move QCryptoCipher typedef to qemu/typedefs.h
From: |
Richard Henderson |
Subject: |
[PATCH 01/17] crypto: Move QCryptoCipher typedef to qemu/typedefs.h |
Date: |
Wed, 12 Aug 2020 20:25:21 -0700 |
This allows header files to declare pointers without pulling
in the entire crypto subsystem.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
include/crypto/cipher.h | 2 --
include/qemu/typedefs.h | 1 +
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/include/crypto/cipher.h b/include/crypto/cipher.h
index 5928e5ecc7..95a0412911 100644
--- a/include/crypto/cipher.h
+++ b/include/crypto/cipher.h
@@ -23,8 +23,6 @@
#include "qapi/qapi-types-crypto.h"
-typedef struct QCryptoCipher QCryptoCipher;
-
/* See also "QCryptoCipherAlgorithm" and "QCryptoCipherMode"
* enums defined in qapi/crypto.json */
diff --git a/include/qemu/typedefs.h b/include/qemu/typedefs.h
index 427027a970..45b9c57717 100644
--- a/include/qemu/typedefs.h
+++ b/include/qemu/typedefs.h
@@ -95,6 +95,7 @@ typedef struct PostcopyDiscardState PostcopyDiscardState;
typedef struct Property Property;
typedef struct PropertyInfo PropertyInfo;
typedef struct QBool QBool;
+typedef struct QCryptoCipher QCryptoCipher;
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, 2020/08/12
[PATCH 03/17] crypto: Assume blocksize is a power of 2, Richard Henderson, 2020/08/12