diff options
author | pommicket <pommicket@gmail.com> | 2023-08-06 14:07:53 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-08-06 14:07:53 -0400 |
commit | 52da64686fb506372fa09ab562915f895cd88cb9 (patch) | |
tree | 24c2ca40227ddc0ad92adced2432930d4beed729 /os.h | |
parent | b4e2b3d2407cbad54169da707f72595246e4794a (diff) |
util cleanup
Diffstat (limited to 'os.h')
-rw-r--r-- | os.h | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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_ |