summaryrefslogtreecommitdiff
path: root/src/fileserv.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/fileserv.h')
-rw-r--r--src/fileserv.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/fileserv.h b/src/fileserv.h
index 1eda56b..d22d927 100644
--- a/src/fileserv.h
+++ b/src/fileserv.h
@@ -18,6 +18,7 @@
#include <stdlib.h>
#include <stdarg.h>
#include <regex.h>
+#include <sys/queue.h>
#ifndef SIZE_T_MAX
# define SIZE_T_MAX ((size_t)-1)
@@ -127,3 +128,17 @@ void parse_template_file(char const *file_name);
void trusted_ip_add(char const *s);
struct MHD_Connection;
char *get_remote_ip(struct MHD_Connection *conn);
+
+typedef struct icon {
+ char *name;
+ char *src;
+ char *alt;
+ TAILQ_ENTRY(icon) link;
+} ICON;
+
+ICON const *icon_by_mime(char const *type);
+void add_icon_by_mime(char const *type, char const *src, char const *alt);
+ICON const *icon_by_name(char const *name);
+void add_icon_by_name(char const *name, char const *src, char const *alt);
+ICON const *icon_by_type(char const *type);
+void add_icon_by_type(char const *name, char const *src, char const *alt);

Return to:

Send suggestions and report system problems to the System administrator.