web_mime.c File : web_mime.c
Description : Mime Type Structure
Category : Web Internal
Author : Charles Yates
MIME_Init WEB_MIME MIME_Init( char *file )
Function : MIME_Init
Description : Initialises a MIME type structure
Input : char *file - mime.types file location
Output : void
Returns : An initialised MIME type structure
MIME_GetType char *MIME_GetType( WEB_MIME mime, char *file )
Function : MIME_GetType
Description : Returns the mime type of the file given as input
Input : WEB_MIME mime - mime structure to query
char *file - file to inquire on
Output : void
Returns : a pointer to the mime type or the standard if not found
MIME_Close void MIME_Close( WEB_MIME mime )
Function : MIME_Close
Description : Closes the mime structure
Input : WEB_MIME mime - mime structure to close
Output : mime is destroyed
Returns : void
|