1 /* Copyright (C) 2010 The Android Open Source Project 2 ** 3 ** This software is licensed under the terms of the GNU General Public 4 ** License version 2, as published by the Free Software Foundation, and 5 ** may be copied, distributed, and modified under those terms. 6 ** 7 ** This program is distributed in the hope that it will be useful, 8 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 9 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 ** GNU General Public License for more details. 11 */ 12 13 /* 14 * Contains declarations of routines and that are used in the course 15 * of the emulator's core initialization. 16 */ 17 18 #ifndef QEMU_ANDROID_CORE_INIT_UI_UTILS_H_ 19 #define QEMU_ANDROID_CORE_INIT_UI_UTILS_H_ 20 21 /* Formats and sends back to the UI message indicating successful completion 22 * of the core initialization. 23 */ 24 void android_core_init_completed(void); 25 26 /* Builds and sends initialization failure message back to the UI that started 27 * the core. After that exits the process. 28 * Param: 29 * Parameters match those that are passed to sprintf routine to format an 30 * error message for the error that has occured. 31 */ 32 void android_core_init_failure(const char* fmt, ...); 33 34 /* Sends successful initialization completion message back to the UI, and exits 35 * the application. 36 * Param: 37 * exit_status Exit status, that will be passed to the "exit" routine. 38 */ 39 void android_core_init_exit(int exit_status); 40 41 #endif // QEMU_ANDROID_CORE_INIT_UI_UTILS_H_ 42