From 156f1d4e52f475b4db9e7a2c2874cf70919b9349 Mon Sep 17 00:00:00 2001 From: 4lDO2 <4lDO2@protonmail.com> Date: Mon, 18 Jul 2022 16:17:49 +0200 Subject: [PATCH] Use redox-daemon --- Cargo.lock | 17 +++++++++++++++++ Cargo.toml | 1 + src/main.rs | 4 +++- 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index 19ebb1ff1f..dc0602c075 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6,6 +6,7 @@ version = 3 name = "audiod" version = "0.1.0" dependencies = [ + "redox-daemon", "redox_syscall", ] @@ -15,6 +16,22 @@ version = "1.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" +[[package]] +name = "libc" +version = "0.2.126" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "349d5a591cd28b49e1d1037471617a32ddcda5731b99419008085f72d5a53836" + +[[package]] +name = "redox-daemon" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "21e31c834277709c7ff3eb74959fe62be4b45b1189ba9d41fd3744cd3a9c554f" +dependencies = [ + "libc", + "redox_syscall", +] + [[package]] name = "redox_syscall" version = "0.2.16" diff --git a/Cargo.toml b/Cargo.toml index 81a94f6ccb..11b15edd24 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,4 +5,5 @@ authors = ["Jeremy Soller "] edition = "2018" [dependencies] +redox-daemon = "0.1" redox_syscall = "0.2.12" diff --git a/src/main.rs b/src/main.rs index ea54fd356f..db60ff1d44 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3,11 +3,13 @@ extern crate syscall; use std::{fs, io, mem, process, slice, thread}; use std::io::{Read, Write}; use std::sync::{Arc, Mutex}; + use syscall::data::{Packet, SigAction}; -use syscall::daemon::Daemon; use syscall::flag::{SigActionFlags, SIGUSR1}; use syscall::scheme::SchemeBlockMut; +use redox_daemon::Daemon; + use self::scheme::AudioScheme; mod scheme;