Initial MetaCrate rewrite shell
This commit is contained in:
15
crates/libremetaverse-voice-webrtc/Cargo.toml
Normal file
15
crates/libremetaverse-voice-webrtc/Cargo.toml
Normal file
@@ -0,0 +1,15 @@
|
||||
[package]
|
||||
name = "libremetaverse-voice-webrtc"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
rust-version.workspace = true
|
||||
license.workspace = true
|
||||
repository.workspace = true
|
||||
description = "WebRTC voice shims for the MetaCrate LibreMetaverse rewrite"
|
||||
|
||||
[dependencies]
|
||||
libremetaverse = { path = "../libremetaverse" }
|
||||
libremetaverse-structured-data = { path = "../libremetaverse-structured-data" }
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
106
crates/libremetaverse-voice-webrtc/src/generated.rs
Normal file
106
crates/libremetaverse-voice-webrtc/src/generated.rs
Normal file
@@ -0,0 +1,106 @@
|
||||
// @generated by tools/generate_surface.py; do not edit by hand.
|
||||
// Source: LibreMetaverse 2aa70bb68513b39795da5d13c88f31b86e85a3ba
|
||||
#![allow(non_camel_case_types)]
|
||||
|
||||
/// `class` shim for C# `LibreMetaverse.Voice.WebRTC.AvatarPosition`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
pub struct AvatarPosition;
|
||||
impl AvatarPosition {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.WebRTC.AvatarPosition";
|
||||
pub const CSHARP_KIND: &'static str = "class";
|
||||
}
|
||||
|
||||
/// `enum` shim for C# `LibreMetaverse.Voice.WebRTC.ESessionType`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
pub struct ESessionType;
|
||||
impl ESessionType {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.WebRTC.ESessionType";
|
||||
pub const CSHARP_KIND: &'static str = "enum";
|
||||
}
|
||||
|
||||
/// Shim for C# `LibreMetaverse.Voice.WebRTC.IVoiceLogger`.
|
||||
pub trait IVoiceLogger {
|
||||
const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.WebRTC.IVoiceLogger";
|
||||
}
|
||||
|
||||
/// `struct` shim for C# `LibreMetaverse.Voice.WebRTC.Int3`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
pub struct Int3;
|
||||
impl Int3 {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.WebRTC.Int3";
|
||||
pub const CSHARP_KIND: &'static str = "struct";
|
||||
}
|
||||
|
||||
/// `struct` shim for C# `LibreMetaverse.Voice.WebRTC.Int4`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
pub struct Int4;
|
||||
impl Int4 {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.WebRTC.Int4";
|
||||
pub const CSHARP_KIND: &'static str = "struct";
|
||||
}
|
||||
|
||||
/// `class` shim for C# `LibreMetaverse.Voice.WebRTC.LibreMetaverseVoiceLogger`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
pub struct LibreMetaverseVoiceLogger;
|
||||
impl LibreMetaverseVoiceLogger {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.WebRTC.LibreMetaverseVoiceLogger";
|
||||
pub const CSHARP_KIND: &'static str = "class";
|
||||
}
|
||||
|
||||
/// `class` shim for C# `LibreMetaverse.Voice.WebRTC.OpusDecoderContext`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
pub struct OpusDecoderContext;
|
||||
impl OpusDecoderContext {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.WebRTC.OpusDecoderContext";
|
||||
pub const CSHARP_KIND: &'static str = "class";
|
||||
}
|
||||
|
||||
/// `class` shim for C# `LibreMetaverse.Voice.WebRTC.PeerAudioState`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
pub struct PeerAudioState;
|
||||
impl PeerAudioState {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.WebRTC.PeerAudioState";
|
||||
pub const CSHARP_KIND: &'static str = "class";
|
||||
}
|
||||
|
||||
/// `class` shim for C# `LibreMetaverse.Voice.WebRTC.PeerManager`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
pub struct PeerManager;
|
||||
impl PeerManager {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.WebRTC.PeerManager";
|
||||
pub const CSHARP_KIND: &'static str = "class";
|
||||
}
|
||||
|
||||
/// `class` shim for C# `LibreMetaverse.Voice.WebRTC.VoiceException`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
pub struct VoiceException;
|
||||
impl VoiceException {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.WebRTC.VoiceException";
|
||||
pub const CSHARP_KIND: &'static str = "class";
|
||||
}
|
||||
|
||||
/// `class` shim for C# `LibreMetaverse.Voice.WebRTC.VoiceManager`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
pub struct VoiceManager;
|
||||
impl VoiceManager {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.WebRTC.VoiceManager";
|
||||
pub const CSHARP_KIND: &'static str = "class";
|
||||
}
|
||||
|
||||
/// `class` shim for C# `LibreMetaverse.Voice.WebRTC.VoiceSession`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
pub struct VoiceSession;
|
||||
impl VoiceSession {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.Voice.WebRTC.VoiceSession";
|
||||
pub const CSHARP_KIND: &'static str = "class";
|
||||
}
|
||||
|
||||
pub mod libre_metaverse {
|
||||
/// `class` shim for C# `LibreMetaverse.AudioDevice`; members remain intentionally unimplemented.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
|
||||
pub struct AudioDevice;
|
||||
impl AudioDevice {
|
||||
pub const CSHARP_NAME: &'static str = "LibreMetaverse.AudioDevice";
|
||||
pub const CSHARP_KIND: &'static str = "class";
|
||||
}
|
||||
}
|
||||
7
crates/libremetaverse-voice-webrtc/src/lib.rs
Normal file
7
crates/libremetaverse-voice-webrtc/src/lib.rs
Normal file
@@ -0,0 +1,7 @@
|
||||
//! WebRTC voice adapter corresponding to `LibreMetaverse.Voice.WebRTC`.
|
||||
|
||||
mod generated;
|
||||
|
||||
pub use generated::*;
|
||||
pub use libremetaverse as core;
|
||||
pub use libremetaverse_structured_data as structured_data;
|
||||
Reference in New Issue
Block a user