6 #include <capnp/generated-header-support.h> 7 #include <kj/windows-sanity.h> 9 #include <capnp/capability.h> 12 #if CAPNP_VERSION != 9001 13 #error "Version mismatch between generated code and library headers. You must use the same version of the Cap'n Proto compiler and library." 16 #include <mp/proxy.capnp.h> 51 CAPNP_DECLARE_INTERFACE_HEADER(d36b89640dc94399)
52 static constexpr ::
capnp::
_::RawBrandedSchema const*
brand() {
return &schema->defaultBrand; }
65 CAPNP_DECLARE_STRUCT_HEADER(b96f2f4cb65dfb85, 0, 1)
67 static constexpr ::capnp::_::RawBrandedSchema
const*
brand() {
return &schema->defaultBrand; }
80 CAPNP_DECLARE_STRUCT_HEADER(b43ed7d38d868aff, 0, 0)
82 static constexpr ::capnp::_::RawBrandedSchema
const*
brand() {
return &schema->defaultBrand; }
95 CAPNP_DECLARE_STRUCT_HEADER(c6b88006c24cbd0e, 0, 2)
97 static constexpr ::capnp::_::RawBrandedSchema
const*
brand() {
return &schema->defaultBrand; }
110 CAPNP_DECLARE_STRUCT_HEADER(9d6bbfd9d85b1331, 0, 1)
112 static constexpr ::capnp::_::RawBrandedSchema
const*
brand() {
return &schema->defaultBrand; }
113 #endif // !CAPNP_LITE 121 :
public virtual ::capnp::Capability::Client {
126 Client(decltype(
nullptr));
127 explicit Client(::kj::Own< ::capnp::ClientHook>&& hook);
128 template <
typename _t,
typename = ::kj::EnableIf< ::kj::canConvert<_t*, Server*>()>>
129 Client(::kj::Own<_t>&& server);
130 template <
typename _t,
typename = ::kj::EnableIf< ::kj::canConvert<_t*, Client*>()>>
131 Client(::kj::Promise<_t>&& promise);
132 Client(::kj::Exception&& exception);
138 ::capnp::Request< ::ipc::capnp::messages::Echo::DestroyParams, ::ipc::capnp::messages::Echo::DestroyResults>
destroyRequest(
139 ::kj::Maybe< ::capnp::MessageSize> sizeHint =
nullptr);
140 ::capnp::Request< ::ipc::capnp::messages::Echo::EchoParams, ::ipc::capnp::messages::Echo::EchoResults>
echoRequest(
141 ::kj::Maybe< ::capnp::MessageSize> sizeHint =
nullptr);
148 :
public virtual ::capnp::Capability::Server {
152 ::capnp::Capability::Server::DispatchCallResult
dispatchCall(
153 uint64_t interfaceId, uint16_t methodId,
154 ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer>
context)
164 typedef ::capnp::CallContext<EchoParams, EchoResults>
EchoContext;
167 inline ::ipc::capnp::messages::Echo::Client
thisCap() {
168 return ::capnp::Capability::Server::thisCap()
169 .template castAs< ::ipc::capnp::messages::Echo>();
174 ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer>
context);
176 #endif // !CAPNP_LITE 186 return _reader.totalSize().asPublic();
193 #endif // !CAPNP_LITE 196 inline ::mp::Context::Reader
getContext()
const;
200 template <
typename, ::capnp::Kind>
201 friend struct ::capnp::ToDynamic_;
202 template <
typename, ::capnp::Kind>
203 friend struct ::capnp::_::PointerHelpers;
204 template <
typename, ::capnp::Kind>
205 friend struct ::capnp::List;
206 friend class ::capnp::MessageBuilder;
207 friend class ::capnp::Orphanage;
224 #endif // !CAPNP_LITE 228 inline void setContext( ::mp::Context::Reader value);
230 inline void adoptContext(::capnp::Orphan< ::mp::Context>&& value);
235 template <
typename, ::capnp::Kind>
236 friend struct ::capnp::ToDynamic_;
237 friend class ::capnp::Orphanage;
238 template <
typename, ::capnp::Kind>
239 friend struct ::capnp::_::PointerHelpers;
248 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
254 friend class ::capnp::PipelineHook;
255 template <
typename, ::capnp::Kind>
256 friend struct ::capnp::ToDynamic_;
258 #endif // !CAPNP_LITE 268 return _reader.totalSize().asPublic();
275 #endif // !CAPNP_LITE 279 template <
typename, ::capnp::Kind>
280 friend struct ::capnp::ToDynamic_;
281 template <
typename, ::capnp::Kind>
282 friend struct ::capnp::_::PointerHelpers;
283 template <
typename, ::capnp::Kind>
284 friend struct ::capnp::List;
285 friend class ::capnp::MessageBuilder;
286 friend class ::capnp::Orphanage;
303 #endif // !CAPNP_LITE 307 template <
typename, ::capnp::Kind>
308 friend struct ::capnp::ToDynamic_;
309 friend class ::capnp::Orphanage;
310 template <
typename, ::capnp::Kind>
311 friend struct ::capnp::_::PointerHelpers;
320 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
325 friend class ::capnp::PipelineHook;
326 template <
typename, ::capnp::Kind>
327 friend struct ::capnp::ToDynamic_;
329 #endif // !CAPNP_LITE 339 return _reader.totalSize().asPublic();
346 #endif // !CAPNP_LITE 349 inline ::mp::Context::Reader
getContext()
const;
352 inline ::capnp::Text::Reader
getEcho()
const;
356 template <
typename, ::capnp::Kind>
357 friend struct ::capnp::ToDynamic_;
358 template <
typename, ::capnp::Kind>
359 friend struct ::capnp::_::PointerHelpers;
360 template <
typename, ::capnp::Kind>
361 friend struct ::capnp::List;
362 friend class ::capnp::MessageBuilder;
363 friend class ::capnp::Orphanage;
380 #endif // !CAPNP_LITE 384 inline void setContext( ::mp::Context::Reader value);
386 inline void adoptContext(::capnp::Orphan< ::mp::Context>&& value);
390 inline ::capnp::Text::Builder
getEcho();
391 inline void setEcho( ::capnp::Text::Reader value);
392 inline ::capnp::Text::Builder
initEcho(
unsigned int size);
393 inline void adoptEcho(::capnp::Orphan< ::capnp::Text>&& value);
394 inline ::capnp::Orphan< ::capnp::Text>
disownEcho();
398 template <
typename, ::capnp::Kind>
399 friend struct ::capnp::ToDynamic_;
400 friend class ::capnp::Orphanage;
401 template <
typename, ::capnp::Kind>
402 friend struct ::capnp::_::PointerHelpers;
411 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
417 friend class ::capnp::PipelineHook;
418 template <
typename, ::capnp::Kind>
419 friend struct ::capnp::ToDynamic_;
421 #endif // !CAPNP_LITE 431 return _reader.totalSize().asPublic();
438 #endif // !CAPNP_LITE 441 inline ::capnp::Text::Reader
getResult()
const;
445 template <
typename, ::capnp::Kind>
446 friend struct ::capnp::ToDynamic_;
447 template <
typename, ::capnp::Kind>
448 friend struct ::capnp::_::PointerHelpers;
449 template <
typename, ::capnp::Kind>
450 friend struct ::capnp::List;
451 friend class ::capnp::MessageBuilder;
452 friend class ::capnp::Orphanage;
469 #endif // !CAPNP_LITE 472 inline ::capnp::Text::Builder
getResult();
473 inline void setResult( ::capnp::Text::Reader value);
474 inline ::capnp::Text::Builder
initResult(
unsigned int size);
475 inline void adoptResult(::capnp::Orphan< ::capnp::Text>&& value);
480 template <
typename, ::capnp::Kind>
481 friend struct ::capnp::ToDynamic_;
482 friend class ::capnp::Orphanage;
483 template <
typename, ::capnp::Kind>
484 friend struct ::capnp::_::PointerHelpers;
493 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
498 friend class ::capnp::PipelineHook;
499 template <
typename, ::capnp::Kind>
500 friend struct ::capnp::ToDynamic_;
502 #endif // !CAPNP_LITE 510 ::kj::Own< ::capnp::ClientHook>&& hook)
512 template <
typename _t,
typename>
515 template <
typename _t,
typename>
517 : ::
capnp::Capability::
Client(::kj::mv(promise)) {}
519 : ::
capnp::Capability::
Client(::kj::mv(exception)) {}
521 ::capnp::Capability::Client::operator=(other);
525 ::capnp::Capability::Client::operator=(kj::mv(other));
529 #endif // !CAPNP_LITE 531 return !_reader.getPointerField(
532 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
535 return !_builder.getPointerField(
536 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
539 return ::capnp::_::PointerHelpers< ::mp::Context>::get(_reader.getPointerField(
540 ::capnp::bounded<0>() * ::capnp::POINTERS));
543 return ::capnp::_::PointerHelpers< ::mp::Context>::get(_builder.getPointerField(
544 ::capnp::bounded<0>() * ::capnp::POINTERS));
548 return ::mp::Context::Pipeline(_typeless.getPointerField(0));
550 #endif // !CAPNP_LITE 552 ::capnp::_::PointerHelpers< ::mp::Context>::set(_builder.getPointerField(
553 ::capnp::bounded<0>() * ::capnp::POINTERS), value);
557 ::capnp::bounded<0>() * ::capnp::POINTERS));
560 ::capnp::Orphan< ::mp::Context>&& value) {
561 ::capnp::_::PointerHelpers< ::mp::Context>::adopt(_builder.getPointerField(
562 ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
565 return ::capnp::_::PointerHelpers< ::mp::Context>::disown(_builder.getPointerField(
566 ::capnp::bounded<0>() * ::capnp::POINTERS));
570 return !_reader.getPointerField(
571 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
574 return !_builder.getPointerField(
575 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
578 return ::capnp::_::PointerHelpers< ::mp::Context>::get(_reader.getPointerField(
579 ::capnp::bounded<0>() * ::capnp::POINTERS));
582 return ::capnp::_::PointerHelpers< ::mp::Context>::get(_builder.getPointerField(
583 ::capnp::bounded<0>() * ::capnp::POINTERS));
587 return ::mp::Context::Pipeline(_typeless.getPointerField(0));
589 #endif // !CAPNP_LITE 591 ::capnp::_::PointerHelpers< ::mp::Context>::set(_builder.getPointerField(
592 ::capnp::bounded<0>() * ::capnp::POINTERS), value);
596 ::capnp::bounded<0>() * ::capnp::POINTERS));
599 ::capnp::Orphan< ::mp::Context>&& value) {
600 ::capnp::_::PointerHelpers< ::mp::Context>::adopt(_builder.getPointerField(
601 ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
604 return ::capnp::_::PointerHelpers< ::mp::Context>::disown(_builder.getPointerField(
605 ::capnp::bounded<0>() * ::capnp::POINTERS));
609 return !_reader.getPointerField(
610 ::capnp::bounded<1>() * ::capnp::POINTERS).isNull();
613 return !_builder.getPointerField(
614 ::capnp::bounded<1>() * ::capnp::POINTERS).isNull();
617 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_reader.getPointerField(
618 ::capnp::bounded<1>() * ::capnp::POINTERS));
621 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_builder.getPointerField(
622 ::capnp::bounded<1>() * ::capnp::POINTERS));
625 ::capnp::_::PointerHelpers< ::capnp::Text>::set(_builder.getPointerField(
626 ::capnp::bounded<1>() * ::capnp::POINTERS), value);
630 ::capnp::bounded<1>() * ::capnp::POINTERS), size);
633 ::capnp::Orphan< ::capnp::Text>&& value) {
634 ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(_builder.getPointerField(
635 ::capnp::bounded<1>() * ::capnp::POINTERS), kj::mv(value));
638 return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(_builder.getPointerField(
639 ::capnp::bounded<1>() * ::capnp::POINTERS));
643 return !_reader.getPointerField(
644 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
647 return !_builder.getPointerField(
648 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
651 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_reader.getPointerField(
652 ::capnp::bounded<0>() * ::capnp::POINTERS));
655 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_builder.getPointerField(
656 ::capnp::bounded<0>() * ::capnp::POINTERS));
659 ::capnp::_::PointerHelpers< ::capnp::Text>::set(_builder.getPointerField(
660 ::capnp::bounded<0>() * ::capnp::POINTERS), value);
664 ::capnp::bounded<0>() * ::capnp::POINTERS), size);
667 ::capnp::Orphan< ::capnp::Text>&& value) {
668 ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(_builder.getPointerField(
669 ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
672 return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(_builder.getPointerField(
673 ::capnp::bounded<0>() * ::capnp::POINTERS));
inline ::capnp::MessageSize totalSize() const
inline ::mp::Context::Builder initContext()
::capnp::Capability::Server::DispatchCallResult dispatchCall(uint64_t interfaceId, uint16_t methodId, ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer > context) override
::capnp::_::StructBuilder _builder
inline ::capnp::MessageSize totalSize() const
inline ::capnp::MessageSize totalSize() const
inline ::capnp::MessageSize totalSize() const
inline ::capnp::Orphan< ::mp::Context > disownContext()
Pipeline(::capnp::AnyPointer::Pipeline &&typeless)
Builder(decltype(nullptr))
void adoptEcho(::capnp::Orphan< ::capnp::Text > &&value)
::ipc::capnp::messages::Echo::DestroyParams DestroyParams
void setContext(::mp::Context::Reader value)
::capnp::CallContext< DestroyParams, DestroyResults > DestroyContext
void adoptContext(::capnp::Orphan< ::mp::Context > &&value)
Reader(::capnp::_::StructReader base)
inline ::capnp::MessageSize totalSize() const
::capnp::_::StructReader _reader
static constexpr ::capnp::_::RawBrandedSchema const * brand()
inline ::mp::Context::Reader getContext() const
inline ::capnp::Orphan< ::capnp::Text > disownEcho()
::capnp::_::StructBuilder _builder
::capnp::AnyPointer::Pipeline _typeless
void setContext(::mp::Context::Reader value)
inline ::mp::Context::Pipeline getContext()
inline ::kj::StringTree toString() const
::ipc::capnp::messages::Echo::EchoParams EchoParams
Pipeline(::capnp::AnyPointer::Pipeline &&typeless)
::capnp::_::StructBuilder _builder
void setEcho(::capnp::Text::Reader value)
inline ::capnp::Text::Builder initResult(unsigned int size)
::capnp::_::StructReader _reader
Pipeline(::capnp::AnyPointer::Pipeline &&typeless)
Builder(decltype(nullptr))
inline ::capnp::Orphan< ::capnp::Text > disownResult()
inline ::kj::StringTree toString() const
Pipeline(decltype(nullptr))
static constexpr ::capnp::_::RawBrandedSchema const * brand()
::capnp::_::StructBuilder _builder
inline ::ipc::capnp::messages::Echo::Client thisCap()
Builder(::capnp::_::StructBuilder base)
::capnp::_::StructReader _reader
inline ::capnp::Text::Builder getResult()
inline ::kj::StringTree toString() const
void setResult(::capnp::Text::Reader value)
inline ::capnp::Text::Builder initEcho(unsigned int size)
Reader(::capnp::_::StructReader base)
bilingual_str _(const char *psz)
Translation function.
Builder(::capnp::_::StructBuilder base)
::capnp::Request< ::ipc::capnp::messages::Echo::EchoParams, ::ipc::capnp::messages::Echo::EchoResults > echoRequest(::kj::Maybe< ::capnp::MessageSize > sizeHint=nullptr)
inline ::capnp::MessageSize totalSize() const
std::unique_ptr< interfaces::Init > init
Builder(decltype(nullptr))
inline ::kj::StringTree toString() const
::ipc::capnp::messages::Echo::DestroyResults DestroyResults
inline ::capnp::Text::Reader getResult() const
inline ::capnp::Text::Builder getEcho()
::capnp::AnyPointer::Pipeline _typeless
::capnp::Request< ::ipc::capnp::messages::Echo::DestroyParams, ::ipc::capnp::messages::Echo::DestroyResults > destroyRequest(::kj::Maybe< ::capnp::MessageSize > sizeHint=nullptr)
inline ::kj::StringTree toString() const
inline ::mp::Context::Builder initContext()
::capnp::AnyPointer::Pipeline _typeless
::capnp::CallContext< EchoParams, EchoResults > EchoContext
Reader(::capnp::_::StructReader base)
::capnp::AnyPointer::Pipeline _typeless
void adoptResult(::capnp::Orphan< ::capnp::Text > &&value)
virtual ::kj::Promise< void > destroy(DestroyContext context)
static constexpr ::capnp::_::RawBrandedSchema const * brand()
::capnp::Capability::Server::DispatchCallResult dispatchCallInternal(uint16_t methodId, ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer > context)
::capnp::_::StructReader _reader
Client & operator=(Client &other)
CAPNP_DECLARE_SCHEMA(d36b89640dc94399)
inline ::kj::StringTree toString() const
Reader(::capnp::_::StructReader base)
inline ::mp::Context::Builder getContext()
static constexpr ::capnp::_::RawBrandedSchema const * brand()
virtual ::kj::Promise< void > echo(EchoContext context)
inline ::capnp::MessageSize totalSize() const
Builder(::capnp::_::StructBuilder base)
Builder(decltype(nullptr))
inline ::kj::StringTree toString() const
inline ::capnp::Text::Reader getEcho() const
static constexpr ::capnp::_::RawBrandedSchema const * brand()
inline ::capnp::MessageSize totalSize() const
inline ::mp::Context::Builder getContext()
Pipeline(decltype(nullptr))
Pipeline(::capnp::AnyPointer::Pipeline &&typeless)
inline ::mp::Context::Pipeline getContext()
void adoptContext(::capnp::Orphan< ::mp::Context > &&value)
inline ::capnp::Orphan< ::mp::Context > disownContext()
inline ::mp::Context::Reader getContext() const
Pipeline(decltype(nullptr))
::ipc::capnp::messages::Echo::EchoResults EchoResults
Builder(::capnp::_::StructBuilder base)
Pipeline(decltype(nullptr))
inline ::kj::StringTree toString() const