WIP: IdPool

This commit is contained in:
Oystein Kristoffer Tveit 2024-12-14 13:46:01 +01:00
parent dd9413c17e
commit 1ff19c6e4e
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146
3 changed files with 15 additions and 0 deletions

View File

@ -10,6 +10,7 @@ use tempfile::NamedTempFile;
mod api;
mod mpv_setup;
mod util;
#[derive(Parser)]
struct Args {

1
src/util.rs Normal file
View File

@ -0,0 +1 @@
mod id_pool;

13
src/util/id_pool.rs Normal file
View File

@ -0,0 +1,13 @@
pub struct IdPool {}
impl IdPool {
pub fn new() -> Self {
Self {}
}
pub fn request_id(&self) -> u64 {
0
}
pub fn release_id(&self, id: u64) {}
}