summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2017-11-26 18:33:36 -0800
committerMichael Pavone <pavone@retrodev.com>2017-11-26 18:33:36 -0800
commitc9b253c58788376865cc8768ba342a67b4758bcf (patch)
tree39adf638ea96e87a36cc3b9972a3f9fded77eb3d /util.h
parent3c9268353c943b32ca517945c42dfb8c0b8484f8 (diff)
Filter file list in Nuklear UI
--HG-- branch : nuklear_ui
Diffstat (limited to 'util.h')
-rw-r--r--util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/util.h b/util.h
index c8a68eb..516aba3 100644
--- a/util.h
+++ b/util.h
@@ -42,6 +42,8 @@ char is_absolute_path(char *path);
char * basename_no_extension(char *path);
//Returns the extension from a path or NULL if there is no extension
char *path_extension(char *path);
+//Returns true if the given path matches one of the extensions in the list
+uint8_t path_matches_extensions(char *path, char **ext_list, uint32_t num_exts);
//Returns the directory portion of a path or NULL if there is no directory part
char *path_dirname(char *path);
//Gets the smallest power of two that is >= a certain value, won't work for values > 0x80000000