api: move highlevel functions into extension

This commit is contained in:
2024-04-30 00:41:16 +02:00
parent aacde5df12
commit 75645c5880
8 changed files with 277 additions and 261 deletions

View File

@@ -1,5 +1,5 @@
use env_logger;
use mpvipc::{Error as MpvError, Mpv};
use mpvipc::{Error as MpvError, Mpv, MpvExt};
#[tokio::main]
async fn main() -> Result<(), MpvError> {

View File

@@ -1,5 +1,5 @@
use env_logger;
use mpvipc::{Error, Event, Mpv, MpvDataType, Property};
use mpvipc::{Error, Event, Mpv, MpvExt, MpvDataType, Property};
use std::io::{self, Write};
fn seconds_to_hms(total: f64) -> String {