mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 20:08:17 +00:00
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r60603 | russell | 2007-04-06 15:58:43 -0500 (Fri, 06 Apr 2007) | 13 lines To be able to achieve the things that we would like to achieve with the 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/trunk@60604 65c4cc65-6c06-0410-ace0-fbb531ad65f3
50 lines
2.0 KiB
TeX
50 lines
2.0 KiB
TeX
\section{mm\_\-mimeutil.c File Reference}
|
|
\label{mm__mimeutil_8c}\index{mm_mimeutil.c@{mm\_\-mimeutil.c}}
|
|
{\tt \#include $<$sys/time.h$>$}\par
|
|
{\tt \#include $<$stdio.h$>$}\par
|
|
{\tt \#include $<$stdlib.h$>$}\par
|
|
{\tt \#include $<$string.h$>$}\par
|
|
{\tt \#include $<$time.h$>$}\par
|
|
{\tt \#include $<$assert.h$>$}\par
|
|
{\tt \#include \char`\"{}mm\_\-internal.h\char`\"{}}\par
|
|
\subsection*{Defines}
|
|
\begin{CompactItemize}
|
|
\item
|
|
\#define \textbf{MM\_\-DATE\_\-LENGTH}~50\label{mm__mimeutil_8c_257774e1a30f8190b3d99891be64210a}
|
|
|
|
\end{CompactItemize}
|
|
\subsection*{Functions}
|
|
\begin{CompactItemize}
|
|
\item
|
|
int {\bf mm\_\-mimeutil\_\-gendate} (char $\ast$$\ast$result)
|
|
\item
|
|
int \textbf{mm\_\-mimeutil\_\-genboundary} (char $\ast$prefix, size\_\-t length, char $\ast$$\ast$result)\label{mm__mimeutil_8c_a72e503ba7ce2552456c6bd5935febe9}
|
|
|
|
\end{CompactItemize}
|
|
|
|
|
|
\subsection{Detailed Description}
|
|
This module contains various MIME related utility functions.
|
|
|
|
\subsection{Function Documentation}
|
|
\index{mm_mimeutil.c@{mm\_\-mimeutil.c}!mm_mimeutil_gendate@{mm\_\-mimeutil\_\-gendate}}
|
|
\index{mm_mimeutil_gendate@{mm\_\-mimeutil\_\-gendate}!mm_mimeutil.c@{mm\_\-mimeutil.c}}
|
|
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int mm\_\-mimeutil\_\-gendate (char $\ast$$\ast$ {\em result})}\label{mm__mimeutil_8c_a7b7f63b42dfa7a7f907b615aa4cd057}
|
|
|
|
|
|
Generates an RFC 2822 conform date string
|
|
|
|
\begin{Desc}
|
|
\item[Parameters:]
|
|
\begin{description}
|
|
\item[{\em timezone}]Whether to include timezone information \end{description}
|
|
\end{Desc}
|
|
\begin{Desc}
|
|
\item[Returns:]A pointer to the actual date string \end{Desc}
|
|
\begin{Desc}
|
|
\item[Note:]The pointer returned must be freed some time\end{Desc}
|
|
This function generates an RFC 2822 conform date string to use in message headers. It allocates memory to hold the string and returns a pointer to it. The generated date is in the format (example):
|
|
|
|
Thu, 25 December 2003 16:35:22 +0100 (CET)
|
|
|
|
This function dynamically allocates memory and returns a pointer to it. This memory should be released with free() once not needed anymore. |