6 #include <capnp/generated-header-support.h> 7 #include <kj/windows-sanity.h> 9 #include <capnp/capability.h> 12 #if CAPNP_VERSION != 8000 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> 49 CAPNP_DECLARE_INTERFACE_HEADER(d36b89640dc94399)
50 static constexpr ::
capnp::
_::RawBrandedSchema const*
brand() {
return &schema->defaultBrand; }
63 CAPNP_DECLARE_STRUCT_HEADER(b96f2f4cb65dfb85, 0, 1)
65 static constexpr ::capnp::_::RawBrandedSchema
const*
brand() {
return &schema->defaultBrand; }
78 CAPNP_DECLARE_STRUCT_HEADER(b43ed7d38d868aff, 0, 0)
80 static constexpr ::capnp::_::RawBrandedSchema
const*
brand() {
return &schema->defaultBrand; }
93 CAPNP_DECLARE_STRUCT_HEADER(c6b88006c24cbd0e, 0, 2)
95 static constexpr ::capnp::_::RawBrandedSchema
const*
brand() {
return &schema->defaultBrand; }
108 CAPNP_DECLARE_STRUCT_HEADER(9d6bbfd9d85b1331, 0, 1)
110 static constexpr ::capnp::_::RawBrandedSchema
const*
brand() {
return &schema->defaultBrand; }
111 #endif // !CAPNP_LITE 119 :
public virtual ::capnp::Capability::Client {
124 Client(decltype(
nullptr));
125 explicit Client(::kj::Own< ::capnp::ClientHook>&& hook);
126 template <
typename _t,
typename = ::kj::EnableIf< ::kj::canConvert<_t*, Server*>()>>
127 Client(::kj::Own<_t>&& server);
128 template <
typename _t,
typename = ::kj::EnableIf< ::kj::canConvert<_t*, Client*>()>>
129 Client(::kj::Promise<_t>&& promise);
130 Client(::kj::Exception&& exception);
136 ::capnp::Request< ::ipc::capnp::messages::Echo::DestroyParams, ::ipc::capnp::messages::Echo::DestroyResults>
destroyRequest(
137 ::kj::Maybe< ::capnp::MessageSize> sizeHint =
nullptr);
138 ::capnp::Request< ::ipc::capnp::messages::Echo::EchoParams, ::ipc::capnp::messages::Echo::EchoResults>
echoRequest(
139 ::kj::Maybe< ::capnp::MessageSize> sizeHint =
nullptr);
146 :
public virtual ::capnp::Capability::Server {
150 ::capnp::Capability::Server::DispatchCallResult
dispatchCall(
151 uint64_t interfaceId, uint16_t methodId,
152 ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer>
context)
162 typedef ::capnp::CallContext<EchoParams, EchoResults>
EchoContext;
165 inline ::ipc::capnp::messages::Echo::Client
thisCap() {
166 return ::capnp::Capability::Server::thisCap()
167 .template castAs< ::ipc::capnp::messages::Echo>();
172 ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer>
context);
174 #endif // !CAPNP_LITE 184 return _reader.totalSize().asPublic();
191 #endif // !CAPNP_LITE 194 inline ::mp::Context::Reader
getContext()
const;
198 template <
typename, ::capnp::Kind>
199 friend struct ::capnp::ToDynamic_;
200 template <
typename, ::capnp::Kind>
201 friend struct ::capnp::_::PointerHelpers;
202 template <
typename, ::capnp::Kind>
203 friend struct ::capnp::List;
204 friend class ::capnp::MessageBuilder;
205 friend class ::capnp::Orphanage;
222 #endif // !CAPNP_LITE 226 inline void setContext( ::mp::Context::Reader value);
228 inline void adoptContext(::capnp::Orphan< ::mp::Context>&& value);
233 template <
typename, ::capnp::Kind>
234 friend struct ::capnp::ToDynamic_;
235 friend class ::capnp::Orphanage;
236 template <
typename, ::capnp::Kind>
237 friend struct ::capnp::_::PointerHelpers;
246 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
252 friend class ::capnp::PipelineHook;
253 template <
typename, ::capnp::Kind>
254 friend struct ::capnp::ToDynamic_;
256 #endif // !CAPNP_LITE 266 return _reader.totalSize().asPublic();
273 #endif // !CAPNP_LITE 277 template <
typename, ::capnp::Kind>
278 friend struct ::capnp::ToDynamic_;
279 template <
typename, ::capnp::Kind>
280 friend struct ::capnp::_::PointerHelpers;
281 template <
typename, ::capnp::Kind>
282 friend struct ::capnp::List;
283 friend class ::capnp::MessageBuilder;
284 friend class ::capnp::Orphanage;
301 #endif // !CAPNP_LITE 305 template <
typename, ::capnp::Kind>
306 friend struct ::capnp::ToDynamic_;
307 friend class ::capnp::Orphanage;
308 template <
typename, ::capnp::Kind>
309 friend struct ::capnp::_::PointerHelpers;
318 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
323 friend class ::capnp::PipelineHook;
324 template <
typename, ::capnp::Kind>
325 friend struct ::capnp::ToDynamic_;
327 #endif // !CAPNP_LITE 337 return _reader.totalSize().asPublic();
344 #endif // !CAPNP_LITE 347 inline ::mp::Context::Reader
getContext()
const;
350 inline ::capnp::Text::Reader
getEcho()
const;
354 template <
typename, ::capnp::Kind>
355 friend struct ::capnp::ToDynamic_;
356 template <
typename, ::capnp::Kind>
357 friend struct ::capnp::_::PointerHelpers;
358 template <
typename, ::capnp::Kind>
359 friend struct ::capnp::List;
360 friend class ::capnp::MessageBuilder;
361 friend class ::capnp::Orphanage;
378 #endif // !CAPNP_LITE 382 inline void setContext( ::mp::Context::Reader value);
384 inline void adoptContext(::capnp::Orphan< ::mp::Context>&& value);
388 inline ::capnp::Text::Builder
getEcho();
389 inline void setEcho( ::capnp::Text::Reader value);
390 inline ::capnp::Text::Builder
initEcho(
unsigned int size);
391 inline void adoptEcho(::capnp::Orphan< ::capnp::Text>&& value);
392 inline ::capnp::Orphan< ::capnp::Text>
disownEcho();
396 template <
typename, ::capnp::Kind>
397 friend struct ::capnp::ToDynamic_;
398 friend class ::capnp::Orphanage;
399 template <
typename, ::capnp::Kind>
400 friend struct ::capnp::_::PointerHelpers;
409 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
415 friend class ::capnp::PipelineHook;
416 template <
typename, ::capnp::Kind>
417 friend struct ::capnp::ToDynamic_;
419 #endif // !CAPNP_LITE 429 return _reader.totalSize().asPublic();
436 #endif // !CAPNP_LITE 439 inline ::capnp::Text::Reader
getResult()
const;
443 template <
typename, ::capnp::Kind>
444 friend struct ::capnp::ToDynamic_;
445 template <
typename, ::capnp::Kind>
446 friend struct ::capnp::_::PointerHelpers;
447 template <
typename, ::capnp::Kind>
448 friend struct ::capnp::List;
449 friend class ::capnp::MessageBuilder;
450 friend class ::capnp::Orphanage;
467 #endif // !CAPNP_LITE 470 inline ::capnp::Text::Builder
getResult();
471 inline void setResult( ::capnp::Text::Reader value);
472 inline ::capnp::Text::Builder
initResult(
unsigned int size);
473 inline void adoptResult(::capnp::Orphan< ::capnp::Text>&& value);
478 template <
typename, ::capnp::Kind>
479 friend struct ::capnp::ToDynamic_;
480 friend class ::capnp::Orphanage;
481 template <
typename, ::capnp::Kind>
482 friend struct ::capnp::_::PointerHelpers;
491 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
496 friend class ::capnp::PipelineHook;
497 template <
typename, ::capnp::Kind>
498 friend struct ::capnp::ToDynamic_;
500 #endif // !CAPNP_LITE 508 ::kj::Own< ::capnp::ClientHook>&& hook)
510 template <
typename _t,
typename>
513 template <
typename _t,
typename>
515 : ::
capnp::Capability::
Client(::kj::mv(promise)) {}
517 : ::
capnp::Capability::
Client(::kj::mv(exception)) {}
519 ::capnp::Capability::Client::operator=(other);
523 ::capnp::Capability::Client::operator=(kj::mv(other));
527 #endif // !CAPNP_LITE 529 return !_reader.getPointerField(
530 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
533 return !_builder.getPointerField(
534 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
537 return ::capnp::_::PointerHelpers< ::mp::Context>::get(_reader.getPointerField(
538 ::capnp::bounded<0>() * ::capnp::POINTERS));
541 return ::capnp::_::PointerHelpers< ::mp::Context>::get(_builder.getPointerField(
542 ::capnp::bounded<0>() * ::capnp::POINTERS));
546 return ::mp::Context::Pipeline(_typeless.getPointerField(0));
548 #endif // !CAPNP_LITE 550 ::capnp::_::PointerHelpers< ::mp::Context>::set(_builder.getPointerField(
551 ::capnp::bounded<0>() * ::capnp::POINTERS), value);
555 ::capnp::bounded<0>() * ::capnp::POINTERS));
558 ::capnp::Orphan< ::mp::Context>&& value) {
559 ::capnp::_::PointerHelpers< ::mp::Context>::adopt(_builder.getPointerField(
560 ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
563 return ::capnp::_::PointerHelpers< ::mp::Context>::disown(_builder.getPointerField(
564 ::capnp::bounded<0>() * ::capnp::POINTERS));
568 return !_reader.getPointerField(
569 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
572 return !_builder.getPointerField(
573 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
576 return ::capnp::_::PointerHelpers< ::mp::Context>::get(_reader.getPointerField(
577 ::capnp::bounded<0>() * ::capnp::POINTERS));
580 return ::capnp::_::PointerHelpers< ::mp::Context>::get(_builder.getPointerField(
581 ::capnp::bounded<0>() * ::capnp::POINTERS));
585 return ::mp::Context::Pipeline(_typeless.getPointerField(0));
587 #endif // !CAPNP_LITE 589 ::capnp::_::PointerHelpers< ::mp::Context>::set(_builder.getPointerField(
590 ::capnp::bounded<0>() * ::capnp::POINTERS), value);
594 ::capnp::bounded<0>() * ::capnp::POINTERS));
597 ::capnp::Orphan< ::mp::Context>&& value) {
598 ::capnp::_::PointerHelpers< ::mp::Context>::adopt(_builder.getPointerField(
599 ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
602 return ::capnp::_::PointerHelpers< ::mp::Context>::disown(_builder.getPointerField(
603 ::capnp::bounded<0>() * ::capnp::POINTERS));
607 return !_reader.getPointerField(
608 ::capnp::bounded<1>() * ::capnp::POINTERS).isNull();
611 return !_builder.getPointerField(
612 ::capnp::bounded<1>() * ::capnp::POINTERS).isNull();
615 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_reader.getPointerField(
616 ::capnp::bounded<1>() * ::capnp::POINTERS));
619 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_builder.getPointerField(
620 ::capnp::bounded<1>() * ::capnp::POINTERS));
623 ::capnp::_::PointerHelpers< ::capnp::Text>::set(_builder.getPointerField(
624 ::capnp::bounded<1>() * ::capnp::POINTERS), value);
628 ::capnp::bounded<1>() * ::capnp::POINTERS), size);
631 ::capnp::Orphan< ::capnp::Text>&& value) {
632 ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(_builder.getPointerField(
633 ::capnp::bounded<1>() * ::capnp::POINTERS), kj::mv(value));
636 return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(_builder.getPointerField(
637 ::capnp::bounded<1>() * ::capnp::POINTERS));
641 return !_reader.getPointerField(
642 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
645 return !_builder.getPointerField(
646 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
649 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_reader.getPointerField(
650 ::capnp::bounded<0>() * ::capnp::POINTERS));
653 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_builder.getPointerField(
654 ::capnp::bounded<0>() * ::capnp::POINTERS));
657 ::capnp::_::PointerHelpers< ::capnp::Text>::set(_builder.getPointerField(
658 ::capnp::bounded<0>() * ::capnp::POINTERS), value);
662 ::capnp::bounded<0>() * ::capnp::POINTERS), size);
665 ::capnp::Orphan< ::capnp::Text>&& value) {
666 ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(_builder.getPointerField(
667 ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
670 return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(_builder.getPointerField(
671 ::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