Andrew Jeffery | 4fe996c | 2018-02-27 12:16:48 +1030 | [diff] [blame] | 1 | /* SPDX-License-Identifier: Apache-2.0 */ |
| 2 | /* Copyright (C) 2018 IBM Corp. */ |
Suraj Jitindar Singh | e39c916 | 2017-03-28 10:47:43 +1100 | [diff] [blame] | 3 | |
| 4 | #ifndef MBOXD_DBUS_H |
| 5 | #define MBOXD_DBUS_H |
| 6 | |
Andrew Jeffery | 6802307 | 2018-08-06 10:08:11 +0930 | [diff] [blame^] | 7 | #include "dbus.h" |
| 8 | #include "mbox.h" |
| 9 | |
Andrew Jeffery | ba0bbab | 2018-08-06 09:43:57 +0930 | [diff] [blame] | 10 | int mboxd_dbus_init(struct mbox_context *context); |
| 11 | void mboxd_dbus_free(struct mbox_context *context); |
Suraj Jitindar Singh | e39c916 | 2017-03-28 10:47:43 +1100 | [diff] [blame] | 12 | |
Andrew Jeffery | 6802307 | 2018-08-06 10:08:11 +0930 | [diff] [blame^] | 13 | int control_legacy_init(struct mbox_context *context); |
| 14 | void control_legacy_free(struct mbox_context *context); |
| 15 | |
| 16 | /* Control actions */ |
| 17 | int control_ping(struct mbox_context *context); |
| 18 | int control_daemon_state(struct mbox_context *context); |
| 19 | int control_lpc_state(struct mbox_context *context); |
| 20 | int control_reset(struct mbox_context *context); |
| 21 | int control_kill(struct mbox_context *context); |
| 22 | int control_modified(struct mbox_context *context); |
| 23 | int control_suspend(struct mbox_context *context); |
| 24 | int control_resume(struct mbox_context *context, bool modified); |
| 25 | |
Suraj Jitindar Singh | e39c916 | 2017-03-28 10:47:43 +1100 | [diff] [blame] | 26 | #endif /* MBOXD_DBUS_H */ |