Dallas Semiconductor DS80C400 C Libraries Home Page

Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals

tini400_mime.h File Reference


Detailed Description

MIME Library functions for DS80C400 processor.

This library contains functions for encoding and decoding mime messages

For detailed information on the DS80C400 please see the High-Speed Microcontroller User's Guide: DS80C400 Supplement.

Warning:
The functions in this library are NOT multi-process safe--that is, if you call the same method from two different processes at the same time, the parameters to the function may be destroyed, yielding unpredictable results.

Go to the source code of this file.

Defines

#define BASE64   1
#define QUOTED_PRINTABLE   2
#define MIME_VERSION   1

Functions

void mime_init (void)
 Initializes mime library.
char * mime_encode (unsigned char far *inbuf, unsigned int size, char encode_flag)
 Encodes the given message to mime format.
char * mime_decode (char far *inbuf, char decode_flag)
 Decodes the given mime message.


Define Documentation

#define BASE64   1
 

Definition for mime base64 encoding and decoding method

See also:
mime_encode, mime_decode

#define MIME_VERSION   1
 

Version number associated with this header file. Should be the same as the version number returned by the mime_version function.

See also:
mime_version

#define QUOTED_PRINTABLE   2
 

Definition for mime quoted printable encoding and decoding method

See also:
mime_encode, mime_decode


Function Documentation

char* mime_decode char far *  inbuf,
char  decode_flag
 

Decodes the given mime message.

See RFC1521 for more information on MIME

Parameters:
inbuf - mime message to decode
decode_flag - decoding flag indicates what decoding method to be used, should be either BASE64 or QUOTED_PRINTABLE
Returns:
address of decoded message buffer or NULL if function failed

char* mime_encode unsigned char far *  inbuf,
unsigned int  size,
char  encode_flag
 

Encodes the given message to mime format.

See RFC1521 for more information on MIME

Parameters:
inbuf input buffer to encode
size length of the input buffer
encode_flag not used, reserved for future use
Returns:
address of encoded mime message buffer or NULL if function failed


Copyright 2005 Dallas Semiconductor, Inc.. Documentation generated by Doxygen.