Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > media > main-release > by-pkgid > d4a6745d7fbd92dfb64dce5e91e08f80 > files > 90

lib64meanwhile1-doc-1.0.2-1mdv2008.1.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>meanwhile: mw_debug.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.4 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="classes.html"><span>Data&nbsp;Structures</span></a></li>
    <li class="current"><a href="files.html"><span>Files</span></a></li>
    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
  </ul>
</div>
<h1>mw_debug.h</h1><a href="mw__debug_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00002"></a>00002 <span class="comment">/*</span>
<a name="l00003"></a>00003 <span class="comment">  Meanwhile - Unofficial Lotus Sametime Community Client Library</span>
<a name="l00004"></a>00004 <span class="comment">  Copyright (C) 2004  Christopher (siege) O'Brien</span>
<a name="l00005"></a>00005 <span class="comment">  </span>
<a name="l00006"></a>00006 <span class="comment">  This library is free software; you can redistribute it and/or</span>
<a name="l00007"></a>00007 <span class="comment">  modify it under the terms of the GNU Library General Public</span>
<a name="l00008"></a>00008 <span class="comment">  License as published by the Free Software Foundation; either</span>
<a name="l00009"></a>00009 <span class="comment">  version 2 of the License, or (at your option) any later version.</span>
<a name="l00010"></a>00010 <span class="comment">  </span>
<a name="l00011"></a>00011 <span class="comment">  This library is distributed in the hope that it will be useful,</span>
<a name="l00012"></a>00012 <span class="comment">  but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00013"></a>00013 <span class="comment">  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span>
<a name="l00014"></a>00014 <span class="comment">  Library General Public License for more details.</span>
<a name="l00015"></a>00015 <span class="comment">  </span>
<a name="l00016"></a>00016 <span class="comment">  You should have received a copy of the GNU Library General Public</span>
<a name="l00017"></a>00017 <span class="comment">  License along with this library; if not, write to the Free</span>
<a name="l00018"></a>00018 <span class="comment">  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA</span>
<a name="l00019"></a>00019 <span class="comment">*/</span>
<a name="l00020"></a>00020 
<a name="l00021"></a>00021 <span class="preprocessor">#ifndef _MW_DEBUG_H</span>
<a name="l00022"></a>00022 <span class="preprocessor"></span><span class="preprocessor">#define _MW_DEBUG_H</span>
<a name="l00023"></a>00023 <span class="preprocessor"></span>
<a name="l00024"></a>00024 
<a name="l00025"></a>00025 <span class="preprocessor">#include &lt;stdarg.h&gt;</span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;glib.h&gt;</span>
<a name="l00027"></a>00027 
<a name="l00028"></a>00028 <span class="preprocessor">#include "<a class="code" href="mw__common_8h.html" title="Common data types and functions for handling those types.">mw_common.h</a>"</span>
<a name="l00029"></a>00029 
<a name="l00030"></a>00030 
<a name="l00035"></a><a class="code" href="mw__debug_8h.html#a67c7289eb763a7216fbb0e718f3813d">00035</a> <span class="preprocessor">#define NSTR(str) ((str)? (str): "(null)")</span>
<a name="l00036"></a>00036 <span class="preprocessor"></span>
<a name="l00037"></a>00037 
<a name="l00038"></a>00038 <span class="preprocessor">#ifndef g_debug</span>
<a name="l00039"></a><a class="code" href="mw__debug_8h.html#87ff3f755a735cc7b25346a35f5485d8">00039</a> <span class="preprocessor"></span><span class="preprocessor">#define g_debug(format...) g_log(G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, format)</span>
<a name="l00040"></a>00040 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00041"></a>00041 <span class="preprocessor"></span>
<a name="l00042"></a>00042 
<a name="l00043"></a>00043 <span class="preprocessor">#ifndef g_info</span>
<a name="l00044"></a><a class="code" href="mw__debug_8h.html#50b503ca2ab0a3f3d87f74e313f18797">00044</a> <span class="preprocessor"></span><span class="preprocessor">#define g_info(format...) g_log(G_LOG_DOMAIN, G_LOG_LEVEL_INFO, format)</span>
<a name="l00045"></a>00045 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00046"></a>00046 <span class="preprocessor"></span>
<a name="l00047"></a>00047 
<a name="l00048"></a>00048 <span class="preprocessor">#ifndef MW_MAILME_ADDRESS</span>
<a name="l00049"></a>00049 <span class="preprocessor"></span>
<a name="l00050"></a><a class="code" href="mw__debug_8h.html#1cec39c7a64f20d9089d4af76797d022">00050</a> <span class="preprocessor">#define MW_MAILME_ADDRESS  "meanwhile-devel@lists.sourceforge.net"</span>
<a name="l00051"></a>00051 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00052"></a>00052 <span class="preprocessor"></span>
<a name="l00053"></a>00053 
<a name="l00054"></a>00054 <span class="preprocessor">#ifndef MW_MAILME_CUT_START</span>
<a name="l00055"></a><a class="code" href="mw__debug_8h.html#16e3e04fbd6c0ee72d409785e0ba4dda">00055</a> <span class="preprocessor"></span><span class="preprocessor">#define MW_MAILME_CUT_START  "-------- begin copy --------"</span>
<a name="l00056"></a>00056 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00057"></a>00057 <span class="preprocessor"></span>
<a name="l00058"></a>00058 
<a name="l00059"></a>00059 <span class="preprocessor">#ifndef MW_MAILME_CUT_STOP</span>
<a name="l00060"></a><a class="code" href="mw__debug_8h.html#5b3d9b93f73f924fa942c7740f19bfa0">00060</a> <span class="preprocessor"></span><span class="preprocessor">#define MW_MAILME_CUT_STOP   "--------- end copy ---------"</span>
<a name="l00061"></a>00061 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00062"></a>00062 <span class="preprocessor"></span>
<a name="l00063"></a>00063 
<a name="l00064"></a>00064 <span class="preprocessor">#ifndef MW_MAILME_MESSAGE</span>
<a name="l00065"></a>00065 <span class="preprocessor"></span>
<a name="l00067"></a><a class="code" href="mw__debug_8h.html#5707b5bc15c1f40cf5bf883db2c6550a">00067</a> <span class="preprocessor">#define MW_MAILME_MESSAGE "\n" \</span>
<a name="l00068"></a>00068 <span class="preprocessor"> "  Greetings! It seems that you've run across protocol data that the\n" \</span>
<a name="l00069"></a>00069 <span class="preprocessor"> "Meanwhile library does not yet know about. As such, there may be\n"    \</span>
<a name="l00070"></a>00070 <span class="preprocessor"> "some unexpected behaviour in this session. If you'd like to help\n"    \</span>
<a name="l00071"></a>00071 <span class="preprocessor"> "resolve this issue, please copy and paste the following block into\n"  \</span>
<a name="l00072"></a>00072 <span class="preprocessor"> "an email to the address listed below with a brief explanation of\n"    \</span>
<a name="l00073"></a>00073 <span class="preprocessor"> "what you were doing at the time of this message. Thanks a lot!"</span>
<a name="l00074"></a>00074 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00075"></a>00075 <span class="preprocessor"></span>
<a name="l00076"></a>00076 
<a name="l00077"></a>00077 <span class="keywordtype">void</span> <a class="code" href="mw__debug_8h.html#d33086bf1a80cc08bae07cd36d07cc7e">mw_debug_datav</a>(<span class="keyword">const</span> guchar *buf, gsize len,
<a name="l00078"></a>00078                     <span class="keyword">const</span> <span class="keywordtype">char</span> *info, va_list args);
<a name="l00079"></a>00079 
<a name="l00080"></a>00080 
<a name="l00081"></a>00081 <span class="keywordtype">void</span> <a class="code" href="mw__debug_8h.html#65a276306d40a3bbeacd14ed1e5c3861">mw_debug_data</a>(<span class="keyword">const</span> guchar *buf, gsize len,
<a name="l00082"></a>00082                    <span class="keyword">const</span> <span class="keywordtype">char</span> *info, ...);
<a name="l00083"></a>00083 
<a name="l00084"></a>00084 
<a name="l00085"></a>00085 <span class="keywordtype">void</span> <a class="code" href="mw__debug_8h.html#4472fe61c0e2e8af8af69b5f865c7cfe">mw_debug_opaquev</a>(<span class="keyword">struct</span> <a class="code" href="structmwOpaque.html" title="A length of binary data, not null-terminated.">mwOpaque</a> *o, <span class="keyword">const</span> <span class="keywordtype">char</span> *info, va_list args);
<a name="l00086"></a>00086 
<a name="l00087"></a>00087 
<a name="l00088"></a>00088 <span class="keywordtype">void</span> <a class="code" href="mw__debug_8h.html#bef8e11ddacd1b570281edbdd58b5eab">mw_debug_opaque</a>(<span class="keyword">struct</span> <a class="code" href="structmwOpaque.html" title="A length of binary data, not null-terminated.">mwOpaque</a> *o, <span class="keyword">const</span> <span class="keywordtype">char</span> *info, ...);
<a name="l00089"></a>00089 
<a name="l00090"></a>00090 
<a name="l00091"></a>00091 <span class="keywordtype">void</span> <a class="code" href="mw__debug_8h.html#aa403b022606c10a581c5d328bcd7c6d">mw_mailme_datav</a>(<span class="keyword">const</span> guchar *buf, gsize len,
<a name="l00092"></a>00092                      <span class="keyword">const</span> <span class="keywordtype">char</span> *info, va_list args);
<a name="l00093"></a>00093 
<a name="l00094"></a>00094 <span class="keywordtype">void</span> <a class="code" href="mw__debug_8h.html#5bb0e9894f0db4ba0896aa0f05c67a62">mw_mailme_data</a>(<span class="keyword">const</span> guchar *buf, gsize len,
<a name="l00095"></a>00095                     <span class="keyword">const</span> <span class="keywordtype">char</span> *info, ...);
<a name="l00096"></a>00096 
<a name="l00097"></a>00097 
<a name="l00101"></a>00101 <span class="keywordtype">void</span> <a class="code" href="mw__debug_8h.html#b27e7529ac1cb6fa56ea42727fe739d3" title="Outputs a hex dump of a mwOpaque with debugging info and a pre-defined message.">mw_mailme_opaquev</a>(<span class="keyword">struct</span> <a class="code" href="structmwOpaque.html" title="A length of binary data, not null-terminated.">mwOpaque</a> *o, <span class="keyword">const</span> <span class="keywordtype">char</span> *info, va_list args);
<a name="l00102"></a>00102 
<a name="l00103"></a>00103 
<a name="l00104"></a>00104 
<a name="l00124"></a>00124 <span class="keywordtype">void</span> <a class="code" href="mw__debug_8h.html#84b9630d04ad0fe9136bf5b04e40dfac" title="Outputs a hex dump of a mwOpaque with debugging info and a pre-defined message.">mw_mailme_opaque</a>(<span class="keyword">struct</span> <a class="code" href="structmwOpaque.html" title="A length of binary data, not null-terminated.">mwOpaque</a> *o, <span class="keyword">const</span> <span class="keywordtype">char</span> *info, ...);
<a name="l00125"></a>00125 
<a name="l00126"></a>00126 
<a name="l00127"></a>00127 <span class="preprocessor">#endif</span>
<a name="l00128"></a>00128 <span class="preprocessor"></span>
</pre></div><hr size="1"><address style="text-align: right;"><small>Generated on Wed Dec 19 09:10:33 2007 for meanwhile by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.4 </small></address>
</body>
</html>