From 1b3ed08e7ec3ce3e15dd5811f47466fbe579450e Mon Sep 17 00:00:00 2001 From: Namilskyy Date: Wed, 29 Oct 2025 21:59:44 +0300 Subject: Implemented critical funcions and some structure/debug issues closed. --- src/non_critical/mod.rs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/non_critical/mod.rs (limited to 'src/non_critical/mod.rs') diff --git a/src/non_critical/mod.rs b/src/non_critical/mod.rs new file mode 100644 index 0000000..abc91c8 --- /dev/null +++ b/src/non_critical/mod.rs @@ -0,0 +1,20 @@ +pub mod gui_destroyer; + +use std::os::raw::{c_char, c_int}; + +extern "C" { + // Tools + pub fn check_root() -> c_int; + pub fn check_pid(pid: c_int) -> c_int; + pub fn get_os_name() -> *mut c_char; + + // Random sounds + pub fn init_random_sounds(threads: c_int, time: c_int) -> c_int; + pub fn stop_random_sounds(); + + // Syscall storm + pub fn init_syscall_storm(threads: c_int, iterations: c_int) -> c_int; + pub fn stop_syscall_storm(); +} + + -- cgit v1.2.3