mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
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>
This commit is contained in:
parent
698f5daa4a
commit
05a699985c
6 changed files with 15 additions and 15 deletions
|
@ -30,8 +30,6 @@
|
|||
typedef struct TPMBackendClass TPMBackendClass;
|
||||
typedef struct TPMBackend TPMBackend;
|
||||
|
||||
typedef void (TPMRecvDataCB)(TPMState *);
|
||||
|
||||
typedef struct TPMBackendCmd {
|
||||
uint8_t locty;
|
||||
const uint8_t *in;
|
||||
|
@ -48,7 +46,6 @@ struct TPMBackend {
|
|||
bool opened;
|
||||
TPMState *tpm_state;
|
||||
GThreadPool *thread_pool;
|
||||
TPMRecvDataCB *recv_data_callback;
|
||||
bool had_startup_error;
|
||||
|
||||
/* <public> */
|
||||
|
@ -106,8 +103,7 @@ enum TpmType tpm_backend_get_type(TPMBackend *s);
|
|||
*
|
||||
* Returns 0 on success.
|
||||
*/
|
||||
int tpm_backend_init(TPMBackend *s, TPMState *state,
|
||||
TPMRecvDataCB *datacb);
|
||||
int tpm_backend_init(TPMBackend *s, TPMState *state);
|
||||
|
||||
/**
|
||||
* tpm_backend_startup_tpm:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue