| 1 | /* Copyright (C) 2018 Thomas Balzer */ |
| 2 | |
| 3 | /* This file is part of tomd. */ |
| 4 | |
| 5 | /* tomd is free software: you can redistribute it and/or modify */ |
| 6 | /* it under the terms of the GNU General Public License as published by */ |
| 7 | /* the Free Software Foundation, either version 3 of the License, or */ |
| 8 | /* (at your option) any later version. */ |
| 9 | |
| 10 | /* tomd is distributed in the hope that it will be useful, */ |
| 11 | /* but WITHOUT ANY WARRANTY; without even the implied warranty of */ |
| 12 | /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */ |
| 13 | /* GNU General Public License for more details. */ |
| 14 | |
| 15 | /* You should have received a copy of the GNU General Public License */ |
| 16 | /* along with tomd. If not, see <http://www.gnu.org/licenses/>. */ |
| 17 | |
| 18 | /* Commentary: */ |
| 19 | /* This header contains functions and data structures intended for */ |
| 20 | /* use with the tomd daemon. These constitute the standard interface */ |
| 21 | /* for IPC with the daemon, giving commands and allowing for progress */ |
| 22 | /* polling and statuses. */ |
| 23 | |
| 24 | enum tomd_code{ |
| 25 | daemon_start = 0, |
| 26 | daemon_stop, |
| 27 | daemon_restart, |
| 28 | daemon_status, |
| 29 | update_title_field, |
| 30 | music_track_current, |
| 31 | music_track_skip, |
| 32 | music_vol_up, |
| 33 | music_vol_down, |
| 34 | music_vol_mute, |
| 35 | network_status, |
| 36 | run_script |
| 37 | }; |
| 38 | |
| 39 | struct tomd_message{ |
| 40 | enum tomd_code code; |
| 41 | void *param; |
| 42 | }; |