mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-24 06:53:41 +00:00
Asterisk GUI project, we need a fully functional HTTP interface with access to the Asterisk manager interface. One of the things that was intended to be a part of this system, but was never actually implemented, was the ability for the GUI to be able to upload files to Asterisk. So, this commit adds this in the most minimally invasive way that we could come up with. A lot of work on minimime was done by Steve Murphy. He fixed a lot of bugs in the parser, and updated it to be thread-safe. The ability to check permissions of active manager sessions was added by Dwayne Hubbard. Then, hacking this all together and do doing the modifications necessary to the HTTP interface was done by me. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@60603 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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 |