blob: f52c3ab34c7a5ed1b62d4aa49efdb8a265b5f95b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
|
hypertarget{sampLog_8c}{
\section{sampLog.c File Reference}
\label{sampLog_8c}\index{sampLog.c@{sampLog.c}}
}
SAMP trace and logging interface.
{\tt \#include $<$stdio.h$>$}\par
{\tt \#include $<$fcntl.h$>$}\par
{\tt \#include $<$signal.h$>$}\par
{\tt \#include $<$unistd.h$>$}\par
{\tt \#include $<$stdlib.h$>$}\par
{\tt \#include $<$string.h$>$}\par
{\tt \#include $<$stdarg.h$>$}\par
{\tt \#include \char`\"{}samp.h\char`\"{}}\par
\subsection*{Defines}
\begin{CompactItemize}
\item
\hypertarget{sampLog_8c_7ca95aa869dee3c8acc0b1e278ec08be}{
\#define \textbf{SZ\_\-FMTSPEC}~25}
\label{sampLog_8c_7ca95aa869dee3c8acc0b1e278ec08be}
\item
\hypertarget{sampLog_8c_adbbc7b02d94a4c18646813ac8d7dec1}{
\#define \textbf{EOS}~0}
\label{sampLog_8c_adbbc7b02d94a4c18646813ac8d7dec1}
\item
\hypertarget{sampLog_8c_4fa28a492427bc4af75248e22537e9b4}{
\#define \textbf{T\_\-INT}~0}
\label{sampLog_8c_4fa28a492427bc4af75248e22537e9b4}
\item
\hypertarget{sampLog_8c_6e80924a839d0f80571bcd1d2b6ec084}{
\#define \textbf{T\_\-DOUBLE}~1}
\label{sampLog_8c_6e80924a839d0f80571bcd1d2b6ec084}
\item
\hypertarget{sampLog_8c_e2381f297a8fbb736886d7d1b6b99b42}{
\#define \textbf{T\_\-CHAR}~2}
\label{sampLog_8c_e2381f297a8fbb736886d7d1b6b99b42}
\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item
void \hyperlink{sampLog_8c_4919f892b6fccced4e6b9d777071b781}{sampLog} (handle\_\-t handle, char $\ast$format,...)
\begin{CompactList}\small\item\em SAMP message logger. \item\end{CompactList}\item
void \hyperlink{sampLog_8c_2b3dd1662e61c83e29109126689b08b9}{sampTrace} (handle\_\-t handle, char $\ast$format,...)
\begin{CompactList}\small\item\em SAMP tracer. \item\end{CompactList}\end{CompactItemize}
\label{_details}
\hypertarget{_details}{}
\subsection{Detailed Description}
SAMP trace and logging interface.
SAMPLOG.C -- SAMP trace and logging interface.
\begin{Desc}
\item[Author:]Mike Fitzpatrick \end{Desc}
\begin{Desc}
\item[Date:]6/10/09 \end{Desc}
\subsection{Function Documentation}
\hypertarget{sampLog_8c_4919f892b6fccced4e6b9d777071b781}{
\index{sampLog.c@{sampLog.c}!sampLog@{sampLog}}
\index{sampLog@{sampLog}!sampLog.c@{sampLog.c}}
\subsubsection[{sampLog}]{\setlength{\rightskip}{0pt plus 5cm}void sampLog (handle\_\-t {\em handle}, \/ char $\ast$ {\em format}, \/ {\em ...})}}
\label{sampLog_8c_4919f892b6fccced4e6b9d777071b781}
SAMP message logger.
SAMPLOG -- SAMP message logger.
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em handle}]SAMP handle \item[{\em format}]message format string \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]nothing \end{Desc}
References Samp::debug, and Samp::logfd.\hypertarget{sampLog_8c_2b3dd1662e61c83e29109126689b08b9}{
\index{sampLog.c@{sampLog.c}!sampTrace@{sampTrace}}
\index{sampTrace@{sampTrace}!sampLog.c@{sampLog.c}}
\subsubsection[{sampTrace}]{\setlength{\rightskip}{0pt plus 5cm}void sampTrace (handle\_\-t {\em handle}, \/ char $\ast$ {\em format}, \/ {\em ...})}}
\label{sampLog_8c_2b3dd1662e61c83e29109126689b08b9}
SAMP tracer.
SAMPTRACE -- SAMP tracer.
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em handle}]SAMP handle \item[{\em format}]message format string \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]nothing \end{Desc}
References Samp::trace.
Referenced by samp\_\-Metadata(), sampClose(), and sampInit().
|