um i think this owrks

This commit is contained in:
Mars 2025-04-23 21:47:25 -04:00
parent cf51e3e569
commit 2219182539
9 changed files with 306 additions and 334 deletions

View file

@ -3,53 +3,55 @@
#include "../util/macros.h"
#include "../util/types.h"
/**
* @brief Get the amount of installed RAM in bytes.
*/
fn GetMemInfo() -> Result<u64, String>;
namespace os {
/**
* @brief Get the amount of installed RAM in bytes.
*/
fn GetMemInfo() -> Result<u64, String>;
/**
* @brief Get the currently playing song metadata.
*/
fn GetNowPlaying() -> Result<String, NowPlayingError>;
/**
* @brief Get the currently playing song metadata.
*/
fn GetNowPlaying() -> Result<String, NowPlayingError>;
/**
* @brief Get the OS version.
*/
fn GetOSVersion() -> Result<String, String>;
/**
* @brief Get the OS version.
*/
fn GetOSVersion() -> Result<String, String>;
/**
* @brief Get the current desktop environment.
*/
fn GetDesktopEnvironment() -> Option<String>;
/**
* @brief Get the current desktop environment.
*/
fn GetDesktopEnvironment() -> Option<String>;
/**
* @brief Get the current window manager.
*/
fn GetWindowManager() -> String;
/**
* @brief Get the current window manager.
*/
fn GetWindowManager() -> String;
/**
* @brief Get the current shell.
*/
fn GetShell() -> String;
/**
* @brief Get the current shell.
*/
fn GetShell() -> String;
/**
* @brief Get the product family
*/
fn GetHost() -> String;
/**
* @brief Get the product family
*/
fn GetHost() -> String;
/**
* @brief Get the kernel version.
*/
fn GetKernelVersion() -> String;
/**
* @brief Get the kernel version.
*/
fn GetKernelVersion() -> String;
/**
* @brief Get the number of installed packages.
*/
fn GetPackageCount() -> u64;
/**
* @brief Get the number of installed packages.
*/
fn GetPackageCount() -> u64;
/**
* @brief Get the current disk usage.
* @return std::pair<u64, u64> Used space/total space
*/
fn GetDiskUsage() -> Pair<u64, u64>;
/**
* @brief Get the current disk usage.
* @return std::pair<u64, u64> Used space/total space
*/
fn GetDiskUsage() -> Pair<u64, u64>;
}