summaryrefslogtreecommitdiff
path: root/os.h
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-08-06 14:07:53 -0400
committerpommicket <pommicket@gmail.com>2023-08-06 14:07:53 -0400
commit52da64686fb506372fa09ab562915f895cd88cb9 (patch)
tree24c2ca40227ddc0ad92adced2432930d4beed729 /os.h
parentb4e2b3d2407cbad54169da707f72595246e4794a (diff)
util cleanup
Diffstat (limited to 'os.h')
-rw-r--r--os.h10
1 files changed, 6 insertions, 4 deletions
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_