summaryrefslogtreecommitdiff
path: root/src/dirls.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/dirls.h')
-rw-r--r--src/dirls.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/dirls.h b/src/dirls.h
new file mode 100644
index 0000000..0067bff
--- /dev/null
+++ b/src/dirls.h
@@ -0,0 +1,17 @@
+typedef struct dirlsent {
+ char *name;
+ struct stat st;
+ char const *type;
+ STAILQ_ENTRY(dirlsent) next;
+} DIRLSENT;
+
+typedef struct dirls {
+ size_t count;
+ STAILQ_HEAD(, dirlsent) list;
+} DIRLS;
+
+void dirls_init(DIRLS *dirls);
+void dirls_free(DIRLS *dirls);
+int dirls_scan(DIRLS *dirls, char const *path, CONFIG const *conf);
+void dirls_sort(DIRLS *dirls, INDEX_SORT_COL col, INDEX_SORT_ORD ord);
+

Return to:

Send suggestions and report system problems to the System administrator.