diff options
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_ |