i have no idea if any of this is better

This commit is contained in:
Mars 2025-02-18 20:01:12 -05:00
parent ea6bf62c90
commit a02ffbed47
Signed by: pupbrained
GPG key ID: 0FF5B8826803F895
7 changed files with 326 additions and 248 deletions

View file

@ -5,25 +5,27 @@
#include "../util/macros.h"
#include "../util/types.h"
using std::optional, std::expected;
/**
* @brief Get the amount of installed RAM in bytes.
*/
fn GetMemInfo() -> std::expected<u64, string>;
fn GetMemInfo() -> expected<u64, string>;
/**
* @brief Get the currently playing song metadata.
*/
fn GetNowPlaying() -> string;
fn GetNowPlaying() -> expected<string, NowPlayingError>;
/**
* @brief Get the OS version.
*/
fn GetOSVersion() -> string;
fn GetOSVersion() -> expected<string, string>;
/**
* @brief Get the current desktop environment.
*/
fn GetDesktopEnvironment() -> string;
fn GetDesktopEnvironment() -> optional<string>;
/**
* @brief Get the current window manager.