aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErwin Jansen <jansene@google.com>2023-04-20 02:28:25 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2023-04-20 02:28:25 +0000
commitd015d45eed6c23bcbd4c5a0e1d6df87a38cc42f4 (patch)
treeb194904193eb826dd2123755a158819e1442e53f
parentbd586a0673adc5fac01bb4acd19254912bc927b3 (diff)
parentc92875ab6b096c43d42913ecc1b0762e30b05f45 (diff)
downloadaemu-d015d45eed6c23bcbd4c5a0e1d6df87a38cc42f4.tar.gz
Merge "Update agents to support UI separation"
-rw-r--r--host-common/include/host-common/vm_operations.h3
-rw-r--r--host-common/include/host-common/window_agent.h6
2 files changed, 9 insertions, 0 deletions
diff --git a/host-common/include/host-common/vm_operations.h b/host-common/include/host-common/vm_operations.h
index 375d1bc..5dcd6c1 100644
--- a/host-common/include/host-common/vm_operations.h
+++ b/host-common/include/host-common/vm_operations.h
@@ -248,5 +248,8 @@ typedef struct QAndroidVmOperations {
// virtio display
bool (*setDisplay)(int32_t id, int32_t w, int32_t h, uint32_t dpi);
+
+ // Reset the machine
+ void (*system_shutdown_request)(QemuShutdownCause reason);
} QAndroidVmOperations;
ANDROID_END_HEADER
diff --git a/host-common/include/host-common/window_agent.h b/host-common/include/host-common/window_agent.h
index a9489e0..be16f13 100644
--- a/host-common/include/host-common/window_agent.h
+++ b/host-common/include/host-common/window_agent.h
@@ -36,6 +36,9 @@ typedef enum {
} WindowMessageType;
typedef struct {} MultiDisplayPageChangeEvent;
+typedef struct SkinLayout SkinLayout;
+typedef struct QFrame QFrame;
+typedef struct SkinEvent SKinEvent;
static const int kWindowMessageTimeoutInfinite = -1;
@@ -128,6 +131,9 @@ typedef struct QAndroidEmulatorWindowAgent {
void (*quit_request)(void);
void (*getWindowPosition)(int*, int*);
bool (*hasWindow)();
+
+ bool (*userSettingIsDontSaveSnapshot)(void);
+ void (*setUserSettingIsDontSaveSnapshot)(bool);
} QAndroidEmulatorWindowAgent;
#ifndef USING_ANDROID_BP