Andrew Jeffery | 55f4d6f | 2018-08-06 12:26:44 +0930 | [diff] [blame] | 1 | #ifndef DBUS_CONTROL_H |
| 2 | #define DBUS_CONTROL_H |
Suraj Jitindar Singh | e39c916 | 2017-03-28 10:47:43 +1100 | [diff] [blame] | 3 | |
Andrew Jeffery | 26558db | 2018-08-10 00:22:38 +0930 | [diff] [blame] | 4 | struct mbox_context; |
Andrew Jeffery | 5320f6e | 2019-03-15 12:40:41 +1030 | [diff] [blame] | 5 | struct backend; |
Andrew Jeffery | 6802307 | 2018-08-06 10:08:11 +0930 | [diff] [blame] | 6 | |
Andrew Jeffery | 55f4d6f | 2018-08-06 12:26:44 +0930 | [diff] [blame] | 7 | int control_dbus_init(struct mbox_context *context); |
| 8 | void control_dbus_free(struct mbox_context *context); |
Suraj Jitindar Singh | e39c916 | 2017-03-28 10:47:43 +1100 | [diff] [blame] | 9 | |
Andrew Jeffery | 6802307 | 2018-08-06 10:08:11 +0930 | [diff] [blame] | 10 | int control_legacy_init(struct mbox_context *context); |
| 11 | void control_legacy_free(struct mbox_context *context); |
| 12 | |
| 13 | /* Control actions */ |
| 14 | int control_ping(struct mbox_context *context); |
| 15 | int control_daemon_state(struct mbox_context *context); |
| 16 | int control_lpc_state(struct mbox_context *context); |
| 17 | int control_reset(struct mbox_context *context); |
| 18 | int control_kill(struct mbox_context *context); |
| 19 | int control_modified(struct mbox_context *context); |
| 20 | int control_suspend(struct mbox_context *context); |
| 21 | int control_resume(struct mbox_context *context, bool modified); |
Andrew Jeffery | 5320f6e | 2019-03-15 12:40:41 +1030 | [diff] [blame] | 22 | int control_set_backend(struct mbox_context *context, struct backend *backend, void *data); |
Andrew Jeffery | 6802307 | 2018-08-06 10:08:11 +0930 | [diff] [blame] | 23 | |
Andrew Jeffery | 55f4d6f | 2018-08-06 12:26:44 +0930 | [diff] [blame] | 24 | #endif |