1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
// Copyright 2018 The ChromiumOS Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

//! A crate for handling 2D and 3D virtio-gpu hypercalls, along with graphics
//! swapchain allocation and mapping.

mod cross_domain;
mod generated;
mod gfxstream;
mod gfxstream_stub;
#[macro_use]
mod macros;
mod bytestream;
mod ipc;
#[cfg(any(feature = "gfxstream", feature = "virgl_renderer"))]
mod renderer_utils;
mod rutabaga_2d;
mod rutabaga_core;
mod rutabaga_gralloc;
mod rutabaga_os;
mod rutabaga_utils;
mod virgl_renderer;

pub use crate::rutabaga_core::calculate_capset_mask;
pub use crate::rutabaga_core::calculate_capset_names;
pub use crate::rutabaga_core::Rutabaga;
pub use crate::rutabaga_core::RutabagaBuilder;
pub use crate::rutabaga_gralloc::DrmFormat;
pub use crate::rutabaga_gralloc::ImageAllocationInfo;
pub use crate::rutabaga_gralloc::ImageMemoryRequirements;
pub use crate::rutabaga_gralloc::RutabagaGralloc;
pub use crate::rutabaga_gralloc::RutabagaGrallocBackendFlags;
pub use crate::rutabaga_gralloc::RutabagaGrallocFlags;
pub use crate::rutabaga_os::AsBorrowedDescriptor as RutabagaAsBorrowedDescriptor;
pub use crate::rutabaga_os::AsRawDescriptor;
pub use crate::rutabaga_os::FromRawDescriptor as RutabagaFromRawDescriptor;
pub use crate::rutabaga_os::IntoRawDescriptor as RutabagaIntoRawDescriptor;
pub use crate::rutabaga_os::MappedRegion as RutabagaMappedRegion;
pub use crate::rutabaga_os::OwnedDescriptor as RutabagaDescriptor;
pub use crate::rutabaga_os::RawDescriptor as RutabagaRawDescriptor;
pub use crate::rutabaga_utils::*;

pub mod kumquat_support {
    pub use crate::bytestream::Reader as RutabagaReader;
    pub use crate::bytestream::Writer as RutabagaWriter;
    pub use crate::ipc::kumquat_gpu_protocol;
    pub use crate::ipc::RutabagaStream;
    pub use crate::rutabaga_os::Event as RutabagaEvent;
    pub use crate::rutabaga_os::Listener as RutabagaListener;
    pub use crate::rutabaga_os::MemoryMapping as RutabagaMemoryMapping;
    pub use crate::rutabaga_os::SharedMemory as RutabagaSharedMemory;
    pub use crate::rutabaga_os::Tube as RutabagaTube;
    pub use crate::rutabaga_os::TubeType as RutabagaTubeType;
    pub use crate::rutabaga_os::WaitContext as RutabagaWaitContext;
    pub use crate::rutabaga_os::WaitTimeout as RutabagaWaitTimeout;
    pub use crate::rutabaga_os::WritePipe as RutabagaWritePipe;
    pub use crate::rutabaga_os::DEFAULT_RAW_DESCRIPTOR as RUTABAGA_DEFAULT_RAW_DESCRIPTOR;
}