mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-24 06:53:41 +00:00
38 lines
1.9 KiB
TeX
38 lines
1.9 KiB
TeX
![]() |
\section{mm\_\-param.c File Reference}
|
||
|
\label{mm__param_8c}\index{mm_param.c@{mm\_\-param.c}}
|
||
|
{\tt \#include $<$sys/types.h$>$}\par
|
||
|
{\tt \#include $<$sys/stat.h$>$}\par
|
||
|
{\tt \#include $<$stdio.h$>$}\par
|
||
|
{\tt \#include $<$stdlib.h$>$}\par
|
||
|
{\tt \#include $<$unistd.h$>$}\par
|
||
|
{\tt \#include $<$fcntl.h$>$}\par
|
||
|
{\tt \#include $<$string.h$>$}\par
|
||
|
{\tt \#include $<$ctype.h$>$}\par
|
||
|
{\tt \#include $<$assert.h$>$}\par
|
||
|
{\tt \#include \char`\"{}mm\_\-internal.h\char`\"{}}\par
|
||
|
{\tt \#include \char`\"{}mm\_\-util.h\char`\"{}}\par
|
||
|
\subsection*{Functions}
|
||
|
\begin{Indent}{\bf Functions for manipulating MIME parameters}\par
|
||
|
{\em MIME parameters are properties attached to certain MIME headers, such as Content-Type and Content-Disposition. MIME parameters have a textual representations as in {\em 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. }\begin{CompactItemize}
|
||
|
\item
|
||
|
mm\_\-param $\ast$ {\bf mm\_\-param\_\-new} (void)
|
||
|
\item
|
||
|
void {\bf mm\_\-param\_\-free} (struct mm\_\-param $\ast$param)
|
||
|
\item
|
||
|
mm\_\-param $\ast$ {\bf mm\_\-param\_\-generate} (const char $\ast$name, const char $\ast$value)
|
||
|
\item
|
||
|
char $\ast$ {\bf mm\_\-param\_\-setname} (struct mm\_\-param $\ast$param, const char $\ast$name, int copy)
|
||
|
\item
|
||
|
char $\ast$ {\bf mm\_\-param\_\-setvalue} (struct mm\_\-param $\ast$param, const char $\ast$value, int copy)
|
||
|
\item
|
||
|
const char $\ast$ {\bf mm\_\-param\_\-getname} (struct mm\_\-param $\ast$param)
|
||
|
\item
|
||
|
const char $\ast$ {\bf mm\_\-param\_\-getvalue} (struct mm\_\-param $\ast$param)
|
||
|
\end{CompactItemize}
|
||
|
\end{Indent}
|
||
|
|
||
|
|
||
|
\subsection{Detailed Description}
|
||
|
Functions to manipulate MIME parameters
|