blob: 16661c9d55ac686a6ae4203455dadba71d85b628 [file] [log] [blame]
Andrew Jeffery55f4d6f2018-08-06 12:26:44 +09301#ifndef DBUS_CONTROL_H
2#define DBUS_CONTROL_H
Suraj Jitindar Singhe39c9162017-03-28 10:47:43 +11003
Andrew Jeffery26558db2018-08-10 00:22:38 +09304struct mbox_context;
Andrew Jeffery5320f6e2019-03-15 12:40:41 +10305struct backend;
Andrew Jeffery68023072018-08-06 10:08:11 +09306
Andrew Jeffery55f4d6f2018-08-06 12:26:44 +09307int control_dbus_init(struct mbox_context *context);
8void control_dbus_free(struct mbox_context *context);
Suraj Jitindar Singhe39c9162017-03-28 10:47:43 +11009
Andrew Jeffery68023072018-08-06 10:08:11 +093010int control_legacy_init(struct mbox_context *context);
11void control_legacy_free(struct mbox_context *context);
12
13/* Control actions */
14int control_ping(struct mbox_context *context);
15int control_daemon_state(struct mbox_context *context);
16int control_lpc_state(struct mbox_context *context);
17int control_reset(struct mbox_context *context);
18int control_kill(struct mbox_context *context);
19int control_modified(struct mbox_context *context);
20int control_suspend(struct mbox_context *context);
21int control_resume(struct mbox_context *context, bool modified);
Andrew Jeffery5320f6e2019-03-15 12:40:41 +103022int control_set_backend(struct mbox_context *context, struct backend *backend, void *data);
Andrew Jeffery68023072018-08-06 10:08:11 +093023
Andrew Jeffery55f4d6f2018-08-06 12:26:44 +093024#endif