File: debug_8h-source.html

package info (click to toggle)
camstream 0.27%2Bdfsg-3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 12,320 kB
  • ctags: 5,393
  • sloc: cpp: 17,031; sh: 8,154; asm: 455; ansic: 440; makefile: 343
file content (71 lines) | stat: -rw-r--r-- 5,518 bytes parent folder | download | duplicates (2)
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
<html>
<head>
<title>Camstream: CamStream API documentation</title>
<link rel="stylesheet" href="../../tech.css" type="text/css">
</head>
<body>

<!-- Generated by Doxygen 1.3.7 -->
<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a></div>
<h1>debug.h</h1><a href="debug_8h.html">Go to the documentation of this file.</a><pre class="fragment"><div>00001 <span class="comment">/* For debugging the various program modules. </span>
00002 <span class="comment">   </span>
00003 <span class="comment">   All variables start with TRACE_; use a level to determine how much is </span>
00004 <span class="comment">   logged; 0 is minimal (or no) logging, higher numbers should log more.</span>
00005 <span class="comment"></span>
00006 <span class="comment">   To enable tracing, #define ENABLE_TRACING in the file that you want to </span>
00007 <span class="comment">   trace, before you include "config.h" or "debug.h".</span>
00008 <span class="comment">   </span>
00009 <span class="comment">   Use the macro like this:</span>
00010 <span class="comment">   </span>
00011 <span class="comment">   Trace(CONFIGFILE, 3, "Opening log file");</span>
00012 <span class="comment">   </span>
00013 <span class="comment">   This message will only be printed if TRACE_CONFIGFILE is &gt;= 3, i.e. very</span>
00014 <span class="comment">   verbose. A newline is automatically appended.</span>
00015 <span class="comment"></span>
00016 <span class="comment"> */</span>
00017 
00018 <span class="preprocessor">#ifdef ENABLE_TRACING</span>
00019 <span class="preprocessor"></span><span class="preprocessor">#undef Trace</span>
00020 <span class="preprocessor"></span><span class="preprocessor">#define Trace(what, level, string...) \</span>
00021 <span class="preprocessor">        if (TRACE_##what &gt;= level) { \</span>
00022 <span class="preprocessor">                fprintf(stderr, string); \</span>
00023 <span class="preprocessor">                fprintf(stderr, "\n"); \</span>
00024 <span class="preprocessor">        }</span>
00025 <span class="preprocessor"></span><span class="preprocessor">#else</span>
00026 <span class="preprocessor"></span><span class="preprocessor">#undef Trace</span>
<a name="l00027"></a><a class="code" href="debug_8h.html#a0">00027</a> <span class="preprocessor"></span><span class="preprocessor">#define Trace(what, level, string...) </span><span class="comment">/* nop */</span>
00028 <span class="preprocessor">#endif</span>
00029 <span class="preprocessor"></span>
00030 
<a name="l00031"></a><a class="code" href="debug_8h.html#a1">00031</a> <span class="preprocessor">#define TRACE_CONFIGFILE        1</span>
00032 <span class="preprocessor"></span>
<a name="l00033"></a><a class="code" href="debug_8h.html#a2">00033</a> <span class="preprocessor">#define TRACE_PANELREG          1</span>
<a name="l00034"></a><a class="code" href="debug_8h.html#a3">00034</a> <span class="preprocessor"></span><span class="preprocessor">#define TRACE_PANELPOS          1</span>
<a name="l00035"></a><a class="code" href="debug_8h.html#a4">00035</a> <span class="preprocessor"></span><span class="preprocessor">#define TRACE_PANELSIGNALS      1</span>
00036 <span class="preprocessor"></span>
00037 <span class="comment">// CamCanvas.cc</span>
<a name="l00038"></a><a class="code" href="debug_8h.html#a5">00038</a> <span class="preprocessor">#define TRACE_CANVAS_OPEN       1</span>
00039 <span class="preprocessor"></span>
00040 <span class="comment">// VideoCollector.cc</span>
00041 <span class="comment">/* #define TRACE_VIDEOCOLLECTOR 1 */</span>
00042 <span class="preprocessor">#undef TRACE_VIDEOCOLLECTOR</span>
00043 <span class="preprocessor"></span>
00044 <span class="comment">// VideoDevice.cc</span>
00045 <span class="preprocessor">#undef TRACE_VIDEODEV_READ</span>
<a name="l00046"></a><a class="code" href="debug_8h.html#a6">00046</a> <span class="preprocessor"></span><span class="preprocessor">#define TRACE_VIDEODEV_OPEN 1</span>
<a name="l00047"></a><a class="code" href="debug_8h.html#a7">00047</a> <span class="preprocessor"></span><span class="preprocessor">#define TRACE_VIDEODEV_IOCTL 1</span>
00048 <span class="preprocessor"></span>
00049 
00050 <span class="comment">/* 'Philips Control' dialog */</span>
<a name="l00051"></a><a class="code" href="debug_8h.html#a8">00051</a> <span class="preprocessor">#define TRACE_PHCONTROL_DLG     2</span>
00052 <span class="preprocessor"></span>
00053 <span class="comment">/* FTP */</span>
<a name="l00054"></a><a class="code" href="debug_8h.html#a9">00054</a> <span class="preprocessor">#define TRACE_FTP               2</span>
00055 <span class="preprocessor"></span>
00056 <span class="comment">/* VideoOptions */</span>
<a name="l00057"></a><a class="code" href="debug_8h.html#a10">00057</a> <span class="preprocessor">#define TRACE_VIDEOOPTIONS      2</span>
</div></pre><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 13 23:38:46 2006 for CamStream by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.7 </small></address>
</body>
</html>