kiwmi-ipc.xml (1088B)
1 <?xml version="1.0" encoding="UTF-8"?> 2 <protocol name="kiwmi_ipc"> 3 <copyright> 4 Copyright (c), Niclas Meyer <niclas@countingsort.com> 5 6 This Source Code Form is subject to the terms of the Mozilla Public 7 License, v. 2.0. If a copy of the MPL was not distributed with this file, 8 You can obtain one at https://mozilla.org/MPL/2.0/. 9 </copyright> 10 11 <interface name="kiwmi_ipc" version="1"> 12 <request name="eval"> 13 <description summary="evaluate a given Lua snippet" /> 14 15 <arg name="id" type="new_id" interface="kiwmi_command" /> 16 <arg name="command" type="string" /> 17 </request> 18 </interface> 19 20 <interface name="kiwmi_command" version="1"> 21 <enum name="error"> 22 <entry name="success" value="0" summary="the command ran successfully" /> 23 <entry name="failure" value="1" summary="the command did not run successfully" /> 24 </enum> 25 26 <event name="done"> 27 <arg name="error" type="uint" enum="error" /> 28 <arg name="message" type="string" summary="error message or return value" /> 29 </event> 30 </interface> 31 </protocol>