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