comparison win64-msvc/include/capnp/rpc-twoparty.capnp.h @ 148:b4bfdf10c4b3

Update Win64 capnp builds to v0.6
author Chris Cannam <cannam@all-day-breakfast.com>
date Mon, 22 May 2017 18:56:49 +0100
parents 42a73082be24
children
comparison
equal deleted inserted replaced
147:45360b968bf4 148:b4bfdf10c4b3
44 class Pipeline; 44 class Pipeline;
45 45
46 struct _capnpPrivate { 46 struct _capnpPrivate {
47 CAPNP_DECLARE_STRUCT_HEADER(d20b909fee733a8e, 1, 0) 47 CAPNP_DECLARE_STRUCT_HEADER(d20b909fee733a8e, 1, 0)
48 #if !CAPNP_LITE 48 #if !CAPNP_LITE
49 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; 49 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
50 #endif // !CAPNP_LITE 50 #endif // !CAPNP_LITE
51 }; 51 };
52 }; 52 };
53 53
54 struct ProvisionId { 54 struct ProvisionId {
59 class Pipeline; 59 class Pipeline;
60 60
61 struct _capnpPrivate { 61 struct _capnpPrivate {
62 CAPNP_DECLARE_STRUCT_HEADER(b88d09a9c5f39817, 1, 0) 62 CAPNP_DECLARE_STRUCT_HEADER(b88d09a9c5f39817, 1, 0)
63 #if !CAPNP_LITE 63 #if !CAPNP_LITE
64 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; 64 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
65 #endif // !CAPNP_LITE 65 #endif // !CAPNP_LITE
66 }; 66 };
67 }; 67 };
68 68
69 struct RecipientId { 69 struct RecipientId {
74 class Pipeline; 74 class Pipeline;
75 75
76 struct _capnpPrivate { 76 struct _capnpPrivate {
77 CAPNP_DECLARE_STRUCT_HEADER(89f389b6fd4082c1, 0, 0) 77 CAPNP_DECLARE_STRUCT_HEADER(89f389b6fd4082c1, 0, 0)
78 #if !CAPNP_LITE 78 #if !CAPNP_LITE
79 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; 79 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
80 #endif // !CAPNP_LITE 80 #endif // !CAPNP_LITE
81 }; 81 };
82 }; 82 };
83 83
84 struct ThirdPartyCapId { 84 struct ThirdPartyCapId {
89 class Pipeline; 89 class Pipeline;
90 90
91 struct _capnpPrivate { 91 struct _capnpPrivate {
92 CAPNP_DECLARE_STRUCT_HEADER(b47f4979672cb59d, 0, 0) 92 CAPNP_DECLARE_STRUCT_HEADER(b47f4979672cb59d, 0, 0)
93 #if !CAPNP_LITE 93 #if !CAPNP_LITE
94 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; 94 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
95 #endif // !CAPNP_LITE 95 #endif // !CAPNP_LITE
96 }; 96 };
97 }; 97 };
98 98
99 struct JoinKeyPart { 99 struct JoinKeyPart {
104 class Pipeline; 104 class Pipeline;
105 105
106 struct _capnpPrivate { 106 struct _capnpPrivate {
107 CAPNP_DECLARE_STRUCT_HEADER(95b29059097fca83, 1, 0) 107 CAPNP_DECLARE_STRUCT_HEADER(95b29059097fca83, 1, 0)
108 #if !CAPNP_LITE 108 #if !CAPNP_LITE
109 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; 109 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
110 #endif // !CAPNP_LITE 110 #endif // !CAPNP_LITE
111 }; 111 };
112 }; 112 };
113 113
114 struct JoinResult { 114 struct JoinResult {
119 class Pipeline; 119 class Pipeline;
120 120
121 struct _capnpPrivate { 121 struct _capnpPrivate {
122 CAPNP_DECLARE_STRUCT_HEADER(9d263a3630b7ebee, 1, 1) 122 CAPNP_DECLARE_STRUCT_HEADER(9d263a3630b7ebee, 1, 1)
123 #if !CAPNP_LITE 123 #if !CAPNP_LITE
124 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; 124 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
125 #endif // !CAPNP_LITE 125 #endif // !CAPNP_LITE
126 }; 126 };
127 }; 127 };
128 128
129 // ======================================================================================= 129 // =======================================================================================
139 return _reader.totalSize().asPublic(); 139 return _reader.totalSize().asPublic();
140 } 140 }
141 141
142 #if !CAPNP_LITE 142 #if !CAPNP_LITE
143 inline ::kj::StringTree toString() const { 143 inline ::kj::StringTree toString() const {
144 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); 144 return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
145 } 145 }
146 #endif // !CAPNP_LITE 146 #endif // !CAPNP_LITE
147 147
148 inline ::capnp::rpc::twoparty::Side getSide() const; 148 inline ::capnp::rpc::twoparty::Side getSide() const;
149 149
215 return _reader.totalSize().asPublic(); 215 return _reader.totalSize().asPublic();
216 } 216 }
217 217
218 #if !CAPNP_LITE 218 #if !CAPNP_LITE
219 inline ::kj::StringTree toString() const { 219 inline ::kj::StringTree toString() const {
220 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); 220 return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
221 } 221 }
222 #endif // !CAPNP_LITE 222 #endif // !CAPNP_LITE
223 223
224 inline ::uint32_t getJoinId() const; 224 inline ::uint32_t getJoinId() const;
225 225
291 return _reader.totalSize().asPublic(); 291 return _reader.totalSize().asPublic();
292 } 292 }
293 293
294 #if !CAPNP_LITE 294 #if !CAPNP_LITE
295 inline ::kj::StringTree toString() const { 295 inline ::kj::StringTree toString() const {
296 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); 296 return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
297 } 297 }
298 #endif // !CAPNP_LITE 298 #endif // !CAPNP_LITE
299 299
300 private: 300 private:
301 ::capnp::_::StructReader _reader; 301 ::capnp::_::StructReader _reader;
362 return _reader.totalSize().asPublic(); 362 return _reader.totalSize().asPublic();
363 } 363 }
364 364
365 #if !CAPNP_LITE 365 #if !CAPNP_LITE
366 inline ::kj::StringTree toString() const { 366 inline ::kj::StringTree toString() const {
367 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); 367 return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
368 } 368 }
369 #endif // !CAPNP_LITE 369 #endif // !CAPNP_LITE
370 370
371 private: 371 private:
372 ::capnp::_::StructReader _reader; 372 ::capnp::_::StructReader _reader;
433 return _reader.totalSize().asPublic(); 433 return _reader.totalSize().asPublic();
434 } 434 }
435 435
436 #if !CAPNP_LITE 436 #if !CAPNP_LITE
437 inline ::kj::StringTree toString() const { 437 inline ::kj::StringTree toString() const {
438 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); 438 return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
439 } 439 }
440 #endif // !CAPNP_LITE 440 #endif // !CAPNP_LITE
441 441
442 inline ::uint32_t getJoinId() const; 442 inline ::uint32_t getJoinId() const;
443 443
519 return _reader.totalSize().asPublic(); 519 return _reader.totalSize().asPublic();
520 } 520 }
521 521
522 #if !CAPNP_LITE 522 #if !CAPNP_LITE
523 inline ::kj::StringTree toString() const { 523 inline ::kj::StringTree toString() const {
524 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); 524 return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
525 } 525 }
526 #endif // !CAPNP_LITE 526 #endif // !CAPNP_LITE
527 527
528 inline ::uint32_t getJoinId() const; 528 inline ::uint32_t getJoinId() const;
529 529
598 598
599 // ======================================================================================= 599 // =======================================================================================
600 600
601 inline ::capnp::rpc::twoparty::Side VatId::Reader::getSide() const { 601 inline ::capnp::rpc::twoparty::Side VatId::Reader::getSide() const {
602 return _reader.getDataField< ::capnp::rpc::twoparty::Side>( 602 return _reader.getDataField< ::capnp::rpc::twoparty::Side>(
603 0 * ::capnp::ELEMENTS); 603 ::capnp::bounded<0>() * ::capnp::ELEMENTS);
604 } 604 }
605 605
606 inline ::capnp::rpc::twoparty::Side VatId::Builder::getSide() { 606 inline ::capnp::rpc::twoparty::Side VatId::Builder::getSide() {
607 return _builder.getDataField< ::capnp::rpc::twoparty::Side>( 607 return _builder.getDataField< ::capnp::rpc::twoparty::Side>(
608 0 * ::capnp::ELEMENTS); 608 ::capnp::bounded<0>() * ::capnp::ELEMENTS);
609 } 609 }
610 inline void VatId::Builder::setSide( ::capnp::rpc::twoparty::Side value) { 610 inline void VatId::Builder::setSide( ::capnp::rpc::twoparty::Side value) {
611 _builder.setDataField< ::capnp::rpc::twoparty::Side>( 611 _builder.setDataField< ::capnp::rpc::twoparty::Side>(
612 0 * ::capnp::ELEMENTS, value); 612 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value);
613 } 613 }
614 614
615 inline ::uint32_t ProvisionId::Reader::getJoinId() const { 615 inline ::uint32_t ProvisionId::Reader::getJoinId() const {
616 return _reader.getDataField< ::uint32_t>( 616 return _reader.getDataField< ::uint32_t>(
617 0 * ::capnp::ELEMENTS); 617 ::capnp::bounded<0>() * ::capnp::ELEMENTS);
618 } 618 }
619 619
620 inline ::uint32_t ProvisionId::Builder::getJoinId() { 620 inline ::uint32_t ProvisionId::Builder::getJoinId() {
621 return _builder.getDataField< ::uint32_t>( 621 return _builder.getDataField< ::uint32_t>(
622 0 * ::capnp::ELEMENTS); 622 ::capnp::bounded<0>() * ::capnp::ELEMENTS);
623 } 623 }
624 inline void ProvisionId::Builder::setJoinId( ::uint32_t value) { 624 inline void ProvisionId::Builder::setJoinId( ::uint32_t value) {
625 _builder.setDataField< ::uint32_t>( 625 _builder.setDataField< ::uint32_t>(
626 0 * ::capnp::ELEMENTS, value); 626 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value);
627 } 627 }
628 628
629 inline ::uint32_t JoinKeyPart::Reader::getJoinId() const { 629 inline ::uint32_t JoinKeyPart::Reader::getJoinId() const {
630 return _reader.getDataField< ::uint32_t>( 630 return _reader.getDataField< ::uint32_t>(
631 0 * ::capnp::ELEMENTS); 631 ::capnp::bounded<0>() * ::capnp::ELEMENTS);
632 } 632 }
633 633
634 inline ::uint32_t JoinKeyPart::Builder::getJoinId() { 634 inline ::uint32_t JoinKeyPart::Builder::getJoinId() {
635 return _builder.getDataField< ::uint32_t>( 635 return _builder.getDataField< ::uint32_t>(
636 0 * ::capnp::ELEMENTS); 636 ::capnp::bounded<0>() * ::capnp::ELEMENTS);
637 } 637 }
638 inline void JoinKeyPart::Builder::setJoinId( ::uint32_t value) { 638 inline void JoinKeyPart::Builder::setJoinId( ::uint32_t value) {
639 _builder.setDataField< ::uint32_t>( 639 _builder.setDataField< ::uint32_t>(
640 0 * ::capnp::ELEMENTS, value); 640 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value);
641 } 641 }
642 642
643 inline ::uint16_t JoinKeyPart::Reader::getPartCount() const { 643 inline ::uint16_t JoinKeyPart::Reader::getPartCount() const {
644 return _reader.getDataField< ::uint16_t>( 644 return _reader.getDataField< ::uint16_t>(
645 2 * ::capnp::ELEMENTS); 645 ::capnp::bounded<2>() * ::capnp::ELEMENTS);
646 } 646 }
647 647
648 inline ::uint16_t JoinKeyPart::Builder::getPartCount() { 648 inline ::uint16_t JoinKeyPart::Builder::getPartCount() {
649 return _builder.getDataField< ::uint16_t>( 649 return _builder.getDataField< ::uint16_t>(
650 2 * ::capnp::ELEMENTS); 650 ::capnp::bounded<2>() * ::capnp::ELEMENTS);
651 } 651 }
652 inline void JoinKeyPart::Builder::setPartCount( ::uint16_t value) { 652 inline void JoinKeyPart::Builder::setPartCount( ::uint16_t value) {
653 _builder.setDataField< ::uint16_t>( 653 _builder.setDataField< ::uint16_t>(
654 2 * ::capnp::ELEMENTS, value); 654 ::capnp::bounded<2>() * ::capnp::ELEMENTS, value);
655 } 655 }
656 656
657 inline ::uint16_t JoinKeyPart::Reader::getPartNum() const { 657 inline ::uint16_t JoinKeyPart::Reader::getPartNum() const {
658 return _reader.getDataField< ::uint16_t>( 658 return _reader.getDataField< ::uint16_t>(
659 3 * ::capnp::ELEMENTS); 659 ::capnp::bounded<3>() * ::capnp::ELEMENTS);
660 } 660 }
661 661
662 inline ::uint16_t JoinKeyPart::Builder::getPartNum() { 662 inline ::uint16_t JoinKeyPart::Builder::getPartNum() {
663 return _builder.getDataField< ::uint16_t>( 663 return _builder.getDataField< ::uint16_t>(
664 3 * ::capnp::ELEMENTS); 664 ::capnp::bounded<3>() * ::capnp::ELEMENTS);
665 } 665 }
666 inline void JoinKeyPart::Builder::setPartNum( ::uint16_t value) { 666 inline void JoinKeyPart::Builder::setPartNum( ::uint16_t value) {
667 _builder.setDataField< ::uint16_t>( 667 _builder.setDataField< ::uint16_t>(
668 3 * ::capnp::ELEMENTS, value); 668 ::capnp::bounded<3>() * ::capnp::ELEMENTS, value);
669 } 669 }
670 670
671 inline ::uint32_t JoinResult::Reader::getJoinId() const { 671 inline ::uint32_t JoinResult::Reader::getJoinId() const {
672 return _reader.getDataField< ::uint32_t>( 672 return _reader.getDataField< ::uint32_t>(
673 0 * ::capnp::ELEMENTS); 673 ::capnp::bounded<0>() * ::capnp::ELEMENTS);
674 } 674 }
675 675
676 inline ::uint32_t JoinResult::Builder::getJoinId() { 676 inline ::uint32_t JoinResult::Builder::getJoinId() {
677 return _builder.getDataField< ::uint32_t>( 677 return _builder.getDataField< ::uint32_t>(
678 0 * ::capnp::ELEMENTS); 678 ::capnp::bounded<0>() * ::capnp::ELEMENTS);
679 } 679 }
680 inline void JoinResult::Builder::setJoinId( ::uint32_t value) { 680 inline void JoinResult::Builder::setJoinId( ::uint32_t value) {
681 _builder.setDataField< ::uint32_t>( 681 _builder.setDataField< ::uint32_t>(
682 0 * ::capnp::ELEMENTS, value); 682 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value);
683 } 683 }
684 684
685 inline bool JoinResult::Reader::getSucceeded() const { 685 inline bool JoinResult::Reader::getSucceeded() const {
686 return _reader.getDataField<bool>( 686 return _reader.getDataField<bool>(
687 32 * ::capnp::ELEMENTS); 687 ::capnp::bounded<32>() * ::capnp::ELEMENTS);
688 } 688 }
689 689
690 inline bool JoinResult::Builder::getSucceeded() { 690 inline bool JoinResult::Builder::getSucceeded() {
691 return _builder.getDataField<bool>( 691 return _builder.getDataField<bool>(
692 32 * ::capnp::ELEMENTS); 692 ::capnp::bounded<32>() * ::capnp::ELEMENTS);
693 } 693 }
694 inline void JoinResult::Builder::setSucceeded(bool value) { 694 inline void JoinResult::Builder::setSucceeded(bool value) {
695 _builder.setDataField<bool>( 695 _builder.setDataField<bool>(
696 32 * ::capnp::ELEMENTS, value); 696 ::capnp::bounded<32>() * ::capnp::ELEMENTS, value);
697 } 697 }
698 698
699 inline bool JoinResult::Reader::hasCap() const { 699 inline bool JoinResult::Reader::hasCap() const {
700 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull(); 700 return !_reader.getPointerField(
701 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
701 } 702 }
702 inline bool JoinResult::Builder::hasCap() { 703 inline bool JoinResult::Builder::hasCap() {
703 return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull(); 704 return !_builder.getPointerField(
705 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
704 } 706 }
705 inline ::capnp::AnyPointer::Reader JoinResult::Reader::getCap() const { 707 inline ::capnp::AnyPointer::Reader JoinResult::Reader::getCap() const {
706 return ::capnp::AnyPointer::Reader( 708 return ::capnp::AnyPointer::Reader(_reader.getPointerField(
707 _reader.getPointerField(0 * ::capnp::POINTERS)); 709 ::capnp::bounded<0>() * ::capnp::POINTERS));
708 } 710 }
709 inline ::capnp::AnyPointer::Builder JoinResult::Builder::getCap() { 711 inline ::capnp::AnyPointer::Builder JoinResult::Builder::getCap() {
710 return ::capnp::AnyPointer::Builder( 712 return ::capnp::AnyPointer::Builder(_builder.getPointerField(
711 _builder.getPointerField(0 * ::capnp::POINTERS)); 713 ::capnp::bounded<0>() * ::capnp::POINTERS));
712 } 714 }
713 inline ::capnp::AnyPointer::Builder JoinResult::Builder::initCap() { 715 inline ::capnp::AnyPointer::Builder JoinResult::Builder::initCap() {
714 auto result = ::capnp::AnyPointer::Builder( 716 auto result = ::capnp::AnyPointer::Builder(_builder.getPointerField(
715 _builder.getPointerField(0 * ::capnp::POINTERS)); 717 ::capnp::bounded<0>() * ::capnp::POINTERS));
716 result.clear(); 718 result.clear();
717 return result; 719 return result;
718 } 720 }
719 721
720 } // namespace 722 } // namespace