Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 874255f3b26b44feb57fbe38a7384518 > files > 236

gmerlin-0.4.1-2mdv2010.0.i586.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>gmerlin: /home/mandrake/rpm/BUILD/gmerlin-0.4.1/include/gmerlin/log.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.5.9 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="dir_9de5cad15617e449f29680677e022ed8.html">include</a>&nbsp;&raquo&nbsp;<a class="el" href="dir_4a3f2046eda2c9424010fb7393a61021.html">gmerlin</a>
  </div>
</div>
<div class="contents">
<h1>log.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*****************************************************************</span>
<a name="l00002"></a>00002 <span class="comment"> * gmerlin - a general purpose multimedia framework and applications</span>
<a name="l00003"></a>00003 <span class="comment"> *</span>
<a name="l00004"></a>00004 <span class="comment"> * Copyright (c) 2001 - 2008 Members of the Gmerlin project</span>
<a name="l00005"></a>00005 <span class="comment"> * gmerlin-general@lists.sourceforge.net</span>
<a name="l00006"></a>00006 <span class="comment"> * http://gmerlin.sourceforge.net</span>
<a name="l00007"></a>00007 <span class="comment"> *</span>
<a name="l00008"></a>00008 <span class="comment"> * This program is free software: you can redistribute it and/or modify</span>
<a name="l00009"></a>00009 <span class="comment"> * it under the terms of the GNU General Public License as published by</span>
<a name="l00010"></a>00010 <span class="comment"> * the Free Software Foundation, either version 2 of the License, or</span>
<a name="l00011"></a>00011 <span class="comment"> * (at your option) any later version.</span>
<a name="l00012"></a>00012 <span class="comment"> *</span>
<a name="l00013"></a>00013 <span class="comment"> * This program is distributed in the hope that it will be useful,</span>
<a name="l00014"></a>00014 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00015"></a>00015 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
<a name="l00016"></a>00016 <span class="comment"> * GNU General Public License for more details.</span>
<a name="l00017"></a>00017 <span class="comment"> *</span>
<a name="l00018"></a>00018 <span class="comment"> * You should have received a copy of the GNU General Public License</span>
<a name="l00019"></a>00019 <span class="comment"> * along with this program.  If not, see &lt;http://www.gnu.org/licenses/&gt;.</span>
<a name="l00020"></a>00020 <span class="comment"> * *****************************************************************/</span>
<a name="l00021"></a>00021 
<a name="l00022"></a>00022 <span class="preprocessor">#ifndef __BG_LOG_H_</span>
<a name="l00023"></a>00023 <span class="preprocessor"></span><span class="preprocessor">#define __BG_LOG_H_</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span>
<a name="l00025"></a>00025 <span class="comment">/* Gmerlin log facilities */</span>
<a name="l00026"></a>00026 
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;gmerlin/parameter.h&gt;</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include &lt;gmerlin/msgqueue.h&gt;</span>
<a name="l00029"></a>00029 
<a name="l00030"></a>00030 <span class="preprocessor">#include &lt;libintl.h&gt;</span>
<a name="l00031"></a>00031 
<a name="l00051"></a><a class="code" href="group__log.html#ge67a17c4e8711604c0787e662b3c854d">00051</a> <span class="keyword">typedef</span> <span class="keyword">enum</span>
<a name="l00052"></a>00052   {
<a name="l00053"></a><a class="code" href="group__log.html#gge67a17c4e8711604c0787e662b3c854ddeb7d197674e880f661e82b491aa7b15">00053</a>     <a class="code" href="group__log.html#gge67a17c4e8711604c0787e662b3c854ddeb7d197674e880f661e82b491aa7b15" title="Only for programmers, useless for users.">BG_LOG_DEBUG</a>    = 1&lt;&lt;0, 
<a name="l00054"></a><a class="code" href="group__log.html#gge67a17c4e8711604c0787e662b3c854d60556643b21fecd47ea6ceb26a63e50b">00054</a>     <a class="code" href="group__log.html#gge67a17c4e8711604c0787e662b3c854d60556643b21fecd47ea6ceb26a63e50b" title="Something went wrong, but is not fatal.">BG_LOG_WARNING</a>  = 1&lt;&lt;1, 
<a name="l00055"></a><a class="code" href="group__log.html#gge67a17c4e8711604c0787e662b3c854d80448b61867f6824a0939da7e5d7630d">00055</a>     <a class="code" href="group__log.html#gge67a17c4e8711604c0787e662b3c854d80448b61867f6824a0939da7e5d7630d" title="Something went wrong, cannot continue.">BG_LOG_ERROR</a>    = 1&lt;&lt;2, 
<a name="l00056"></a><a class="code" href="group__log.html#gge67a17c4e8711604c0787e662b3c854db0dfbf6e2385ed1547e47ed4103321a5">00056</a>     <a class="code" href="group__log.html#gge67a17c4e8711604c0787e662b3c854db0dfbf6e2385ed1547e47ed4103321a5" title="Something interesting the user might want to know.">BG_LOG_INFO</a>     = 1&lt;&lt;3  
<a name="l00057"></a>00057   } <a class="code" href="group__log.html#ge67a17c4e8711604c0787e662b3c854d" title="Log levels.">bg_log_level_t</a>;
<a name="l00058"></a>00058 
<a name="l00059"></a>00059 <span class="preprocessor">#define BG_LOG_LEVEL_MAX (1&lt;&lt;3)</span>
<a name="l00060"></a>00060 <span class="preprocessor"></span>
<a name="l00075"></a>00075 <span class="keywordtype">void</span> <a class="code" href="group__log.html#g01adf88f8b165f68db5679533213f865" title="Send a message to the logger without translating it.">bg_log_notranslate</a>(<a class="code" href="group__log.html#ge67a17c4e8711604c0787e662b3c854d" title="Log levels.">bg_log_level_t</a> level, <span class="keyword">const</span> <span class="keywordtype">char</span> * domain,
<a name="l00076"></a>00076                         <span class="keyword">const</span> <span class="keywordtype">char</span> * format, ...) __attribute__ ((format (printf, 3, 4)));
<a name="l00077"></a>00077 
<a name="l00092"></a>00092 <span class="keywordtype">void</span> <a class="code" href="group__log.html#gefdc8a1e163211e33f67907108ec9738" title="Send a message (as complete string) to the logger without translating it.">bg_logs_notranslate</a>(<a class="code" href="group__log.html#ge67a17c4e8711604c0787e662b3c854d" title="Log levels.">bg_log_level_t</a> level, const <span class="keywordtype">char</span> * domain,
<a name="l00093"></a>00093                          const <span class="keywordtype">char</span> * str);
<a name="l00094"></a>00094 
<a name="l00095"></a>00095 
<a name="l00096"></a>00096 
<a name="l00112"></a>00112 <span class="keywordtype">void</span> <a class="code" href="group__log.html#g852dcd30b29445fc89041cb127180f9b" title="Translate a message and send it to the logger.">bg_log_translate</a>(const <span class="keywordtype">char</span> * translation_domain,
<a name="l00113"></a>00113                       <a class="code" href="group__log.html#ge67a17c4e8711604c0787e662b3c854d" title="Log levels.">bg_log_level_t</a> level, const <span class="keywordtype">char</span> * domain,
<a name="l00114"></a>00114                       const <span class="keywordtype">char</span> * format, ...) __attribute__ ((format (printf, 4, 5)));
<a name="l00115"></a>00115 
<a name="l00120"></a><a class="code" href="group__log.html#g262b795751eb4bf4c1b81b72307d2ec1">00120</a> <span class="preprocessor">#define bg_log(level, domain, ...) \</span>
<a name="l00121"></a>00121 <span class="preprocessor">    bg_log_translate(PACKAGE, level, domain, __VA_ARGS__)</span>
<a name="l00122"></a>00122 <span class="preprocessor"></span>
<a name="l00123"></a>00123 
<a name="l00139"></a>00139 <span class="keywordtype">void</span> <a class="code" href="group__log.html#ge444a158d998f37947db5841fd0818fa" title="Set the log destination.">bg_log_set_dest</a>(<a class="code" href="group__message__queues.html#g06c6bfc0f61ce4013b6d4117d299fa5a" title="Opaque message queue type. You don&amp;#39;t want to know what&amp;#39;s inside.">bg_msg_queue_t</a> * q);
<a name="l00140"></a>00140 
<a name="l00147"></a>00147 <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="group__log.html#g7045e91c07106b1066356bba23243fc3" title="Convert a log level to a human readable string.">bg_log_level_to_string</a>(<a class="code" href="group__log.html#ge67a17c4e8711604c0787e662b3c854d" title="Log levels.">bg_log_level_t</a> level);
<a name="l00148"></a>00148 
<a name="l00157"></a>00157 <span class="keywordtype">void</span> <a class="code" href="group__log.html#gd02ccd392512ab079286a5c1110c8c72" title="Set verbosity mask.">bg_log_set_verbose</a>(<span class="keywordtype">int</span> mask);
<a name="l00158"></a>00158 
<a name="l00167"></a>00167 <span class="keywordtype">char</span> * <a class="code" href="group__log.html#g206f510eb8e179b2ef361a493803c016" title="Get last error message.">bg_log_last_error</a>();
<a name="l00168"></a>00168 
<a name="l00169"></a>00169 <span class="preprocessor">#endif // __BG_LOG_H_</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 22 01:28:04 2009 for gmerlin by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address>
</body>
</html>