vsock_sys/
lib.rs

1/* automatically generated by rust-bindgen 0.70.1 */
2
3// Copyright 2024 The Fuchsia Authors. All rights reserved.
4// Use of this source code is governed by a BSD-style license that can be
5// found in the LICENSE file.
6
7#![allow(dead_code)]
8#![allow(non_camel_case_types)]
9#![allow(non_snake_case)]
10#![allow(non_upper_case_globals)]
11
12//! WARNING - This file was auto generated by //src/paravirtualization/lib/vsock/vsock_sys/generate.py.
13//! Do not modify this file. To re-generate, run the following command from the root of
14//! your Fuchsia checkout:
15//!
16//!    ./src/paravirtualization/lib/vsock/vsock_sys/generate.py
17
18pub type zx_status_t = i32;
19extern "C" {
20    pub fn create_virtio_stream_socket(out_fd: *mut ::std::os::raw::c_int) -> zx_status_t;
21}
22pub type sa_family_t = ::std::os::raw::c_ushort;
23#[repr(C)]
24#[derive(Debug, Default, Copy, Clone)]
25pub struct sockaddr_vm {
26    pub svm_family: sa_family_t,
27    pub svm_reserved1: ::std::os::raw::c_ushort,
28    pub svm_port: ::std::os::raw::c_uint,
29    pub svm_cid: ::std::os::raw::c_uint,
30    pub svm_zero: [::std::os::raw::c_uchar; 4usize],
31}