|
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|
2 <html xmlns="http://www.w3.org/1999/xhtml"> |
|
3 <head> |
|
4 <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
|
5 <title>TB9.2 Example Applications: examples/PIPS/opencmessagequeuelibraryex/engine/src/msgqmaxcheck.c Source File</title> |
|
6 <link href="tabs.css" rel="stylesheet" type="text/css"/> |
|
7 <link href="doxygen.css" rel="stylesheet" type="text/css"/> |
|
8 </head> |
|
9 <body> |
|
10 <!-- Generated by Doxygen 1.6.2 --> |
|
11 <h1>examples/PIPS/opencmessagequeuelibraryex/engine/src/msgqmaxcheck.c</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 |
|
12 <a name="l00010"></a>00010 <span class="preprocessor">#include <_ansi.h></span> |
|
13 <a name="l00011"></a>00011 <span class="preprocessor">#include "<a class="code" href="msgqinternal_8h.html">MsgQInternal.h</a>"</span> |
|
14 <a name="l00012"></a>00012 |
|
15 <a name="l00013"></a>00013 |
|
16 <a name="l00014"></a>00014 <span class="comment">/**************************************************************************</span> |
|
17 <a name="l00015"></a>00015 <span class="comment">* MsgQMaxCheck</span> |
|
18 <a name="l00016"></a>00016 <span class="comment">* Function: This function checks the maximum number of messages in a</span> |
|
19 <a name="l00017"></a>00017 <span class="comment">***************************************************************************/</span> |
|
20 <a name="l00018"></a>00018 |
|
21 <a name="l00019"></a><a class="code" href="msgqlib_8h.html#ac3714b7e3c9e3eafb7375ca1fe5d5ad7">00019</a> EXPORT_C <span class="keywordtype">int</span> <a class="code" href="msgqlib_8h.html#ac3714b7e3c9e3eafb7375ca1fe5d5ad7">MsgQMaxCheck</a>(ULONG qName, <span class="keywordtype">int</span>* err) { |
|
22 <a name="l00020"></a>00020 <a class="code" href="struct_msg_q_info.html">MSGQ_INFO</a>* pMsgQInfo = NULL; |
|
23 <a name="l00021"></a>00021 |
|
24 <a name="l00022"></a>00022 <span class="keywordflow">if</span> ((pMsgQInfo = MsgQTableLookup(qName)) != NULL) { |
|
25 <a name="l00023"></a>00023 *err = OK; |
|
26 <a name="l00024"></a>00024 <span class="keywordflow">return</span> (pMsgQInfo->maxNumMsgs); |
|
27 <a name="l00025"></a>00025 } |
|
28 <a name="l00026"></a>00026 <span class="keywordflow">else</span> |
|
29 <a name="l00027"></a>00027 *err = KMsgQLibQIdErr; |
|
30 <a name="l00028"></a>00028 |
|
31 <a name="l00029"></a>00029 <span class="keywordflow">return</span>(ERROR); |
|
32 <a name="l00030"></a>00030 } |
|
33 <a name="l00031"></a>00031 |
|
34 </pre></div></div> |
|
35 <hr size="1"/><address style="text-align: right;"><small>Generated by |
|
36 <a href="http://www.doxygen.org/index.html"> |
|
37 <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2 </small></address> |
|
38 </body> |
|
39 </html> |