• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3<title>pvlogger_c.h Source File</title>
4<link href="doxygen.css" rel="stylesheet" type="text/css">
5</head><body>
6<!-- Generated by Doxygen 1.2.18 -->
7<center>
8<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="modules.html">Modules</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="annotated.html">Data Structures</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Data Fields</a> &nbsp; <a class="qindex" href="globals.html">Globals</a> &nbsp; </center>
9<hr><h1>pvlogger_c.h</h1><a href="pvlogger__c_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001
1000010 <span class="preprocessor">#ifndef PVLOGGER_C_H_INCLUDED</span>
1100011 <span class="preprocessor"></span><span class="preprocessor">#define PVLOGGER_C_H_INCLUDED</span>
1200012 <span class="preprocessor"></span>
1300013 <span class="preprocessor">#include "<a class="code" href="osclconfig_8h.html">osclconfig.h</a>"</span>
1400014
1500015 <span class="preprocessor">#ifndef OSCL_IMPORT_REF</span>
1600016 <span class="preprocessor"></span><span class="preprocessor">#define OSCL_IMPORT_REF</span>
1700017 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
1800018 <span class="preprocessor"></span>
1900019 <span class="preprocessor">#ifdef __cplusplus</span>
2000020 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span>
2100021 {
2200022 <span class="preprocessor">#endif</span>
2300023 <span class="preprocessor"></span>
2400024 <span class="comment">//C-callable logging routines.</span>
2500025     OSCL_IMPORT_REF <span class="keywordtype">void</span>* <a class="code" href="pvlogger__c_8h.html#a15">pvLogger_GetLoggerObject</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* tag);
2600026     OSCL_IMPORT_REF <span class="keywordtype">int</span> <a class="code" href="pvlogger__c_8h.html#a16">pvLogger_IsActive</a>(<span class="keywordtype">void</span>* logger, <span class="keywordtype">int</span> log_level);
2700027     OSCL_IMPORT_REF <span class="keywordtype">void</span> <a class="code" href="pvlogger__c_8h.html#a17">pvLogger_LogMsgString</a>(<span class="keywordtype">void</span>* logger, <span class="keywordtype">int</span> msgID, <span class="keyword">const</span> <span class="keywordtype">char</span> * fmt, ...);
2800028
2900029 <span class="preprocessor">#ifdef __cplusplus</span>
3000030 <span class="preprocessor"></span>}
3100031 <span class="preprocessor">#endif</span>
3200032 <span class="preprocessor"></span>
3300033
3400034 <span class="comment">//Logging instrumentation level default.  To change this for a project, add a definition of</span>
3500035 <span class="comment">//PVLOGGER_C_INST_LEVEL to the osclconfig.h file.  This default sets level to none for release</span>
3600036 <span class="comment">//mode, full logging for debug build.</span>
3700037
3800038 <span class="preprocessor">#ifndef PVLOGGER_C_INST_LEVEL</span>
3900039 <span class="preprocessor"></span><span class="preprocessor">#if defined(NDEBUG)</span>
4000040 <span class="preprocessor"></span><span class="preprocessor">#define PVLOGGER_C_INST_LEVEL 0</span>
4100041 <span class="preprocessor"></span><span class="preprocessor">#else</span>
42<a name="l00042"></a><a class="code" href="pvlogger__c_8h.html#a0">00042</a> <span class="preprocessor"></span><span class="preprocessor">#define PVLOGGER_C_INST_LEVEL 5</span>
4300043 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
4400044 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
4500045 <span class="preprocessor"></span>
4600046 <span class="comment">//Instrumentation levels.</span>
47<a name="l00047"></a><a class="code" href="pvlogger__c_8h.html#a1">00047</a> <span class="preprocessor">#define PVLOGMSG_C_INST_REL   0</span>
48<a name="l00048"></a><a class="code" href="pvlogger__c_8h.html#a2">00048</a> <span class="preprocessor"></span><span class="preprocessor">#define PVLOGMSG_C_INST_PROF  1</span>
49<a name="l00049"></a><a class="code" href="pvlogger__c_8h.html#a3">00049</a> <span class="preprocessor"></span><span class="preprocessor">#define PVLOGMSG_C_INST_HLDBG 2</span>
50<a name="l00050"></a><a class="code" href="pvlogger__c_8h.html#a4">00050</a> <span class="preprocessor"></span><span class="preprocessor">#define PVLOGMSG_C_INST_MLDBG 3</span>
51<a name="l00051"></a><a class="code" href="pvlogger__c_8h.html#a5">00051</a> <span class="preprocessor"></span><span class="preprocessor">#define PVLOGMSG_C_INST_LLDBG 4</span>
5200052 <span class="preprocessor"></span>
5300053 <span class="comment">//Logging levels</span>
54<a name="l00054"></a><a class="code" href="pvlogger__c_8h.html#a6">00054</a> <span class="preprocessor">#define PVLOGMSG_C_EMERG 0</span>
55<a name="l00055"></a><a class="code" href="pvlogger__c_8h.html#a7">00055</a> <span class="preprocessor"></span><span class="preprocessor">#define PVLOGMSG_C_ALERT 1</span>
56<a name="l00056"></a><a class="code" href="pvlogger__c_8h.html#a8">00056</a> <span class="preprocessor"></span><span class="preprocessor">#define PVLOGMSG_C_CRIT 2</span>
57<a name="l00057"></a><a class="code" href="pvlogger__c_8h.html#a9">00057</a> <span class="preprocessor"></span><span class="preprocessor">#define PVLOGMSG_C_ERR 3</span>
58<a name="l00058"></a><a class="code" href="pvlogger__c_8h.html#a10">00058</a> <span class="preprocessor"></span><span class="preprocessor">#define PVLOGMSG_C_WARNING 4</span>
59<a name="l00059"></a><a class="code" href="pvlogger__c_8h.html#a11">00059</a> <span class="preprocessor"></span><span class="preprocessor">#define PVLOGMSG_C_NOTICE 5</span>
60<a name="l00060"></a><a class="code" href="pvlogger__c_8h.html#a12">00060</a> <span class="preprocessor"></span><span class="preprocessor">#define PVLOGMSG_C_INFO 6</span>
61<a name="l00061"></a><a class="code" href="pvlogger__c_8h.html#a13">00061</a> <span class="preprocessor"></span><span class="preprocessor">#define PVLOGMSG_C_STACK_TRACE 7</span>
62<a name="l00062"></a><a class="code" href="pvlogger__c_8h.html#a14">00062</a> <span class="preprocessor"></span><span class="preprocessor">#define PVLOGMSG_C_STACK_DEBUG 8</span>
6300063 <span class="preprocessor"></span>
6400064 <span class="comment">/*</span>
6500065 <span class="comment">//Example Usage:</span>
6600066 <span class="comment"></span>
6700067 <span class="comment">#if (PVLOGGER_C_INST_LEVEL &gt; PVLOGMSG_C_INST_LLDBG)</span>
6800068 <span class="comment">                        if(pvLogger_IsActive(logger ,PVLOGMSG_C_ERR))</span>
6900069 <span class="comment">                                pvLogger_LogMsgString( logger ,  0 ,"Some message, value %d", intvalue );</span>
7000070 <span class="comment"></span>
7100071 <span class="comment">#endif</span>
7200072 <span class="comment">*/</span>
7300073
7400074
7500075
7600076 <span class="preprocessor">#endif // PVLOGGER_C_H_INCLUDED</span>
77</pre></div><hr size="1"><img src="pvlogo_small.jpg"><address style="align: right;"><small>OSCL API</small>
78<address style="align: left;"><small>Posting Version: OPENCORE_20090310 </small>
79</small></address>
80</body>
81</html>
82