summaryrefslogtreecommitdiffstats
path: root/include/crypto/tlscreds.h
diff options
context:
space:
mode:
authorMarkus Armbruster2016-03-11 09:20:17 +0100
committerPaolo Bonzini2016-03-22 22:20:16 +0100
commit7136fc1da2690a2a8a6444311484283de0190065 (patch)
treebcad8d018a0270d375104e3b9eb29d0d5d82f407 /include/crypto/tlscreds.h
parentisa: Move DMA_transfer_handler from qemu-common.h to hw/isa/isa.h (diff)
downloadqemu-7136fc1da2690a2a8a6444311484283de0190065.tar.gz
qemu-7136fc1da2690a2a8a6444311484283de0190065.tar.xz
qemu-7136fc1da2690a2a8a6444311484283de0190065.zip
include/crypto: Include qapi-types.h or qemu/bswap.h instead of qemu-common.h
qemu-common.h should only be included by .c files. Its file comment explains why: "No header file should depend on qemu-common.h, as this would easily lead to circular header dependencies." Several include/crypto/ headers include qemu-common.h, but either need just qapi-types.h from it, or qemu/bswap.h, or nothing at all. Replace or drop the include accordingly. tests/test-crypto-secret.c now misses qemu/module.h, so include it there. Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/crypto/tlscreds.h')
-rw-r--r--include/crypto/tlscreds.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/crypto/tlscreds.h b/include/crypto/tlscreds.h
index 4bf1d2e255..8e2babd533 100644
--- a/include/crypto/tlscreds.h
+++ b/include/crypto/tlscreds.h
@@ -21,7 +21,6 @@
#ifndef QCRYPTO_TLSCRED_H__
#define QCRYPTO_TLSCRED_H__
-#include "qemu-common.h"
#include "qom/object.h"
#ifdef CONFIG_GNUTLS