#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
#include <ctype.h>
#include <assert.h>
#include "mm_internal.h"
#include "mm_util.h"
Functions | |
Functions for manipulating MIME parameters | |
MIME parameters are properties attached to certain MIME headers, such as Content-Type and Content-Disposition. MIME parameters have a textual representations as in name=value. They contain important information about the MIME structure of a message, such as the boundary string used, which charset was used to encode the message and so on. This module provides simple to use functions to query or set MIME parameters.
Each MIME header may hold an arbitrary amount of such parameters, which are delimeted by each other with a semicolon. | |
mm_param * | mm_param_new (void) |
void | mm_param_free (struct mm_param *param) |
mm_param * | mm_param_generate (const char *name, const char *value) |
char * | mm_param_setname (struct mm_param *param, const char *name, int copy) |
char * | mm_param_setvalue (struct mm_param *param, const char *value, int copy) |
const char * | mm_param_getname (struct mm_param *param) |
const char * | mm_param_getvalue (struct mm_param *param) |