2020-01-03 18:40:11 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<protocol name="kiwmi_ipc">
|
|
|
|
<copyright>
|
|
|
|
Copyright (c), Charlotte Meyer <dev@buffet.sh>
|
|
|
|
|
|
|
|
This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
|
|
</copyright>
|
|
|
|
|
|
|
|
<interface name="kiwmi_ipc" version="1">
|
|
|
|
<request name="eval">
|
|
|
|
<description summary="evaluate a given Lua snippet" />
|
|
|
|
|
|
|
|
<arg name="id" type="new_id" interface="kiwmi_command" />
|
|
|
|
<arg name="command" type="string" />
|
|
|
|
</request>
|
|
|
|
</interface>
|
|
|
|
|
|
|
|
<interface name="kiwmi_command" version="1">
|
|
|
|
<enum name="error">
|
|
|
|
<entry name="success" value="0" summary="the command ran successfully" />
|
|
|
|
<entry name="failure" value="1" summary="the command did not run successfully" />
|
|
|
|
</enum>
|
|
|
|
|
|
|
|
<event name="done">
|
2020-01-15 20:31:38 +00:00
|
|
|
<arg name="error" type="uint" enum="error" />
|
2020-01-03 18:40:11 +00:00
|
|
|
<arg name="message" type="string" summary="error message or return value" />
|
|
|
|
</event>
|
|
|
|
</interface>
|
|
|
|
</protocol>
|