| // services/network/public/mojom/network_interface.mojom-lite.js is auto generated by mojom_bindings_generator.py, do not edit |
| |
| // Copyright 2018 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. |
| 'use strict'; |
| |
| |
| mojo.internal.exportModule('network.mojom'); |
| |
| |
| |
| |
| |
| |
| |
| /** |
| * @const { {$:!mojo.internal.MojomType}} |
| * @export |
| */ |
| network.mojom.NetworkInterfaceSpec = |
| { $: /** @type {!mojo.internal.MojomType} */ ({}) }; |
| |
| |
| |
| |
| mojo.internal.Struct( |
| network.mojom.NetworkInterfaceSpec.$, |
| 'NetworkInterface', |
| [ |
| mojo.internal.StructField( |
| 'name', 0, |
| 0, |
| mojo.internal.String, |
| null, |
| false /* nullable */), |
| mojo.internal.StructField( |
| 'friendlyName', 8, |
| 0, |
| mojo.internal.String, |
| null, |
| false /* nullable */), |
| mojo.internal.StructField( |
| 'interfaceIndex', 16, |
| 0, |
| mojo.internal.Uint32, |
| 0, |
| false /* nullable */), |
| mojo.internal.StructField( |
| 'type', 20, |
| 0, |
| network.mojom.ConnectionTypeSpec.$, |
| 0, |
| false /* nullable */), |
| mojo.internal.StructField( |
| 'address', 24, |
| 0, |
| network.mojom.IPAddressSpec.$, |
| null, |
| false /* nullable */), |
| mojo.internal.StructField( |
| 'prefixLength', 32, |
| 0, |
| mojo.internal.Uint32, |
| 0, |
| false /* nullable */), |
| mojo.internal.StructField( |
| 'ipAddressAttributes', 36, |
| 0, |
| mojo.internal.Int32, |
| 0, |
| false /* nullable */), |
| ], |
| [[0, 48],]); |
| |
| |
| |
| |
| |
| /** @record */ |
| network.mojom.NetworkInterface = class { |
| constructor() { |
| /** @export { !string } */ |
| this.name; |
| /** @export { !string } */ |
| this.friendlyName; |
| /** @export { !number } */ |
| this.interfaceIndex; |
| /** @export { !network.mojom.ConnectionType } */ |
| this.type; |
| /** @export { !network.mojom.IPAddress } */ |
| this.address; |
| /** @export { !number } */ |
| this.prefixLength; |
| /** @export { !number } */ |
| this.ipAddressAttributes; |
| } |
| }; |
| |
| |