mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-28 13:02:38 +02:00

Add simple interfaces::Echo IPC interface with one method that just takes and returns a string, to test multiprocess framework and provide an example of how it can be used to spawn and call between processes.
18 lines
575 B
Cap'n Proto
18 lines
575 B
Cap'n Proto
# Copyright (c) 2021 The Bitcoin Core developers
|
|
# Distributed under the MIT software license, see the accompanying
|
|
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
@0x888b4f7f51e691f7;
|
|
|
|
using Cxx = import "/capnp/c++.capnp";
|
|
$Cxx.namespace("ipc::capnp::messages");
|
|
|
|
using Proxy = import "/mp/proxy.capnp";
|
|
$Proxy.include("interfaces/echo.h");
|
|
$Proxy.include("ipc/capnp/echo.capnp.h");
|
|
|
|
interface Echo $Proxy.wrap("interfaces::Echo") {
|
|
destroy @0 (context :Proxy.Context) -> ();
|
|
echo @1 (context :Proxy.Context, echo: Text) -> (result :Text);
|
|
}
|