diff options
author | Vladimir Chtchetkine <vchtchetkine@google.com> | 2010-10-07 05:40:39 -0700 |
---|---|---|
committer | Vladimir Chtchetkine <vchtchetkine@google.com> | 2010-10-08 01:02:22 -0700 |
commit | 7746af04f1c7a44253ce49cf7cf1914757faaafe (patch) | |
tree | 7a556d8622f4d750c59a38821a625a7ac798fd09 /android/core-init-utils.h | |
parent | 4e024bb4f5c8aa8b07459f7fbd65c35122127fd1 (diff) | |
download | external_qemu-7746af04f1c7a44253ce49cf7cf1914757faaafe.zip external_qemu-7746af04f1c7a44253ce49cf7cf1914757faaafe.tar.gz external_qemu-7746af04f1c7a44253ce49cf7cf1914757faaafe.tar.bz2 |
Make core initialization replying to the UI at the end of initialization.
Also, this CL contains a minor fix to formatting boot options passed to the kernel
Change-Id: I267172d82094a0cbbbced2cee7a2990bb7fa3793
Diffstat (limited to 'android/core-init-utils.h')
-rw-r--r-- | android/core-init-utils.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/android/core-init-utils.h b/android/core-init-utils.h new file mode 100644 index 0000000..2d53288 --- /dev/null +++ b/android/core-init-utils.h @@ -0,0 +1,41 @@ +/* Copyright (C) 2010 The Android Open Source Project +** +** This software is licensed under the terms of the GNU General Public +** License version 2, as published by the Free Software Foundation, and +** may be copied, distributed, and modified under those terms. +** +** This program is distributed in the hope that it will be useful, +** but WITHOUT ANY WARRANTY; without even the implied warranty of +** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +** GNU General Public License for more details. +*/ + +/* + * Contains declarations of routines and that are used in the course + * of the emulator's core initialization. + */ + +#ifndef QEMU_ANDROID_CORE_INIT_UI_UTILS_H_ +#define QEMU_ANDROID_CORE_INIT_UI_UTILS_H_ + +/* Formats and sends back to the UI message indicating successful completion + * of the core initialization. + */ +void android_core_init_completed(void); + +/* Builds and sends initialization failure message back to the UI that started + * the core. After that exits the process. + * Param: + * Parameters match those that are passed to sprintf routine to format an + * error message for the error that has occured. + */ +void android_core_init_failure(const char* fmt, ...); + +/* Sends successful initialization completion message back to the UI, and exits + * the application. + * Param: + * exit_status Exit status, that will be passed to the "exit" routine. + */ +void android_core_init_exit(int exit_status); + +#endif // QEMU_ANDROID_CORE_INIT_UI_UTILS_H_ |