[roll] Roll fuchsia [zxio] Add zxio_create..() variant to wrap known representation

Some users of the zxio library wish to create a new zxio object with
knowledge of the concrete type and type-specific objects on hand from
sources outside zxio-mediated protocol negotiation. These callers need a
way to inflate a zxio object around the raw pieces directly. The
inception header provided a way to do this by exposing the zxio type's
internal structure and letting callers directly initialize the object
and then use it. This change adds a pure C entry point that exposes the
initialization types but hides the structure inside the zxio library.

As the types needed to initialize an object vary by type, exposing this
operation requires either a large number of entry points or a dynamic
solution. This change uses a type enum and C's variadic arguments
feature to have a dynamically typed function. This also provides a
header-only C++ library that provides type safe wrappers around the
entry point. We should do the same for Rust and other languages wishing
to bind to zxio to make the library more usable.

Only the subset of types that are needed by fdio today are supported.
More types can be added as needed.

Several callers in fdio are updated to use this new entry point instead
of the inception.h provided facilities.

Original-Bug: 43267

Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/549883
Original-Revision: 128c0b0406fb9668d97fac29a5cec4306e563ec8
GitOrigin-RevId: fa2b687206635cdfc6a19ebf2aa5d87a81cb5b71
Change-Id: I0544519156ce7efe80513587e8d7bdc449564f1b
1 file changed
tree: e2aafa44599a5c67e6f0f3cd28ec4cbc3db23e03
  1. garnet/
  2. infra/
  3. peridot/
  4. third_party/
  5. topaz/
  6. zircon/
  7. firmware
  8. flower
  9. jiri.lock
  10. minimal
  11. prebuilts
  12. README.md
  13. stem
  14. test_durations
README.md

Integration

This repository contains Fuchsia's Global Integration manifest files.

Making changes

All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.

Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance via the IRC channel #fuchsia on Freenode.

Obtaining the source

First install Jiri.

Next run:

$ jiri init
$ jiri import minimal https://fuchsia.googlesource.com/integration
$ jiri update

Third party

Third party projects should have their own subdirectory in ./third_party.