You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lighttpd2/include/lighttpd/mimetype.h

20 lines
645 B
C

#ifndef _LIGHTTPD_MIMETYPE_H_
#define _LIGHTTPD_MIMETYPE_H_
struct liMimetypeNode {
13 years ago
guchar cmin;
guchar cmax;
gpointer *children; /* array of either liMimetypeNode* or GString* */
GString *mimetype;
};
typedef struct liMimetypeNode liMimetypeNode;
LI_API liMimetypeNode *li_mimetype_node_new(void);
LI_API void li_mimetype_node_free(liMimetypeNode *node);
LI_API void li_mimetype_insert(liMimetypeNode *node, GString *suffix, GString *mimetype);
/* looks up the mimetype for a filename by comparing suffixes. longest match is returned. do not free the result */
LI_API GString *li_mimetype_get(liVRequest *vr, GString *filename);
#endif