summaryrefslogtreecommitdiff
path: root/body/c_fl_filename.h
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2025-01-21 21:04:54 +1300
committerJedidiah Barber <contact@jedbarber.id.au>2025-01-21 21:04:54 +1300
commitb4438b2fbe895694be98e6e8426103deefc51448 (patch)
tree760d86cd7c06420a91dad102cc9546aee73146fc /body/c_fl_filename.h
parenta4703a65b015140cd4a7a985db66264875ade734 (diff)
Split public API and private implementation files into different directories
Diffstat (limited to 'body/c_fl_filename.h')
-rw-r--r--body/c_fl_filename.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/body/c_fl_filename.h b/body/c_fl_filename.h
new file mode 100644
index 0000000..0839293
--- /dev/null
+++ b/body/c_fl_filename.h
@@ -0,0 +1,39 @@
+
+
+// Programmed by Jedidiah Barber
+// Released into the public domain
+
+
+#ifndef FL_FILENAME_GUARD
+#define FL_FILENAME_GUARD
+
+
+extern "C" const int fl_path_max;
+
+
+extern "C" void free_filename_file_list(void * l, int n);
+extern "C" const char * filename_dname(void * l, int n);
+
+
+extern "C" void filename_decode_uri(char *uri);
+extern "C" int filename_absolute(char * to, int tolen, const char * from);
+extern "C" int filename_expand(char * to, int tolen, const char * from);
+extern "C" const char * filename_ext(const char * buf);
+extern "C" int filename_isdir(const char * name);
+extern "C" int filename_list(const char * d, void * l, void * f);
+extern "C" int filename_match(const char * name, const char * pattern);
+extern "C" const char * filename_name(const char * name);
+extern "C" int filename_relative(char * to, int tolen, const char * from);
+extern "C" char * filename_setext(char * to, int tolen, const char * ext);
+extern "C" int filename_open_uri(const char * uri, char * msg, int msglen);
+
+
+extern "C" int filename_alphasort(char * a, char * b);
+extern "C" int filename_casealphasort(char * a, char * b);
+extern "C" int filename_numericsort(char * a, char * b);
+extern "C" int filename_casenumericsort(char * a, char * b);
+
+
+#endif
+
+