Codec manipulation | |
| int | mm_codec_hasdecoder (const char *encoding) |
| int | mm_codec_hasencoder (const char *encoding) |
| int | mm_codec_isregistered (const char *encoding) |
| int | mm_codec_register (const char *encoding, char *(*encoder)(char *data, u_int32_t i), char *(*decoder)(char *data)) |
| int | mm_codec_unregister (const char *encoding) |
| int | mm_codec_unregisterall (void) |
| void | mm_codec_registerdefaultcodecs (void) |
| int mm_codec_hasdecoder | ( | const char * | encoding | ) |
Looks up whether a context has an decoder installed for a given encoding
| encoding | The encoding specifier to look up |
| int mm_codec_hasencoder | ( | const char * | encoding | ) |
Looks up whether a context has an encoder installed for a given encoding
| ctx | A valid MIME context | |
| encoding | The encoding specifier to look up |
| int mm_codec_isregistered | ( | const char * | encoding | ) |
Looks up whether a codec for a given encoding is installed to a context
| encoding | The encoding specifier to look up |
| int mm_codec_register | ( | const char * | encoding, | |
| char *(*)(char *data, u_int32_t i) | encoder, | |||
| char *(*)(char *data) | decoder | |||
| ) |
Registers a codec with the MiniMIME library
| encoding | The encoding specifier for which to register the codec | |
| encoder | The encoder function for this encoding | |
| decoder | The decoder function for this encoding |
| void mm_codec_registerdefaultcodecs | ( | void | ) |
Registers the default codecs to a MiniMIME context
This functions registers the codecs for the following encodings to a MiniMIME context:
| int mm_codec_unregister | ( | const char * | encoding | ) |
Unregisters a MiniMIME codec
| encoding | The encoding specifier which to unregister |
| int mm_codec_unregisterall | ( | void | ) |
Unregisters all codecs within a context
| ctx | A valid MiniMIME context |
1.5.1