#include "common.h"
#include <errno.h>
#include <string.h>
#include "mime.h"
#include "char_xhash.h"
#include "conftable.h"
#include "logger.h"
#include "misc.h"
#include "xmalloc.h"
Include dependency graph for mime.c:

Go to the source code of this file.
Functions | |
| int | mimeInit (const char *mime_types_file) |
| initialise global MIME table. More... | |
| char * | mimeLookup (const char *file_ext) |
| look up the MIME type for a given file extension. More... | |
| int | mimeTerminate () |
| destroys the gobal MIME type table. More... | |
Variables | |
| CharHashTab | mime_tab |
| hash table storing file extensions and the corresponding mime types. | |
Definition in file mime.c.
|
|
initialise global MIME table.
mimeInit reads the mime.types definition file and creates the global file extension to MIME type mapping table.
|
|
|
look up the MIME type for a given file extension.
|
|
|
destroys the gobal MIME type table.
This destroys the global MIME type table and frees all of it's allocated ressources.
|
1.2.11.1 written by Dimitri van Heesch,
© 1997-2001