types: Add Custom{Build,Read,Pass}Message hooks #105

pull ryanofsky wants to merge 1 commits into bitcoin-core:master from ryanofsky:pr/mess changing 5 files +146 −0
  1. ryanofsky commented at 9:02 PM on July 24, 2024: collaborator

    Add CustomBuildMessage, CustomReadMessage, and CustomPassMessage hook functions. These functions can be defined to use custom code to convert C++ objects to and from Cap'n Proto messages. They work similarly to existing CustomBuildField, CustomReadField, and CustomPassField hooks, except they can be defined as normal functions not template functions, so they should be easier to use and require less verbosity in most cases, although they are less flexible.

    The unit tests added here are new but the feature was originally implemented in https://github.com/bitcoin/bitcoin/pull/10102 but and is being ported because it's a general purpose feature.

  2. types: Add Custom{Build,Read,Pass}Message hooks
    Add CustomBuildMessage, CustomReadMessage, and CustomPassMessage hook
    functions. These functions can be defined to use custom code to convert C++
    objects to and from Cap'n Proto messages. They work similarly to existing
    CustomBuildField, CustomReadField, and CustomPassField hooks, except they can
    be defined as normal functions not template functions, so they should be easier
    to use and require less verbosity in most cases, although they are less
    flexible.
    
    The unit tests added here are new but the feature was originally implemented in
    https://github.com/bitcoin/bitcoin/pull/10102 but and is being ported because
    it's a general purpose feature.
    ca2cfedd2b
  3. ryanofsky merged this on Jul 24, 2024
  4. ryanofsky closed this on Jul 24, 2024

  5. ryanofsky referenced this in commit ad0ddfc5ed on Jul 24, 2024
  6. ryanofsky referenced this in commit 8678ddae66 on Jul 26, 2024
  7. ryanofsky referenced this in commit d74c4e7fd0 on Aug 8, 2024
  8. ryanofsky referenced this in commit ef57db8711 on Aug 9, 2024
  9. Sjors referenced this in commit eb3ea306f8 on Aug 13, 2024
  10. Sjors referenced this in commit 664860e111 on Aug 13, 2024
  11. ryanofsky referenced this in commit 746b97124b on Sep 6, 2024
  12. ryanofsky referenced this in commit 8d5802c713 on Sep 6, 2024
  13. ryanofsky referenced this in commit 4da20434d4 on Sep 6, 2024
  14. ryanofsky referenced this in commit d04d4f9aa9 on Sep 6, 2024
  15. ryanofsky referenced this in commit 6b3464b7af on Sep 6, 2024
  16. ryanofsky referenced this in commit d0f47d1103 on Sep 6, 2024
  17. ryanofsky referenced this in commit 357a6bc97b on Sep 9, 2024
  18. ryanofsky referenced this in commit 210700f319 on Sep 10, 2024
  19. ryanofsky referenced this in commit 0f301ef9aa on Sep 19, 2024
  20. janus referenced this in commit dab2532139 on Jan 12, 2025
  21. bitcoin-core locked this on Jul 24, 2025
Contributors

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin-core/libmultiprocess. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-20 18:30 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me