From 7746af04f1c7a44253ce49cf7cf1914757faaafe Mon Sep 17 00:00:00 2001 From: Vladimir Chtchetkine Date: Thu, 7 Oct 2010 05:40:39 -0700 Subject: 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 --- android/core-init-utils.h | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 android/core-init-utils.h (limited to 'android/core-init-utils.h') 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_ -- cgit v1.1