1 // Copyright (C) 2011 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 #ifndef ANDROID_LOG_ROTATE_H 13 #define ANDROID_LOG_ROTATE_H 14 15 // This header provides facilities to rotate misc QEMU log files 16 // use in the Android emulator. 17 18 // Setup log rotation, this installed a signal handler for SIGUSR1 19 // which will trigger a log rotation at runtime. 20 void qemu_log_rotation_init(void); 21 22 // Perform log rotation if needed. For now, this must be called from 23 // the main event loop, though a future implementation might schedule 24 // a bottom-half handler instead to achieve the same result. 25 void qemu_log_rotation_poll(void); 26 27 #endif // ANDROID_LOG_ROTATE_H 28