]> git.proxmox.com Git - mirror_qemu.git/blobdiff - tests/tpm-emu.h
migration: use migration_is_active to represent active state
[mirror_qemu.git] / tests / tpm-emu.h
index ef4bfa8800e6bbed99a4202f795ccf46ab4692e1..a4f1d6422695ec7633b264ca6d27412bdc2ce940 100644 (file)
@@ -24,8 +24,9 @@ struct tpm_hdr {
 } QEMU_PACKED;
 
 typedef struct TestState {
-    CompatGMutex data_mutex;
-    CompatGCond data_cond;
+    GMutex data_mutex;
+    GCond data_cond;
+    bool data_cond_signal;
     SocketAddress *addr;
     QIOChannel *tpm_ioc;
     GThread *emu_tpm_thread;
@@ -35,4 +36,4 @@ typedef struct TestState {
 void tpm_emu_test_wait_cond(TestState *s);
 void *tpm_emu_ctrl_thread(void *data);
 
-#endif /* TEST_TPM_EMU_H */
+#endif /* TESTS_TPM_EMU_H */