blob: c6a285293c34a2c1c596c3a43c17c36db744a9e1 [file] [log] [blame]
// 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;
enum SerializedHandleType {
MOJO_HANDLE,
PLATFORM_FILE,
WIN_HANDLE,
MACH_PORT,
FUCHSIA_HANDLE,
};
struct SerializedHandle {
handle the_handle;
SerializedHandleType type;
};
[CustomSerializer]
struct NativeStruct {
array<uint8> data;
array<SerializedHandle>? handles;
};