diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2017-10-10 00:56:02 +0200 |
---|---|---|
committer | Stefan Berger <stefanb@linux.vnet.ibm.com> | 2017-10-19 11:42:33 -0400 |
commit | 05a699985c001927a50f8f276251f2af1e0c5b58 (patch) | |
tree | 6ceaf9311f014cf2be96a4194d98f593bc399184 /hw/tpm/tpm_int.h | |
parent | 698f5daa4a81984490612a6143b46f5da7392510 (diff) |
tpm: move recv_data_callback to TPM interface
Simplify the TPM backend setup, move callback to TPM interface.
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 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/tpm/tpm_int.h b/hw/tpm/tpm_int.h index eb02e7760c..9c045b6691 100644 --- a/hw/tpm/tpm_int.h +++ b/hw/tpm/tpm_int.h @@ -29,6 +29,9 @@ typedef struct TPMIf { typedef struct TPMIfClass { InterfaceClass parent_class; + + /* run in thread pool by backend */ + void (*request_completed)(TPMIf *obj); } TPMIfClass; #define TPM_STANDARD_CMDLINE_OPTS \ |