1 // Copyright 2023 The ChromiumOS Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 use std::fmt;
6
7 use audio_streams::StreamSourceGenerator;
8 use serde::Serialize;
9
10 use crate::args::*;
11 use crate::error::Error;
12
13 #[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize)]
14 pub enum StreamSource {}
15
16 #[derive(Copy, Clone, Debug, Serialize)]
17 pub enum StreamSourceParam {}
18
19 impl TryFrom<&str> for StreamSource {
20 type Error = Error;
21
try_from(_s: &str) -> Result<Self, Self::Error>22 fn try_from(_s: &str) -> Result<Self, Self::Error> {
23 todo!();
24 }
25 }
26
27 impl fmt::Display for StreamSource {
fmt(&self, f: &mut fmt::Formatter) -> fmt::Result28 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
29 write!(f, "StreamSource")
30 }
31 }
32
create_stream_source_generator( _stream_source: StreamSource, _args: &Args, ) -> Box<dyn StreamSourceGenerator>33 pub(crate) fn create_stream_source_generator(
34 _stream_source: StreamSource,
35 _args: &Args,
36 ) -> Box<dyn StreamSourceGenerator> {
37 todo!();
38 }
39