libkcal

sspm.h File Reference

Go to the source code of this file.


Classes

struct  sspm_action_map
struct  sspm_header
struct  sspm_part

Enumerations

enum  sspm_encoding {
  SSPM_NO_ENCODING, SSPM_QUOTED_PRINTABLE_ENCODING, SSPM_8BIT_ENCODING, SSPM_7BIT_ENCODING,
  SSPM_BINARY_ENCODING, SSPM_BASE64_ENCODING, SSPM_UNKNOWN_ENCODING
}
enum  sspm_error {
  SSPM_NO_ERROR, SSPM_UNEXPECTED_BOUNDARY_ERROR, SSPM_WRONG_BOUNDARY_ERROR, SSPM_NO_BOUNDARY_ERROR,
  SSPM_NO_HEADER_ERROR, SSPM_MALFORMED_HEADER_ERROR
}
enum  sspm_major_type {
  SSPM_NO_MAJOR_TYPE, SSPM_TEXT_MAJOR_TYPE, SSPM_IMAGE_MAJOR_TYPE, SSPM_AUDIO_MAJOR_TYPE,
  SSPM_VIDEO_MAJOR_TYPE, SSPM_APPLICATION_MAJOR_TYPE, SSPM_MULTIPART_MAJOR_TYPE, SSPM_MESSAGE_MAJOR_TYPE,
  SSPM_UNKNOWN_MAJOR_TYPE
}
enum  sspm_minor_type {
  SSPM_NO_MINOR_TYPE, SSPM_ANY_MINOR_TYPE, SSPM_PLAIN_MINOR_TYPE, SSPM_RFC822_MINOR_TYPE,
  SSPM_DIGEST_MINOR_TYPE, SSPM_CALENDAR_MINOR_TYPE, SSPM_MIXED_MINOR_TYPE, SSPM_RELATED_MINOR_TYPE,
  SSPM_ALTERNATIVE_MINOR_TYPE, SSPM_PARALLEL_MINOR_TYPE, SSPM_UNKNOWN_MINOR_TYPE
}

Functions

char * decode_base64 (char *dest, char *src, size_t *size)
char * decode_quoted_printable (char *dest, char *src, size_t *size)
const char * sspm_encoding_string (enum sspm_encoding type)
void sspm_free_parts (struct sspm_part *parts, size_t max_parts)
const char * sspm_major_type_string (enum sspm_major_type type)
const char * sspm_minor_type_string (enum sspm_minor_type type)
int sspm_parse_mime (struct sspm_part *parts, size_t max_parts, struct sspm_action_map *actions, char *(*get_string)(char *s, size_t size, void *data), void *get_string_data, struct sspm_header *first_header)
int sspm_write_mime (struct sspm_part *parts, size_t num_parts, char **output_string, const char *header)

Enumeration Type Documentation

Enumerator:
SSPM_NO_ENCODING 
SSPM_QUOTED_PRINTABLE_ENCODING 
SSPM_8BIT_ENCODING 
SSPM_7BIT_ENCODING 
SSPM_BINARY_ENCODING 
SSPM_BASE64_ENCODING 
SSPM_UNKNOWN_ENCODING 

Definition at line 66 of file sspm.h.

enum sspm_error

Enumerator:
SSPM_NO_ERROR 
SSPM_UNEXPECTED_BOUNDARY_ERROR 
SSPM_WRONG_BOUNDARY_ERROR 
SSPM_NO_BOUNDARY_ERROR 
SSPM_NO_HEADER_ERROR 
SSPM_MALFORMED_HEADER_ERROR 

Definition at line 76 of file sspm.h.

Enumerator:
SSPM_NO_MAJOR_TYPE 
SSPM_TEXT_MAJOR_TYPE 
SSPM_IMAGE_MAJOR_TYPE 
SSPM_AUDIO_MAJOR_TYPE 
SSPM_VIDEO_MAJOR_TYPE 
SSPM_APPLICATION_MAJOR_TYPE 
SSPM_MULTIPART_MAJOR_TYPE 
SSPM_MESSAGE_MAJOR_TYPE 
SSPM_UNKNOWN_MAJOR_TYPE 

Definition at line 40 of file sspm.h.

Enumerator:
SSPM_NO_MINOR_TYPE 
SSPM_ANY_MINOR_TYPE 
SSPM_PLAIN_MINOR_TYPE 
SSPM_RFC822_MINOR_TYPE 
SSPM_DIGEST_MINOR_TYPE 
SSPM_CALENDAR_MINOR_TYPE 
SSPM_MIXED_MINOR_TYPE 
SSPM_RELATED_MINOR_TYPE 
SSPM_ALTERNATIVE_MINOR_TYPE 
SSPM_PARALLEL_MINOR_TYPE 
SSPM_UNKNOWN_MINOR_TYPE 

Definition at line 52 of file sspm.h.


Function Documentation

char* decode_base64 ( char *  dest,
char *  src,
size_t *  size 
)

char* decode_quoted_printable ( char *  dest,
char *  src,
size_t *  size 
)

const char* sspm_encoding_string ( enum sspm_encoding  type  ) 

void sspm_free_parts ( struct sspm_part parts,
size_t  max_parts 
)

const char* sspm_major_type_string ( enum sspm_major_type  type  ) 

const char* sspm_minor_type_string ( enum sspm_minor_type  type  ) 

int sspm_parse_mime ( struct sspm_part parts,
size_t  max_parts,
struct sspm_action_map actions,
char *(*)(char *s, size_t size, void *data)  get_string,
void *  get_string_data,
struct sspm_header first_header 
)

int sspm_write_mime ( struct sspm_part parts,
size_t  num_parts,
char **  output_string,
const char *  header 
)