aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Kiryanov <rkir@google.com>2024-03-11 17:08:36 -0700
committerRoman Kiryanov <rkir@google.com>2024-03-11 17:08:36 -0700
commit7546235e6055fddb9cac780190071f515059849d (patch)
tree71b58226c87e2757c929edd6affb39054251febb
parentc63f29e5f3a86f07b8575c31b444dffa9bbfb50b (diff)
downloadaemu-7546235e6055fddb9cac780190071f515059849d.tar.gz
Add a callback to initialize UI
some UI managed settings are required to be applied when the emulator start. Bug: 307093465 Test: presubmit Change-Id: I07057d0fe7bfbdbdf2caa7ac303959980971bce1 Signed-off-by: Roman Kiryanov <rkir@google.com>
-rw-r--r--host-common/include/host-common/window_agent.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/host-common/include/host-common/window_agent.h b/host-common/include/host-common/window_agent.h
index be16f13..db95dbb 100644
--- a/host-common/include/host-common/window_agent.h
+++ b/host-common/include/host-common/window_agent.h
@@ -47,6 +47,9 @@ typedef struct EmulatorWindow EmulatorWindow;
typedef void (*UiUpdateFunc)(void* data);
typedef struct QAndroidEmulatorWindowAgent {
+ // Initialize the UI, e.g. load and apply settings from all windows
+ void (*initUI)();
+
// Get a pointer to the emulator window structure.
EmulatorWindow* (*getEmulatorWindow)(void);