From 52da64686fb506372fa09ab562915f895cd88cb9 Mon Sep 17 00:00:00 2001 From: pommicket Date: Sun, 6 Aug 2023 14:07:53 -0400 Subject: util cleanup --- os.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'os.h') diff --git a/os.h b/os.h index 3542ffe..5af1dca 100644 --- a/os.h +++ b/os.h @@ -54,6 +54,12 @@ struct timespec time_get(void); /// sleep for a certain number of nanoseconds void time_sleep_ns(u64 ns); +/// runs xdg-open or equivalent on the given path, which can be a URL. +/// +/// returns `true` on success. +bool open_with_default_application(const char *path); +/// equivalent to POSIX function chdir, but returns `true` on success and `false` on failure. +bool change_directory(const char *path); /// free the entries generated by fs_list_directory. static void fs_dir_entries_free(FsDirectoryEntry **entries) { @@ -155,10 +161,6 @@ int process_check_status(Process **process, ProcessExitInfo *info); /// `*process` will be set to NULL. void process_kill(Process **process); -/// runs xdg-open or equivalent on the given path, which can be a URL. -/// -/// returns `true` on success. -bool open_with_default_application(const char *path); #endif // OS_H_ -- cgit v1.2.3