Initial commit
This commit is contained in:
41
application/target/mimeTypes.h
Normal file
41
application/target/mimeTypes.h
Normal file
@@ -0,0 +1,41 @@
|
||||
#ifndef _mimeTypes
|
||||
|
||||
#define _mimeTypes
|
||||
|
||||
|
||||
// Macros
|
||||
|
||||
|
||||
|
||||
#include "stdlib.h"
|
||||
|
||||
extern char * __ClassNames[];
|
||||
|
||||
|
||||
// Includes
|
||||
|
||||
#include "array.h"
|
||||
|
||||
|
||||
typedef struct mimeTypes{
|
||||
|
||||
unsigned short __classIndex;
|
||||
|
||||
array * extensions;
|
||||
|
||||
array * mimeTypes;
|
||||
|
||||
|
||||
} mimeTypes;
|
||||
|
||||
void mimeTypes_constructor( mimeTypes * this );
|
||||
|
||||
void mimeTypes_add( mimeTypes * this, char * extension, char * mimeType );
|
||||
|
||||
char * mimeTypes_getByExtension( mimeTypes * this, char * extension );
|
||||
|
||||
mimeTypes mimeTypes_new( );
|
||||
|
||||
mimeTypes * mimeTypes_newPointer( );
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user