1 /* 2 * Common user interface functionality. 3 * 4 * Copyright (C) 2013 Paul Boddie 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or 9 * (at your option) any later version. 10 */ 11 12 #ifndef __UI_H__ 13 #define __UI_H__ 14 15 /* Common types. */ 16 17 typedef enum 18 { 19 IMU_UI_OP_NULL, IMU_UI_OP_CALIBRATE, IMU_UI_OP_RESET, IMU_UI_OP_PAUSE, 20 IMU_UI_OP_QUIT 21 } imu_ui_op; 22 23 void init_shutdown(int signum); 24 void text_shutdown(int signum); 25 void text_shutdown_threaded(int signum); 26 27 /* Textual interface functions. */ 28 29 imu_ui_op text_handle_events(); 30 void text_flush(); 31 void text_clear(); 32 void text_quit(); 33 34 #endif /* __UI_H__ */