diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2017-11-06 19:38:59 +0100 |
---|---|---|
committer | Stefan Berger <stefanb@linux.vnet.ibm.com> | 2017-12-14 23:39:13 -0500 |
commit | 67af320cd653a107c0bbdf0d2e6c51b24403c64d (patch) | |
tree | 826c1b1d54289efce43fa5d9b899a4b88f3027f8 /hw/tpm/tpm_int.h | |
parent | 8a37fc44c6618ca0ede761809d0ecaf605f832fc (diff) | |
download | qemu-67af320cd653a107c0bbdf0d2e6c51b24403c64d.zip qemu-67af320cd653a107c0bbdf0d2e6c51b24403c64d.tar.gz qemu-67af320cd653a107c0bbdf0d2e6c51b24403c64d.tar.bz2 |
tpm: move TpmIf in include/sysemu/tpm.h
This is a better location than hw/tpm, since we are going to use the
interface from outside hw/tpm.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Diffstat (limited to 'hw/tpm/tpm_int.h')
-rw-r--r-- | hw/tpm/tpm_int.h | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/hw/tpm/tpm_int.h b/hw/tpm/tpm_int.h index 9c045b6..1df5883 100644 --- a/hw/tpm/tpm_int.h +++ b/hw/tpm/tpm_int.h @@ -13,28 +13,8 @@ #define TPM_TPM_INT_H #include "qemu/osdep.h" -#include "qom/object.h" -#define TYPE_TPM_IF "tpm-if" -#define TPM_IF_CLASS(klass) \ - OBJECT_CLASS_CHECK(TPMIfClass, (klass), TYPE_TPM_IF) -#define TPM_IF_GET_CLASS(obj) \ - OBJECT_GET_CLASS(TPMIfClass, (obj), TYPE_TPM_IF) -#define TPM_IF(obj) \ - INTERFACE_CHECK(TPMIf, (obj), TYPE_TPM_IF) - -typedef struct TPMIf { - Object parent_obj; -} TPMIf; - -typedef struct TPMIfClass { - InterfaceClass parent_class; - - /* run in thread pool by backend */ - void (*request_completed)(TPMIf *obj); -} TPMIfClass; - -#define TPM_STANDARD_CMDLINE_OPTS \ +#define TPM_STANDARD_CMDLINE_OPTS \ { \ .name = "type", \ .type = QEMU_OPT_STRING, \ |