i have no idea if any of this is better
This commit is contained in:
parent
ea6bf62c90
commit
a02ffbed47
7 changed files with 326 additions and 248 deletions
10
src/os/os.h
10
src/os/os.h
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue