commit | bf5153eb2a7bfbf9b4a79caf515278458f830c1d | [log] [tgz] |
---|---|---|
author | Stephen Demos <sdemos@google.com> | Fri May 17 22:25:58 2019 +0000 |
committer | CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org> | Fri May 17 22:25:58 2019 +0000 |
tree | a75552e1bcdd12c8900e75b02e5e86034f052464 | |
parent | 1cd2411aa16d8965ee679a6d287ddaf69499a86a [diff] |
[fuchsia-runtime] add HandleId type for startup handles In C, PA_HND creates a handle id that contains a handle type an an optional argument. In rust, the create_handle_id function did the same thing as PA_HND, but it returned a simple u32, which couldn't be used with any of the rust functions that took a variant of HandleType. The equivalent C functions that take a handle type also take that optional argument. This creates a type HandleId, which is a struct with a u32 element, created by HandleId::create (renamed from create_handle_id). Functions that took a HandleType are changed to take a HandleId instead. A From<HandleType> implementation is provided for HandleId, which sets the argument to 0. Change-Id: I31293e7f6d783317ce2701eb9ad2205c64f82ac7
Pink + Purple == Fuchsia (a new operating system)
Fuchsia is a modular, capability-based operating system. Fuchsia runs on modern 64-bit Intel and ARM processors.
Fuchsia is an open source project with a code of conduct that we expect everyone who interacts with the project to respect.
See Getting Started.
See the documentation.