concord 2.5.0

A terminal user interface client for Discord
use std::sync::atomic::AtomicBool;

use super::CaptureOutput;
use crate::discord::voice::StreamCaptureTarget;

pub(super) struct CaptureSession;

pub(super) fn list_targets() -> Result<Vec<StreamCaptureTarget>, String> {
    Err("screen capture is unsupported on this operating system".to_owned())
}

pub(super) fn start_capture(
    _target: &StreamCaptureTarget,
    _stop: &AtomicBool,
) -> Result<(CaptureSession, CaptureOutput), String> {
    Err("screen capture is unsupported on this operating system".to_owned())
}

impl CaptureSession {
    pub(super) fn stop(&mut self) -> Result<(), String> {
        Ok(())
    }
}