Mercurial > hg > piper-cpp
comparison vamp-capnp/piper.capnp.h @ 185:3eb00e5c76c4
Pull step & block size out into framing struct, return in config
Update the C++ code to separate out the framing parameters (step and
block size) from the configuration structure into their own structure,
as in the latest schema, and to return the accepted framing params in
the configuration response.
This also implies that the plugin stub (which adapts Piper API
back to Vamp) makes a note of the returned values,
making them available via its own getPreferredStep/BlockSize
so that the host can retry the initialise call in the case where it
failed for having the wrong values first time.
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Fri, 03 Feb 2017 16:23:21 +0000 |
parents | 5b113c87b6e6 |
children | 328ffacfc70e |
comparison
equal
deleted
inserted
replaced
184:150cfa0c71e1 | 185:3eb00e5c76c4 |
---|---|
35 CAPNP_DECLARE_SCHEMA(84d515888a427d07); | 35 CAPNP_DECLARE_SCHEMA(84d515888a427d07); |
36 CAPNP_DECLARE_SCHEMA(c6f3f05f2bc614ba); | 36 CAPNP_DECLARE_SCHEMA(c6f3f05f2bc614ba); |
37 CAPNP_DECLARE_SCHEMA(d6a172208c9a1760); | 37 CAPNP_DECLARE_SCHEMA(d6a172208c9a1760); |
38 CAPNP_DECLARE_SCHEMA(ffa3fccceb684869); | 38 CAPNP_DECLARE_SCHEMA(ffa3fccceb684869); |
39 CAPNP_DECLARE_SCHEMA(ab2572c346316b24); | 39 CAPNP_DECLARE_SCHEMA(ab2572c346316b24); |
40 CAPNP_DECLARE_SCHEMA(fe907ebf410a65a4); | |
40 CAPNP_DECLARE_SCHEMA(db209a01f86fe045); | 41 CAPNP_DECLARE_SCHEMA(db209a01f86fe045); |
41 CAPNP_DECLARE_SCHEMA(900b56fed422dd37); | 42 CAPNP_DECLARE_SCHEMA(900b56fed422dd37); |
42 CAPNP_DECLARE_SCHEMA(b5edf73eb2e79c4e); | 43 CAPNP_DECLARE_SCHEMA(b5edf73eb2e79c4e); |
43 enum class AdapterFlag_b5edf73eb2e79c4e: uint16_t { | 44 enum class AdapterFlag_b5edf73eb2e79c4e: uint16_t { |
44 ADAPT_INPUT_DOMAIN, | 45 ADAPT_INPUT_DOMAIN, |
224 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | 225 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; |
225 #endif // !CAPNP_LITE | 226 #endif // !CAPNP_LITE |
226 }; | 227 }; |
227 }; | 228 }; |
228 | 229 |
230 struct Framing { | |
231 Framing() = delete; | |
232 | |
233 class Reader; | |
234 class Builder; | |
235 class Pipeline; | |
236 | |
237 struct _capnpPrivate { | |
238 CAPNP_DECLARE_STRUCT_HEADER(fe907ebf410a65a4, 1, 0) | |
239 #if !CAPNP_LITE | |
240 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | |
241 #endif // !CAPNP_LITE | |
242 }; | |
243 }; | |
244 | |
229 struct Configuration { | 245 struct Configuration { |
230 Configuration() = delete; | 246 Configuration() = delete; |
231 | 247 |
232 class Reader; | 248 class Reader; |
233 class Builder; | 249 class Builder; |
234 class Pipeline; | 250 class Pipeline; |
235 struct PVPair; | 251 struct PVPair; |
236 | 252 |
237 struct _capnpPrivate { | 253 struct _capnpPrivate { |
238 CAPNP_DECLARE_STRUCT_HEADER(db209a01f86fe045, 2, 2) | 254 CAPNP_DECLARE_STRUCT_HEADER(db209a01f86fe045, 1, 3) |
239 #if !CAPNP_LITE | 255 #if !CAPNP_LITE |
240 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | 256 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; |
241 #endif // !CAPNP_LITE | 257 #endif // !CAPNP_LITE |
242 }; | 258 }; |
243 }; | 259 }; |
342 class Reader; | 358 class Reader; |
343 class Builder; | 359 class Builder; |
344 class Pipeline; | 360 class Pipeline; |
345 | 361 |
346 struct _capnpPrivate { | 362 struct _capnpPrivate { |
347 CAPNP_DECLARE_STRUCT_HEADER(c433db5864bf6d56, 1, 1) | 363 CAPNP_DECLARE_STRUCT_HEADER(c433db5864bf6d56, 1, 2) |
348 #if !CAPNP_LITE | 364 #if !CAPNP_LITE |
349 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | 365 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; |
350 #endif // !CAPNP_LITE | 366 #endif // !CAPNP_LITE |
351 }; | 367 }; |
352 }; | 368 }; |
1653 template <typename, ::capnp::Kind> | 1669 template <typename, ::capnp::Kind> |
1654 friend struct ::capnp::ToDynamic_; | 1670 friend struct ::capnp::ToDynamic_; |
1655 }; | 1671 }; |
1656 #endif // !CAPNP_LITE | 1672 #endif // !CAPNP_LITE |
1657 | 1673 |
1658 class Configuration::Reader { | 1674 class Framing::Reader { |
1659 public: | 1675 public: |
1660 typedef Configuration Reads; | 1676 typedef Framing Reads; |
1661 | 1677 |
1662 Reader() = default; | 1678 Reader() = default; |
1663 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} | 1679 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} |
1664 | 1680 |
1665 inline ::capnp::MessageSize totalSize() const { | 1681 inline ::capnp::MessageSize totalSize() const { |
1670 inline ::kj::StringTree toString() const { | 1686 inline ::kj::StringTree toString() const { |
1671 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | 1687 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); |
1672 } | 1688 } |
1673 #endif // !CAPNP_LITE | 1689 #endif // !CAPNP_LITE |
1674 | 1690 |
1675 inline bool hasParameterValues() const; | |
1676 inline ::capnp::List< ::piper::Configuration::PVPair>::Reader getParameterValues() const; | |
1677 | |
1678 inline bool hasCurrentProgram() const; | |
1679 inline ::capnp::Text::Reader getCurrentProgram() const; | |
1680 | |
1681 inline ::int32_t getChannelCount() const; | |
1682 | |
1683 inline ::int32_t getStepSize() const; | 1691 inline ::int32_t getStepSize() const; |
1684 | 1692 |
1685 inline ::int32_t getBlockSize() const; | 1693 inline ::int32_t getBlockSize() const; |
1686 | 1694 |
1687 private: | 1695 private: |
1694 friend struct ::capnp::List; | 1702 friend struct ::capnp::List; |
1695 friend class ::capnp::MessageBuilder; | 1703 friend class ::capnp::MessageBuilder; |
1696 friend class ::capnp::Orphanage; | 1704 friend class ::capnp::Orphanage; |
1697 }; | 1705 }; |
1698 | 1706 |
1699 class Configuration::Builder { | 1707 class Framing::Builder { |
1700 public: | 1708 public: |
1701 typedef Configuration Builds; | 1709 typedef Framing Builds; |
1702 | 1710 |
1703 Builder() = delete; // Deleted to discourage incorrect usage. | 1711 Builder() = delete; // Deleted to discourage incorrect usage. |
1704 // You can explicitly initialize to nullptr instead. | 1712 // You can explicitly initialize to nullptr instead. |
1705 inline Builder(decltype(nullptr)) {} | 1713 inline Builder(decltype(nullptr)) {} |
1706 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} | 1714 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} |
1710 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } | 1718 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
1711 #if !CAPNP_LITE | 1719 #if !CAPNP_LITE |
1712 inline ::kj::StringTree toString() const { return asReader().toString(); } | 1720 inline ::kj::StringTree toString() const { return asReader().toString(); } |
1713 #endif // !CAPNP_LITE | 1721 #endif // !CAPNP_LITE |
1714 | 1722 |
1723 inline ::int32_t getStepSize(); | |
1724 inline void setStepSize( ::int32_t value); | |
1725 | |
1726 inline ::int32_t getBlockSize(); | |
1727 inline void setBlockSize( ::int32_t value); | |
1728 | |
1729 private: | |
1730 ::capnp::_::StructBuilder _builder; | |
1731 template <typename, ::capnp::Kind> | |
1732 friend struct ::capnp::ToDynamic_; | |
1733 friend class ::capnp::Orphanage; | |
1734 template <typename, ::capnp::Kind> | |
1735 friend struct ::capnp::_::PointerHelpers; | |
1736 }; | |
1737 | |
1738 #if !CAPNP_LITE | |
1739 class Framing::Pipeline { | |
1740 public: | |
1741 typedef Framing Pipelines; | |
1742 | |
1743 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} | |
1744 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) | |
1745 : _typeless(kj::mv(typeless)) {} | |
1746 | |
1747 private: | |
1748 ::capnp::AnyPointer::Pipeline _typeless; | |
1749 friend class ::capnp::PipelineHook; | |
1750 template <typename, ::capnp::Kind> | |
1751 friend struct ::capnp::ToDynamic_; | |
1752 }; | |
1753 #endif // !CAPNP_LITE | |
1754 | |
1755 class Configuration::Reader { | |
1756 public: | |
1757 typedef Configuration Reads; | |
1758 | |
1759 Reader() = default; | |
1760 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} | |
1761 | |
1762 inline ::capnp::MessageSize totalSize() const { | |
1763 return _reader.totalSize().asPublic(); | |
1764 } | |
1765 | |
1766 #if !CAPNP_LITE | |
1767 inline ::kj::StringTree toString() const { | |
1768 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | |
1769 } | |
1770 #endif // !CAPNP_LITE | |
1771 | |
1772 inline bool hasParameterValues() const; | |
1773 inline ::capnp::List< ::piper::Configuration::PVPair>::Reader getParameterValues() const; | |
1774 | |
1775 inline bool hasCurrentProgram() const; | |
1776 inline ::capnp::Text::Reader getCurrentProgram() const; | |
1777 | |
1778 inline ::int32_t getChannelCount() const; | |
1779 | |
1780 inline bool hasFraming() const; | |
1781 inline ::piper::Framing::Reader getFraming() const; | |
1782 | |
1783 private: | |
1784 ::capnp::_::StructReader _reader; | |
1785 template <typename, ::capnp::Kind> | |
1786 friend struct ::capnp::ToDynamic_; | |
1787 template <typename, ::capnp::Kind> | |
1788 friend struct ::capnp::_::PointerHelpers; | |
1789 template <typename, ::capnp::Kind> | |
1790 friend struct ::capnp::List; | |
1791 friend class ::capnp::MessageBuilder; | |
1792 friend class ::capnp::Orphanage; | |
1793 }; | |
1794 | |
1795 class Configuration::Builder { | |
1796 public: | |
1797 typedef Configuration Builds; | |
1798 | |
1799 Builder() = delete; // Deleted to discourage incorrect usage. | |
1800 // You can explicitly initialize to nullptr instead. | |
1801 inline Builder(decltype(nullptr)) {} | |
1802 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} | |
1803 inline operator Reader() const { return Reader(_builder.asReader()); } | |
1804 inline Reader asReader() const { return *this; } | |
1805 | |
1806 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } | |
1807 #if !CAPNP_LITE | |
1808 inline ::kj::StringTree toString() const { return asReader().toString(); } | |
1809 #endif // !CAPNP_LITE | |
1810 | |
1715 inline bool hasParameterValues(); | 1811 inline bool hasParameterValues(); |
1716 inline ::capnp::List< ::piper::Configuration::PVPair>::Builder getParameterValues(); | 1812 inline ::capnp::List< ::piper::Configuration::PVPair>::Builder getParameterValues(); |
1717 inline void setParameterValues( ::capnp::List< ::piper::Configuration::PVPair>::Reader value); | 1813 inline void setParameterValues( ::capnp::List< ::piper::Configuration::PVPair>::Reader value); |
1718 inline ::capnp::List< ::piper::Configuration::PVPair>::Builder initParameterValues(unsigned int size); | 1814 inline ::capnp::List< ::piper::Configuration::PVPair>::Builder initParameterValues(unsigned int size); |
1719 inline void adoptParameterValues(::capnp::Orphan< ::capnp::List< ::piper::Configuration::PVPair>>&& value); | 1815 inline void adoptParameterValues(::capnp::Orphan< ::capnp::List< ::piper::Configuration::PVPair>>&& value); |
1727 inline ::capnp::Orphan< ::capnp::Text> disownCurrentProgram(); | 1823 inline ::capnp::Orphan< ::capnp::Text> disownCurrentProgram(); |
1728 | 1824 |
1729 inline ::int32_t getChannelCount(); | 1825 inline ::int32_t getChannelCount(); |
1730 inline void setChannelCount( ::int32_t value); | 1826 inline void setChannelCount( ::int32_t value); |
1731 | 1827 |
1732 inline ::int32_t getStepSize(); | 1828 inline bool hasFraming(); |
1733 inline void setStepSize( ::int32_t value); | 1829 inline ::piper::Framing::Builder getFraming(); |
1734 | 1830 inline void setFraming( ::piper::Framing::Reader value); |
1735 inline ::int32_t getBlockSize(); | 1831 inline ::piper::Framing::Builder initFraming(); |
1736 inline void setBlockSize( ::int32_t value); | 1832 inline void adoptFraming(::capnp::Orphan< ::piper::Framing>&& value); |
1833 inline ::capnp::Orphan< ::piper::Framing> disownFraming(); | |
1737 | 1834 |
1738 private: | 1835 private: |
1739 ::capnp::_::StructBuilder _builder; | 1836 ::capnp::_::StructBuilder _builder; |
1740 template <typename, ::capnp::Kind> | 1837 template <typename, ::capnp::Kind> |
1741 friend struct ::capnp::ToDynamic_; | 1838 friend struct ::capnp::ToDynamic_; |
1751 | 1848 |
1752 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} | 1849 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
1753 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) | 1850 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
1754 : _typeless(kj::mv(typeless)) {} | 1851 : _typeless(kj::mv(typeless)) {} |
1755 | 1852 |
1853 inline ::piper::Framing::Pipeline getFraming(); | |
1756 private: | 1854 private: |
1757 ::capnp::AnyPointer::Pipeline _typeless; | 1855 ::capnp::AnyPointer::Pipeline _typeless; |
1758 friend class ::capnp::PipelineHook; | 1856 friend class ::capnp::PipelineHook; |
1759 template <typename, ::capnp::Kind> | 1857 template <typename, ::capnp::Kind> |
1760 friend struct ::capnp::ToDynamic_; | 1858 friend struct ::capnp::ToDynamic_; |
2312 inline ::int32_t getHandle() const; | 2410 inline ::int32_t getHandle() const; |
2313 | 2411 |
2314 inline bool hasOutputs() const; | 2412 inline bool hasOutputs() const; |
2315 inline ::capnp::List< ::piper::OutputDescriptor>::Reader getOutputs() const; | 2413 inline ::capnp::List< ::piper::OutputDescriptor>::Reader getOutputs() const; |
2316 | 2414 |
2415 inline bool hasFraming() const; | |
2416 inline ::piper::Framing::Reader getFraming() const; | |
2417 | |
2317 private: | 2418 private: |
2318 ::capnp::_::StructReader _reader; | 2419 ::capnp::_::StructReader _reader; |
2319 template <typename, ::capnp::Kind> | 2420 template <typename, ::capnp::Kind> |
2320 friend struct ::capnp::ToDynamic_; | 2421 friend struct ::capnp::ToDynamic_; |
2321 template <typename, ::capnp::Kind> | 2422 template <typename, ::capnp::Kind> |
2350 inline void setOutputs( ::capnp::List< ::piper::OutputDescriptor>::Reader value); | 2451 inline void setOutputs( ::capnp::List< ::piper::OutputDescriptor>::Reader value); |
2351 inline ::capnp::List< ::piper::OutputDescriptor>::Builder initOutputs(unsigned int size); | 2452 inline ::capnp::List< ::piper::OutputDescriptor>::Builder initOutputs(unsigned int size); |
2352 inline void adoptOutputs(::capnp::Orphan< ::capnp::List< ::piper::OutputDescriptor>>&& value); | 2453 inline void adoptOutputs(::capnp::Orphan< ::capnp::List< ::piper::OutputDescriptor>>&& value); |
2353 inline ::capnp::Orphan< ::capnp::List< ::piper::OutputDescriptor>> disownOutputs(); | 2454 inline ::capnp::Orphan< ::capnp::List< ::piper::OutputDescriptor>> disownOutputs(); |
2354 | 2455 |
2456 inline bool hasFraming(); | |
2457 inline ::piper::Framing::Builder getFraming(); | |
2458 inline void setFraming( ::piper::Framing::Reader value); | |
2459 inline ::piper::Framing::Builder initFraming(); | |
2460 inline void adoptFraming(::capnp::Orphan< ::piper::Framing>&& value); | |
2461 inline ::capnp::Orphan< ::piper::Framing> disownFraming(); | |
2462 | |
2355 private: | 2463 private: |
2356 ::capnp::_::StructBuilder _builder; | 2464 ::capnp::_::StructBuilder _builder; |
2357 template <typename, ::capnp::Kind> | 2465 template <typename, ::capnp::Kind> |
2358 friend struct ::capnp::ToDynamic_; | 2466 friend struct ::capnp::ToDynamic_; |
2359 friend class ::capnp::Orphanage; | 2467 friend class ::capnp::Orphanage; |
2368 | 2476 |
2369 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} | 2477 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} |
2370 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) | 2478 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) |
2371 : _typeless(kj::mv(typeless)) {} | 2479 : _typeless(kj::mv(typeless)) {} |
2372 | 2480 |
2481 inline ::piper::Framing::Pipeline getFraming(); | |
2373 private: | 2482 private: |
2374 ::capnp::AnyPointer::Pipeline _typeless; | 2483 ::capnp::AnyPointer::Pipeline _typeless; |
2375 friend class ::capnp::PipelineHook; | 2484 friend class ::capnp::PipelineHook; |
2376 template <typename, ::capnp::Kind> | 2485 template <typename, ::capnp::Kind> |
2377 friend struct ::capnp::ToDynamic_; | 2486 friend struct ::capnp::ToDynamic_; |
4696 inline ::capnp::Orphan< ::capnp::List< ::piper::Feature>> FeatureSet::FSPair::Builder::disownFeatures() { | 4805 inline ::capnp::Orphan< ::capnp::List< ::piper::Feature>> FeatureSet::FSPair::Builder::disownFeatures() { |
4697 return ::capnp::_::PointerHelpers< ::capnp::List< ::piper::Feature>>::disown( | 4806 return ::capnp::_::PointerHelpers< ::capnp::List< ::piper::Feature>>::disown( |
4698 _builder.getPointerField(1 * ::capnp::POINTERS)); | 4807 _builder.getPointerField(1 * ::capnp::POINTERS)); |
4699 } | 4808 } |
4700 | 4809 |
4810 inline ::int32_t Framing::Reader::getStepSize() const { | |
4811 return _reader.getDataField< ::int32_t>( | |
4812 0 * ::capnp::ELEMENTS); | |
4813 } | |
4814 | |
4815 inline ::int32_t Framing::Builder::getStepSize() { | |
4816 return _builder.getDataField< ::int32_t>( | |
4817 0 * ::capnp::ELEMENTS); | |
4818 } | |
4819 inline void Framing::Builder::setStepSize( ::int32_t value) { | |
4820 _builder.setDataField< ::int32_t>( | |
4821 0 * ::capnp::ELEMENTS, value); | |
4822 } | |
4823 | |
4824 inline ::int32_t Framing::Reader::getBlockSize() const { | |
4825 return _reader.getDataField< ::int32_t>( | |
4826 1 * ::capnp::ELEMENTS); | |
4827 } | |
4828 | |
4829 inline ::int32_t Framing::Builder::getBlockSize() { | |
4830 return _builder.getDataField< ::int32_t>( | |
4831 1 * ::capnp::ELEMENTS); | |
4832 } | |
4833 inline void Framing::Builder::setBlockSize( ::int32_t value) { | |
4834 _builder.setDataField< ::int32_t>( | |
4835 1 * ::capnp::ELEMENTS, value); | |
4836 } | |
4837 | |
4701 inline bool Configuration::Reader::hasParameterValues() const { | 4838 inline bool Configuration::Reader::hasParameterValues() const { |
4702 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull(); | 4839 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull(); |
4703 } | 4840 } |
4704 inline bool Configuration::Builder::hasParameterValues() { | 4841 inline bool Configuration::Builder::hasParameterValues() { |
4705 return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull(); | 4842 return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull(); |
4774 inline void Configuration::Builder::setChannelCount( ::int32_t value) { | 4911 inline void Configuration::Builder::setChannelCount( ::int32_t value) { |
4775 _builder.setDataField< ::int32_t>( | 4912 _builder.setDataField< ::int32_t>( |
4776 0 * ::capnp::ELEMENTS, value); | 4913 0 * ::capnp::ELEMENTS, value); |
4777 } | 4914 } |
4778 | 4915 |
4779 inline ::int32_t Configuration::Reader::getStepSize() const { | 4916 inline bool Configuration::Reader::hasFraming() const { |
4780 return _reader.getDataField< ::int32_t>( | 4917 return !_reader.getPointerField(2 * ::capnp::POINTERS).isNull(); |
4781 1 * ::capnp::ELEMENTS); | 4918 } |
4782 } | 4919 inline bool Configuration::Builder::hasFraming() { |
4783 | 4920 return !_builder.getPointerField(2 * ::capnp::POINTERS).isNull(); |
4784 inline ::int32_t Configuration::Builder::getStepSize() { | 4921 } |
4785 return _builder.getDataField< ::int32_t>( | 4922 inline ::piper::Framing::Reader Configuration::Reader::getFraming() const { |
4786 1 * ::capnp::ELEMENTS); | 4923 return ::capnp::_::PointerHelpers< ::piper::Framing>::get( |
4787 } | 4924 _reader.getPointerField(2 * ::capnp::POINTERS)); |
4788 inline void Configuration::Builder::setStepSize( ::int32_t value) { | 4925 } |
4789 _builder.setDataField< ::int32_t>( | 4926 inline ::piper::Framing::Builder Configuration::Builder::getFraming() { |
4790 1 * ::capnp::ELEMENTS, value); | 4927 return ::capnp::_::PointerHelpers< ::piper::Framing>::get( |
4791 } | 4928 _builder.getPointerField(2 * ::capnp::POINTERS)); |
4792 | 4929 } |
4793 inline ::int32_t Configuration::Reader::getBlockSize() const { | 4930 #if !CAPNP_LITE |
4794 return _reader.getDataField< ::int32_t>( | 4931 inline ::piper::Framing::Pipeline Configuration::Pipeline::getFraming() { |
4795 2 * ::capnp::ELEMENTS); | 4932 return ::piper::Framing::Pipeline(_typeless.getPointerField(2)); |
4796 } | 4933 } |
4797 | 4934 #endif // !CAPNP_LITE |
4798 inline ::int32_t Configuration::Builder::getBlockSize() { | 4935 inline void Configuration::Builder::setFraming( ::piper::Framing::Reader value) { |
4799 return _builder.getDataField< ::int32_t>( | 4936 ::capnp::_::PointerHelpers< ::piper::Framing>::set( |
4800 2 * ::capnp::ELEMENTS); | 4937 _builder.getPointerField(2 * ::capnp::POINTERS), value); |
4801 } | 4938 } |
4802 inline void Configuration::Builder::setBlockSize( ::int32_t value) { | 4939 inline ::piper::Framing::Builder Configuration::Builder::initFraming() { |
4803 _builder.setDataField< ::int32_t>( | 4940 return ::capnp::_::PointerHelpers< ::piper::Framing>::init( |
4804 2 * ::capnp::ELEMENTS, value); | 4941 _builder.getPointerField(2 * ::capnp::POINTERS)); |
4942 } | |
4943 inline void Configuration::Builder::adoptFraming( | |
4944 ::capnp::Orphan< ::piper::Framing>&& value) { | |
4945 ::capnp::_::PointerHelpers< ::piper::Framing>::adopt( | |
4946 _builder.getPointerField(2 * ::capnp::POINTERS), kj::mv(value)); | |
4947 } | |
4948 inline ::capnp::Orphan< ::piper::Framing> Configuration::Builder::disownFraming() { | |
4949 return ::capnp::_::PointerHelpers< ::piper::Framing>::disown( | |
4950 _builder.getPointerField(2 * ::capnp::POINTERS)); | |
4805 } | 4951 } |
4806 | 4952 |
4807 inline bool Configuration::PVPair::Reader::hasParameter() const { | 4953 inline bool Configuration::PVPair::Reader::hasParameter() const { |
4808 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull(); | 4954 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull(); |
4809 } | 4955 } |
5181 _builder.getPointerField(0 * ::capnp::POINTERS), kj::mv(value)); | 5327 _builder.getPointerField(0 * ::capnp::POINTERS), kj::mv(value)); |
5182 } | 5328 } |
5183 inline ::capnp::Orphan< ::capnp::List< ::piper::OutputDescriptor>> ConfigurationResponse::Builder::disownOutputs() { | 5329 inline ::capnp::Orphan< ::capnp::List< ::piper::OutputDescriptor>> ConfigurationResponse::Builder::disownOutputs() { |
5184 return ::capnp::_::PointerHelpers< ::capnp::List< ::piper::OutputDescriptor>>::disown( | 5330 return ::capnp::_::PointerHelpers< ::capnp::List< ::piper::OutputDescriptor>>::disown( |
5185 _builder.getPointerField(0 * ::capnp::POINTERS)); | 5331 _builder.getPointerField(0 * ::capnp::POINTERS)); |
5332 } | |
5333 | |
5334 inline bool ConfigurationResponse::Reader::hasFraming() const { | |
5335 return !_reader.getPointerField(1 * ::capnp::POINTERS).isNull(); | |
5336 } | |
5337 inline bool ConfigurationResponse::Builder::hasFraming() { | |
5338 return !_builder.getPointerField(1 * ::capnp::POINTERS).isNull(); | |
5339 } | |
5340 inline ::piper::Framing::Reader ConfigurationResponse::Reader::getFraming() const { | |
5341 return ::capnp::_::PointerHelpers< ::piper::Framing>::get( | |
5342 _reader.getPointerField(1 * ::capnp::POINTERS)); | |
5343 } | |
5344 inline ::piper::Framing::Builder ConfigurationResponse::Builder::getFraming() { | |
5345 return ::capnp::_::PointerHelpers< ::piper::Framing>::get( | |
5346 _builder.getPointerField(1 * ::capnp::POINTERS)); | |
5347 } | |
5348 #if !CAPNP_LITE | |
5349 inline ::piper::Framing::Pipeline ConfigurationResponse::Pipeline::getFraming() { | |
5350 return ::piper::Framing::Pipeline(_typeless.getPointerField(1)); | |
5351 } | |
5352 #endif // !CAPNP_LITE | |
5353 inline void ConfigurationResponse::Builder::setFraming( ::piper::Framing::Reader value) { | |
5354 ::capnp::_::PointerHelpers< ::piper::Framing>::set( | |
5355 _builder.getPointerField(1 * ::capnp::POINTERS), value); | |
5356 } | |
5357 inline ::piper::Framing::Builder ConfigurationResponse::Builder::initFraming() { | |
5358 return ::capnp::_::PointerHelpers< ::piper::Framing>::init( | |
5359 _builder.getPointerField(1 * ::capnp::POINTERS)); | |
5360 } | |
5361 inline void ConfigurationResponse::Builder::adoptFraming( | |
5362 ::capnp::Orphan< ::piper::Framing>&& value) { | |
5363 ::capnp::_::PointerHelpers< ::piper::Framing>::adopt( | |
5364 _builder.getPointerField(1 * ::capnp::POINTERS), kj::mv(value)); | |
5365 } | |
5366 inline ::capnp::Orphan< ::piper::Framing> ConfigurationResponse::Builder::disownFraming() { | |
5367 return ::capnp::_::PointerHelpers< ::piper::Framing>::disown( | |
5368 _builder.getPointerField(1 * ::capnp::POINTERS)); | |
5186 } | 5369 } |
5187 | 5370 |
5188 inline ::int32_t ProcessRequest::Reader::getHandle() const { | 5371 inline ::int32_t ProcessRequest::Reader::getHandle() const { |
5189 return _reader.getDataField< ::int32_t>( | 5372 return _reader.getDataField< ::int32_t>( |
5190 0 * ::capnp::ELEMENTS); | 5373 0 * ::capnp::ELEMENTS); |