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
46 lines
1.3 KiB
TeX
46 lines
1.3 KiB
TeX
\section{mm\_\-internal.h File Reference}
|
|
\label{mm__internal_8h}\index{mm_internal.h@{mm\_\-internal.h}}
|
|
{\tt \#include \char`\"{}mm.h\char`\"{}}\par
|
|
\subsection*{Defines}
|
|
\begin{CompactItemize}
|
|
\item
|
|
\#define \textbf{debugp}(m,...)
|
|
\end{CompactItemize}
|
|
\subsection*{Functions}
|
|
\begin{Indent}{\bf Utility functions}\par
|
|
\begin{CompactItemize}
|
|
\item
|
|
void $\ast$ {\bf xmalloc} (size\_\-t)
|
|
\item
|
|
void $\ast$ {\bf xrealloc} (void $\ast$, size\_\-t)
|
|
\item
|
|
void \textbf{xfree} (void $\ast$)\label{group__util_g35c4383ff0dee2de18985e6edfed1ae6}
|
|
|
|
\item
|
|
char $\ast$ \textbf{xstrdup} (const char $\ast$)\label{group__util_g2961ae74e91b0b28acdf9822438a581c}
|
|
|
|
\item
|
|
char $\ast$ {\bf xstrsep} (char $\ast$$\ast$, const char $\ast$)
|
|
\end{CompactItemize}
|
|
\end{Indent}
|
|
|
|
|
|
\subsection{Detailed Description}
|
|
Data definitions for Mini\-MIME
|
|
|
|
\subsection{Define Documentation}
|
|
\index{mm_internal.h@{mm\_\-internal.h}!debugp@{debugp}}
|
|
\index{debugp@{debugp}!mm_internal.h@{mm\_\-internal.h}}
|
|
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define debugp(m, {\em ...})}\label{mm__internal_8h_089dd7bda22f552c35ebdc06a8849c56}
|
|
|
|
|
|
\textbf{Value:}
|
|
|
|
\begin{Code}\begin{verbatim}do { \
|
|
fprintf(stderr, "%s:%d:: ", __FILE__, __LINE__); \
|
|
fprintf(stderr, m, ## __VA_ARGS__); \
|
|
fprintf(stderr, "\n"); \
|
|
fflush(stderr); \
|
|
} while (0);
|
|
\end{verbatim}\end{Code}
|