diff options
Diffstat (limited to 'include/path.h')
| -rw-r--r-- | include/path.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/path.h b/include/path.h new file mode 100644 index 0000000..e76a654 --- /dev/null +++ b/include/path.h @@ -0,0 +1,22 @@ +#ifndef ECEX_PATH_H +#define ECEX_PATH_H + +#include <stddef.h> + +int ecex_path_copy(char *out, size_t out_size, const char *text); +char *ecex_path_expand_user(const char *path); +char *ecex_path_join(const char *dir, const char *name); +char *ecex_path_dirname(const char *path); +char *ecex_path_basename_dup(const char *path); +char *ecex_path_normalize(const char *path); +int ecex_path_is_dir(const char *path); +int ecex_path_is_file(const char *path); +int ecex_path_exists(const char *path); +long long ecex_path_file_size(const char *path); +int ecex_path_is_image(const char *path); +int ecex_path_is_previewable_image(const char *path); +int ecex_path_is_video(const char *path); +int ecex_path_is_media(const char *path); +int ecex_path_cwd(char *out, size_t out_size); + +#endif |
