echo.capnp
1 # Copyright (c) 2021-present The Bitcoin Core developers 2 # Distributed under the MIT software license, see the accompanying 3 # file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 5 @0x888b4f7f51e691f7; 6 7 using Cxx = import "/capnp/c++.capnp"; 8 $Cxx.namespace("ipc::capnp::messages"); 9 10 using Proxy = import "/mp/proxy.capnp"; 11 $Proxy.include("interfaces/echo.h"); 12 $Proxy.includeTypes("ipc/capnp/echo-types.h"); 13 14 interface Echo $Proxy.wrap("interfaces::Echo") { 15 destroy @0 (context :Proxy.Context) -> (); 16 echo @1 (context :Proxy.Context, echo: Text) -> (result :Text); 17 }