Skip to content

Commit

Permalink
fix: Make struct entries publicly available
Browse files Browse the repository at this point in the history
  • Loading branch information
DashieTM committed Nov 8, 2023
1 parent 337f5ad commit 79241dc
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 27 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ReSet-Lib"
version = "0.1.2"
version = "0.1.3"
edition = "2021"
description = "Data structure library for ReSet"
repository = "https://github.com/Xetibo/ReSet-Lib"
Expand Down
52 changes: 26 additions & 26 deletions src/audio/audio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ use pulse::context::introspect::{SourceOutputInfo, SinkInputInfo, SinkInfo, Sour
pub struct PulseError(&'static str);

pub struct Source {
index: u32,
name: String,
alias: String,
channels: u16,
volume: Vec<u32>,
muted: bool,
pub index: u32,
pub name: String,
pub alias: String,
pub channels: u16,
pub volume: Vec<u32>,
pub muted: bool,
}

impl Append for Source {
Expand Down Expand Up @@ -87,12 +87,12 @@ impl From<&SourceInfo<'_>> for Source {

#[derive(Debug)]
pub struct Sink {
index: u32,
name: String,
alias: String,
channels: u16,
volume: Vec<u32>,
muted: bool,
pub index: u32,
pub name: String,
pub alias: String,
pub channels: u16,
pub volume: Vec<u32>,
pub muted: bool,
}

impl Append for Sink {
Expand Down Expand Up @@ -165,13 +165,13 @@ impl From<&SinkInfo<'_>> for Sink {
}

pub struct InputStream {
index: u32,
name: String,
application_name: String,
sink_index: u32,
channels: u16,
volume: Vec<u32>,
muted: bool,
pub index: u32,
pub name: String,
pub application_name: String,
pub sink_index: u32,
pub channels: u16,
pub volume: Vec<u32>,
pub muted: bool,
}

impl Append for InputStream {
Expand Down Expand Up @@ -245,13 +245,13 @@ impl From<&SinkInputInfo<'_>> for InputStream {
}

pub struct OutputStream {
index: u32,
name: String,
application_name: String,
source_index: u32,
channels: u16,
volume: Vec<u32>,
muted: bool,
pub index: u32,
pub name: String,
pub application_name: String,
pub source_index: u32,
pub channels: u16,
pub volume: Vec<u32>,
pub muted: bool,
}

impl Append for OutputStream {
Expand Down

0 comments on commit 79241dc

Please sign in to comment.