Files
rk35xx-android14/external/libchrome/mojo/public/interfaces/bindings/native_struct.mojom
T
hmz007 36ed224bac Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a)
Signed-off-by: hmz007 <hmz007@gmail.com>
Change-Id: Ib87fdbe7a0be7dc961af3500fe9ea4589a127f9f
2024-10-29 18:12:02 +08:00

27 lines
507 B
Plaintext

// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
[JavaPackage="org.chromium.mojo.native_types"]
module mojo.native;
struct SerializedHandle {
handle the_handle;
enum Type {
MOJO_HANDLE,
PLATFORM_FILE,
WIN_HANDLE,
MACH_PORT,
FUCHSIA_HANDLE,
};
Type type;
};
[CustomSerializer]
struct NativeStruct {
array<uint8> data;
array<SerializedHandle>? handles;
};