Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/msgqinternal_8h_source.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>TB9.2 Example Applications: examples/PIPS/opencmessagequeuelibraryex/engine/inc/msgqinternal.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.2 -->
<h1>examples/PIPS/opencmessagequeuelibraryex/engine/inc/msgqinternal.h</h1><a href="msgqinternal_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
<a name="l00010"></a>00010 <span class="preprocessor">#ifndef MSGQINTERNAL_H</span>
<a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#define MSGQINTERNAL_H</span>
<a name="l00012"></a>00012 <span class="preprocessor"></span>
<a name="l00013"></a>00013 <span class="preprocessor">#include "<a class="code" href="msgqlib_8h.html">MsgQLib.h</a>"</span>
<a name="l00014"></a>00014
<a name="l00015"></a>00015 <span class="comment">/* data strucure used for maintaining message queues */</span>
<a name="l00016"></a>00016
<a name="l00017"></a>00017 <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct_msg_q_info.html">MsgQInfo</a>* <a class="code" href="struct_msg_q_info.html">MSGQ_INFO_PTR</a>;
<a name="l00018"></a>00018
<a name="l00019"></a><a class="code" href="struct_msg_q_info.html">00019</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct_msg_q_info.html">MsgQInfo</a> {
<a name="l00020"></a>00020 MSGQ_INFO_PTR next; <span class="comment">/* next entry in list */</span>
<a name="l00021"></a>00021 ULONG qName; <span class="comment">/* queue name */</span>
<a name="l00022"></a>00022 <span class="keywordtype">int</span> qId; <span class="comment">/* queue id */</span>
<a name="l00023"></a>00023 <span class="keywordtype">int</span> semId ; <span class="comment">/* semaphore id */</span>
<a name="l00024"></a>00024 ULONG sendState; <span class="comment">/* message can be sent */</span>
<a name="l00025"></a>00025 ULONG numMsgs; <span class="comment">/* number of messages queued */</span>
<a name="l00026"></a>00026 ULONG maxNumMsgs; <span class="comment">/* maximum number of messages queued */</span>
<a name="l00027"></a>00027 <span class="keyword">struct </span>msqid_ds* slMqInfo_p; <span class="comment">/* msg q info */</span>
<a name="l00028"></a>00028 }<a class="code" href="struct_msg_q_info.html">MSGQ_INFO</a>;
<a name="l00029"></a>00029
<a name="l00030"></a>00030
<a name="l00031"></a>00031 <span class="comment">/* Linked List used for maintaining list of all message queues created */</span>
<a name="l00032"></a>00032
<a name="l00033"></a>00033 <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct_msg_q_info_list.html">MsgQInfoList</a>* <a class="code" href="struct_msg_q_info_list.html">MSGQ_INFO_LIST_PTR</a>;
<a name="l00034"></a>00034
<a name="l00035"></a><a class="code" href="struct_msg_q_info_list.html">00035</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct_msg_q_info_list.html">MsgQInfoList</a> {
<a name="l00036"></a>00036 MSGQ_INFO_LIST_PTR next; <span class="comment">/* next entry in list */</span>
<a name="l00037"></a>00037 ULONG qName; <span class="comment">/* queue name */</span>
<a name="l00038"></a>00038 } <a class="code" href="struct_msg_q_info_list.html">MSGQ_INFO_LIST</a>;
<a name="l00039"></a>00039
<a name="l00040"></a>00040 <span class="comment">/* Forward Declaration of Internal Functions */</span>
<a name="l00041"></a>00041 <span class="keywordtype">int</span> InstallMsqQTable(ULONG qName, <span class="keywordtype">int</span> qId, <span class="keywordtype">int</span> semId, <span class="keywordtype">int</span>* err);
<a name="l00042"></a>00042 <span class="keywordtype">void</span> AddToMsgQTable(ULONG qName);
<a name="l00043"></a>00043 <span class="keywordtype">int</span> RemoveFromMsqQTable(ULONG qName, <span class="keywordtype">int</span>* err);
<a name="l00044"></a>00044 <span class="keywordtype">void</span> DeleteFromMsgQTable(ULONG qName);
<a name="l00045"></a>00045 <a class="code" href="struct_msg_q_info.html">MSGQ_INFO</a>* MsgQTableLookup(ULONG qName);
<a name="l00046"></a>00046
<a name="l00047"></a>00047 <span class="preprocessor">#endif </span><span class="comment">/* MSGQINTERNAL_H */</span>
</pre></div></div>
<hr size="1"/><address style="text-align: right;"><small>Generated by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2 </small></address>
</body>
</html>