Current File : //usr/share/doc/dbus/api/dbus-internals_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"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>D-Bus: dbus-internals.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />



</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">D-Bus
   &#160;<span id="projectnumber">1.8.20</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">dbus-internals.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* -*- mode: C; c-file-style: &quot;gnu&quot;; indent-tabs-mode: nil; -*- */</span>
<a name="l00002"></a>00002 <span class="comment">/* dbus-internals.h  random utility stuff (internal to D-Bus implementation)</span>
<a name="l00003"></a>00003 <span class="comment"> *</span>
<a name="l00004"></a>00004 <span class="comment"> * Copyright (C) 2002, 2003  Red Hat, Inc.</span>
<a name="l00005"></a>00005 <span class="comment"> *</span>
<a name="l00006"></a>00006 <span class="comment"> * Licensed under the Academic Free License version 2.1</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, write to the Free Software</span>
<a name="l00020"></a>00020 <span class="comment"> * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA</span>
<a name="l00021"></a>00021 <span class="comment"> *</span>
<a name="l00022"></a>00022 <span class="comment"> */</span>
<a name="l00023"></a>00023 <span class="preprocessor">#ifdef DBUS_INSIDE_DBUS_H</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span><span class="preprocessor">#error &quot;You can&#39;t include dbus-internals.h in the public header dbus.h&quot;</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span>
<a name="l00027"></a>00027 <span class="preprocessor">#ifndef DBUS_INTERNALS_H</span>
<a name="l00028"></a>00028 <span class="preprocessor"></span><span class="preprocessor">#define DBUS_INTERNALS_H</span>
<a name="l00029"></a>00029 <span class="preprocessor"></span>
<a name="l00030"></a>00030 <span class="preprocessor">#include &lt;dbus/dbus-memory.h&gt;</span>
<a name="l00031"></a>00031 <span class="preprocessor">#include &lt;dbus/dbus-types.h&gt;</span>
<a name="l00032"></a>00032 <span class="preprocessor">#include &lt;dbus/dbus-errors.h&gt;</span>
<a name="l00033"></a>00033 <span class="preprocessor">#include &lt;dbus/dbus-sysdeps.h&gt;</span>
<a name="l00034"></a>00034 <span class="preprocessor">#include &lt;dbus/dbus-threads-internal.h&gt;</span>
<a name="l00035"></a>00035 
<a name="l00036"></a>00036 <a class="code" href="group__DBusMacros.html#ga875146b01015e9ced22b25d76d549ab2" title="Macro used prior to declaring functions in the D-Bus header files.">DBUS_BEGIN_DECLS</a>
<a name="l00037"></a>00037 
<a name="l00038"></a>00038 <span class="keywordtype">void</span> <a class="code" href="group__DBusInternalsUtils.html#gabea2c16d6d3fe7c4eb5b9496fc877f84" title="Prints a warning message to stderr.">_dbus_warn</a>               (<span class="keyword">const</span> <span class="keywordtype">char</span> *format,
<a name="l00039"></a>00039                                ...) _DBUS_GNUC_PRINTF (1, 2);
<a name="l00040"></a>00040 
<a name="l00041"></a>00041 <span class="keywordtype">void</span> <a class="code" href="group__DBusInternalsUtils.html#ga63f2f8a068454b781f214ba596e313b4" title="Prints a &quot;critical&quot; warning to stderr when an assertion fails; differs from _dbus_warn primarily in t...">_dbus_warn_check_failed</a>  (const <span class="keywordtype">char</span> *format,
<a name="l00042"></a>00042                                ...) _DBUS_GNUC_PRINTF (1, 2);
<a name="l00043"></a>00043 
<a name="l00044"></a>00044 
<a name="l00045"></a>00045 <span class="preprocessor">#if defined (__STDC_VERSION__) &amp;&amp; (__STDC_VERSION__ &gt;= 199901L)</span>
<a name="l00046"></a>00046 <span class="preprocessor"></span><span class="preprocessor">#define _DBUS_FUNCTION_NAME __func__</span>
<a name="l00047"></a>00047 <span class="preprocessor"></span><span class="preprocessor">#elif defined(__GNUC__) || defined(_MSC_VER)</span>
<a name="l00048"></a>00048 <span class="preprocessor"></span><span class="preprocessor">#define _DBUS_FUNCTION_NAME __FUNCTION__</span>
<a name="l00049"></a>00049 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00050"></a>00050 <span class="preprocessor"></span><span class="preprocessor">#define _DBUS_FUNCTION_NAME &quot;unknown function&quot;</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 <span class="comment">/*</span>
<a name="l00054"></a>00054 <span class="comment"> * (code from GLib)</span>
<a name="l00055"></a>00055 <span class="comment"> * </span>
<a name="l00056"></a>00056 <span class="comment"> * The _DBUS_LIKELY and _DBUS_UNLIKELY macros let the programmer give hints to </span>
<a name="l00057"></a>00057 <span class="comment"> * the compiler about the expected result of an expression. Some compilers</span>
<a name="l00058"></a>00058 <span class="comment"> * can use this information for optimizations.</span>
<a name="l00059"></a>00059 <span class="comment"> *</span>
<a name="l00060"></a>00060 <span class="comment"> * The _DBUS_BOOLEAN_EXPR macro is intended to trigger a gcc warning when</span>
<a name="l00061"></a>00061 <span class="comment"> * putting assignments in the macro arg</span>
<a name="l00062"></a>00062 <span class="comment"> */</span>
<a name="l00063"></a>00063 <span class="preprocessor">#if defined(__GNUC__) &amp;&amp; (__GNUC__ &gt; 2) &amp;&amp; defined(__OPTIMIZE__)</span>
<a name="l00064"></a>00064 <span class="preprocessor"></span><span class="preprocessor">#define _DBUS_BOOLEAN_EXPR(expr)                \</span>
<a name="l00065"></a>00065 <span class="preprocessor"> __extension__ ({                               \</span>
<a name="l00066"></a>00066 <span class="preprocessor">   int _dbus_boolean_var_;                      \</span>
<a name="l00067"></a>00067 <span class="preprocessor">   if (expr)                                    \</span>
<a name="l00068"></a>00068 <span class="preprocessor">      _dbus_boolean_var_ = 1;                   \</span>
<a name="l00069"></a>00069 <span class="preprocessor">   else                                         \</span>
<a name="l00070"></a>00070 <span class="preprocessor">      _dbus_boolean_var_ = 0;                   \</span>
<a name="l00071"></a>00071 <span class="preprocessor">   _dbus_boolean_var_;                          \</span>
<a name="l00072"></a>00072 <span class="preprocessor">})</span>
<a name="l00073"></a>00073 <span class="preprocessor"></span><span class="preprocessor">#define _DBUS_LIKELY(expr) (__builtin_expect (_DBUS_BOOLEAN_EXPR(expr), 1))</span>
<a name="l00074"></a>00074 <span class="preprocessor"></span><span class="preprocessor">#define _DBUS_UNLIKELY(expr) (__builtin_expect (_DBUS_BOOLEAN_EXPR(expr), 0))</span>
<a name="l00075"></a>00075 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00076"></a>00076 <span class="preprocessor"></span><span class="preprocessor">#define _DBUS_LIKELY(expr) (expr)</span>
<a name="l00077"></a>00077 <span class="preprocessor"></span><span class="preprocessor">#define _DBUS_UNLIKELY(expr) (expr)</span>
<a name="l00078"></a>00078 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00079"></a>00079 <span class="preprocessor"></span>
<a name="l00080"></a>00080 <span class="preprocessor">#ifdef DBUS_ENABLE_VERBOSE_MODE</span>
<a name="l00081"></a>00081 <span class="preprocessor"></span>
<a name="l00082"></a>00082 <span class="comment">/*</span>
<a name="l00083"></a>00083 <span class="comment"> at least gnu cc and msvc compiler are known to </span>
<a name="l00084"></a>00084 <span class="comment"> have support for variable macro argument lists</span>
<a name="l00085"></a>00085 <span class="comment"> add other compilers is required</span>
<a name="l00086"></a>00086 <span class="comment">*/</span>
<a name="l00087"></a>00087 <span class="preprocessor">#if defined(__GNUC__) || defined(_MSC_VER) </span>
<a name="l00088"></a>00088 <span class="preprocessor"></span><span class="preprocessor">#define DBUS_CPP_SUPPORTS_VARIABLE_MACRO_ARGUMENTS</span>
<a name="l00089"></a>00089 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00090"></a>00090 <span class="preprocessor"></span>
<a name="l00091"></a>00091 <span class="preprocessor">#ifdef DBUS_CPP_SUPPORTS_VARIABLE_MACRO_ARGUMENTS</span>
<a name="l00092"></a>00092 <span class="preprocessor"></span><span class="keywordtype">void</span> _dbus_verbose_real       (<span class="keyword">const</span> <span class="keywordtype">char</span> *file, <span class="keyword">const</span> <span class="keywordtype">int</span> line, <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">function</span>, 
<a name="l00093"></a>00093                                <span class="keyword">const</span> <span class="keywordtype">char</span> *format,...) _DBUS_GNUC_PRINTF (4, 5);
<a name="l00094"></a>00094 <span class="preprocessor">#  define _dbus_verbose(fmt,...) _dbus_verbose_real( __FILE__,__LINE__,__FUNCTION__,fmt, ## __VA_ARGS__)</span>
<a name="l00095"></a>00095 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00096"></a>00096 <span class="preprocessor"></span><span class="keywordtype">void</span> _dbus_verbose_real       (<span class="keyword">const</span> <span class="keywordtype">char</span> *format,
<a name="l00097"></a>00097                                ...) _DBUS_GNUC_PRINTF (1, 2);
<a name="l00098"></a>00098 <span class="preprocessor">#  define _dbus_verbose _dbus_verbose_real</span>
<a name="l00099"></a>00099 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00100"></a>00100 <span class="preprocessor"></span><span class="keywordtype">void</span> _dbus_verbose_reset_real (<span class="keywordtype">void</span>);
<a name="l00101"></a>00101 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> _dbus_is_verbose_real (<span class="keywordtype">void</span>);
<a name="l00102"></a>00102 
<a name="l00103"></a>00103 <span class="preprocessor">#  define _dbus_verbose_reset _dbus_verbose_reset_real</span>
<a name="l00104"></a>00104 <span class="preprocessor"></span><span class="preprocessor">#  define _dbus_is_verbose _dbus_is_verbose_real</span>
<a name="l00105"></a>00105 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00106"></a>00106 <span class="preprocessor"></span><span class="preprocessor">#  ifdef HAVE_ISO_VARARGS</span>
<a name="l00107"></a>00107 <span class="preprocessor"></span><span class="preprocessor">#    define _dbus_verbose(...) do { } while (0)</span>
<a name="l00108"></a>00108 <span class="preprocessor"></span><span class="preprocessor">#  elif defined (HAVE_GNUC_VARARGS)</span>
<a name="l00109"></a>00109 <span class="preprocessor"></span><span class="preprocessor">#    define _dbus_verbose(format...) do { } while (0)</span>
<a name="l00110"></a>00110 <span class="preprocessor"></span><span class="preprocessor">#  else</span>
<a name="l00111"></a>00111 <span class="preprocessor"></span><span class="keyword">static</span> <span class="keywordtype">void</span> _dbus_verbose(<span class="keyword">const</span> <span class="keywordtype">char</span> * x,...) {;}
<a name="l00112"></a>00112 <span class="preprocessor">#  endif</span>
<a name="l00113"></a>00113 <span class="preprocessor"></span><span class="preprocessor">#  define _dbus_verbose_reset() do { } while (0)</span>
<a name="l00114"></a>00114 <span class="preprocessor"></span><span class="preprocessor">#  define _dbus_is_verbose() FALSE </span>
<a name="l00115"></a>00115 <span class="preprocessor"></span><span class="preprocessor">#endif </span><span class="comment">/* !DBUS_ENABLE_VERBOSE_MODE */</span>
<a name="l00116"></a>00116 
<a name="l00117"></a>00117 <span class="keywordtype">void</span> _dbus_trace_ref (<span class="keyword">const</span> <span class="keywordtype">char</span> *obj_name,
<a name="l00118"></a>00118                       <span class="keywordtype">void</span>       *obj,
<a name="l00119"></a>00119                       <span class="keywordtype">int</span>         old_refcount,
<a name="l00120"></a>00120                       <span class="keywordtype">int</span>         new_refcount,
<a name="l00121"></a>00121                       <span class="keyword">const</span> <span class="keywordtype">char</span> *why,
<a name="l00122"></a>00122                       <span class="keyword">const</span> <span class="keywordtype">char</span> *env_var,
<a name="l00123"></a>00123                       <span class="keywordtype">int</span>        *enabled);
<a name="l00124"></a>00124 
<a name="l00125"></a>00125 <span class="keyword">const</span> <span class="keywordtype">char</span>* _dbus_strerror (<span class="keywordtype">int</span> error_number);
<a name="l00126"></a>00126 
<a name="l00127"></a>00127 <span class="preprocessor">#ifdef DBUS_DISABLE_ASSERT</span>
<a name="l00128"></a>00128 <span class="preprocessor"></span><span class="preprocessor">#define _dbus_assert(condition) do { } while (0)</span>
<a name="l00129"></a>00129 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00130"></a>00130 <span class="preprocessor"></span><span class="keywordtype">void</span> <a class="code" href="group__DBusInternalsUtils.html#ga9912f2c86e49357eb9729729dd46f50d" title="Internals of _dbus_assert(); it&#39;s a function rather than a macro with the inline code so that the ass...">_dbus_real_assert</a> (<a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a>  condition,
<a name="l00131"></a>00131                         <span class="keyword">const</span> <span class="keywordtype">char</span>  *condition_text,
<a name="l00132"></a>00132                         <span class="keyword">const</span> <span class="keywordtype">char</span>  *file,
<a name="l00133"></a>00133                         <span class="keywordtype">int</span>          line,
<a name="l00134"></a>00134                         <span class="keyword">const</span> <span class="keywordtype">char</span>  *func);
<a name="l00135"></a>00135 <span class="preprocessor">#define _dbus_assert(condition)                                         \</span>
<a name="l00136"></a>00136 <span class="preprocessor">  _dbus_real_assert ((condition) != 0, #condition, __FILE__, __LINE__, _DBUS_FUNCTION_NAME)</span>
<a name="l00137"></a>00137 <span class="preprocessor"></span><span class="preprocessor">#endif </span><span class="comment">/* !DBUS_DISABLE_ASSERT */</span>
<a name="l00138"></a>00138 
<a name="l00139"></a>00139 <span class="preprocessor">#ifdef DBUS_DISABLE_ASSERT</span>
<a name="l00140"></a>00140 <span class="preprocessor"></span><span class="preprocessor">#define _dbus_assert_not_reached(explanation) do { } while (0)</span>
<a name="l00141"></a>00141 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00142"></a>00142 <span class="preprocessor"></span><span class="keywordtype">void</span> <a class="code" href="group__DBusInternalsUtils.html#ga3de125028afc39ab16e6585add8ad181" title="Internals of _dbus_assert_not_reached(); it&#39;s a function rather than a macro with the inline code so ...">_dbus_real_assert_not_reached</a> (<span class="keyword">const</span> <span class="keywordtype">char</span> *explanation,
<a name="l00143"></a>00143                                     <span class="keyword">const</span> <span class="keywordtype">char</span> *file,
<a name="l00144"></a>00144                                     <span class="keywordtype">int</span>         line) _DBUS_GNUC_NORETURN;
<a name="l00145"></a>00145 <span class="preprocessor">#define _dbus_assert_not_reached(explanation)                                   \</span>
<a name="l00146"></a>00146 <span class="preprocessor">  _dbus_real_assert_not_reached (explanation, __FILE__, __LINE__)</span>
<a name="l00147"></a>00147 <span class="preprocessor"></span><span class="preprocessor">#endif </span><span class="comment">/* !DBUS_DISABLE_ASSERT */</span>
<a name="l00148"></a>00148 
<a name="l00149"></a>00149 <span class="preprocessor">#ifdef DBUS_DISABLE_CHECKS</span>
<a name="l00150"></a>00150 <span class="preprocessor"></span><span class="preprocessor">#define _dbus_return_if_fail(condition)</span>
<a name="l00151"></a>00151 <span class="preprocessor"></span><span class="preprocessor">#define _dbus_return_val_if_fail(condition, val)</span>
<a name="l00152"></a>00152 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00153"></a>00153 <span class="preprocessor"></span>
<a name="l00154"></a>00154 <span class="keyword">extern</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="group__DBusInternalsUtils.html#ga748d6ccfb8090bf9f0bf338946c8f5e2" title="String used in _dbus_return_if_fail macro.">_dbus_return_if_fail_warning_format</a>;
<a name="l00155"></a>00155 
<a name="l00156"></a>00156 <span class="preprocessor">#define _dbus_return_if_fail(condition) do {                                       \</span>
<a name="l00157"></a>00157 <span class="preprocessor">   _dbus_assert ((*(const char*)_DBUS_FUNCTION_NAME) != &#39;_&#39;);                      \</span>
<a name="l00158"></a>00158 <span class="preprocessor">  if (!(condition)) {                                                              \</span>
<a name="l00159"></a>00159 <span class="preprocessor">    _dbus_warn_check_failed (_dbus_return_if_fail_warning_format,                  \</span>
<a name="l00160"></a>00160 <span class="preprocessor">                             _DBUS_FUNCTION_NAME, #condition, __FILE__, __LINE__); \</span>
<a name="l00161"></a>00161 <span class="preprocessor">    return;                                                                        \</span>
<a name="l00162"></a>00162 <span class="preprocessor">  } } while (0)</span>
<a name="l00163"></a>00163 <span class="preprocessor"></span>
<a name="l00164"></a>00164 <span class="preprocessor">#define _dbus_return_val_if_fail(condition, val) do {                                   \</span>
<a name="l00165"></a>00165 <span class="preprocessor">   _dbus_assert ((*(const char*)_DBUS_FUNCTION_NAME) != &#39;_&#39;);                           \</span>
<a name="l00166"></a>00166 <span class="preprocessor">  if (!(condition)) {                                                                   \</span>
<a name="l00167"></a>00167 <span class="preprocessor">    _dbus_warn_check_failed (_dbus_return_if_fail_warning_format,                       \</span>
<a name="l00168"></a>00168 <span class="preprocessor">                             _DBUS_FUNCTION_NAME, #condition, __FILE__, __LINE__);      \</span>
<a name="l00169"></a>00169 <span class="preprocessor">    return (val);                                                                       \</span>
<a name="l00170"></a>00170 <span class="preprocessor">  } } while (0)</span>
<a name="l00171"></a>00171 <span class="preprocessor"></span>
<a name="l00172"></a>00172 <span class="preprocessor">#endif </span><span class="comment">/* !DBUS_DISABLE_ASSERT */</span>
<a name="l00173"></a>00173 
<a name="l00174"></a>00174 <span class="preprocessor">#define _DBUS_N_ELEMENTS(array) ((int) (sizeof ((array)) / sizeof ((array)[0])))</span>
<a name="l00175"></a>00175 <span class="preprocessor"></span>
<a name="l00176"></a>00176 <span class="preprocessor">#define _DBUS_POINTER_TO_INT(pointer) ((intptr_t)(pointer))</span>
<a name="l00177"></a>00177 <span class="preprocessor"></span><span class="preprocessor">#define _DBUS_INT_TO_POINTER(integer) ((void*)((intptr_t)(integer)))</span>
<a name="l00178"></a>00178 <span class="preprocessor"></span>
<a name="l00179"></a>00179 <span class="preprocessor">#define _DBUS_ZERO(object) (memset (&amp;(object), &#39;\0&#39;, sizeof ((object))))</span>
<a name="l00180"></a>00180 <span class="preprocessor"></span>
<a name="l00181"></a>00181 <span class="preprocessor">#define _DBUS_STRUCT_OFFSET(struct_type, member)        \</span>
<a name="l00182"></a>00182 <span class="preprocessor">    ((intptr_t) ((unsigned char*) &amp;((struct_type*) 0)-&gt;member))</span>
<a name="l00183"></a>00183 <span class="preprocessor"></span>
<a name="l00184"></a>00184 <span class="preprocessor">#ifdef DBUS_DISABLE_CHECKS</span>
<a name="l00185"></a>00185 <span class="preprocessor"></span><span class="comment">/* this is an assert and not an error, but in the typical --disable-checks case (you&#39;re trying</span>
<a name="l00186"></a>00186 <span class="comment"> * to really minimize code size), disabling these assertions makes sense.</span>
<a name="l00187"></a>00187 <span class="comment"> */</span>
<a name="l00188"></a>00188 <span class="preprocessor">#define _DBUS_ASSERT_ERROR_IS_SET(error) do { } while (0)</span>
<a name="l00189"></a>00189 <span class="preprocessor"></span><span class="preprocessor">#define _DBUS_ASSERT_ERROR_IS_CLEAR(error) do { } while (0)</span>
<a name="l00190"></a>00190 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00191"></a>00191 <span class="preprocessor"></span><span class="preprocessor">#define _DBUS_ASSERT_ERROR_IS_SET(error)   _dbus_assert ((error) == NULL || dbus_error_is_set ((error)))</span>
<a name="l00192"></a>00192 <span class="preprocessor"></span><span class="preprocessor">#define _DBUS_ASSERT_ERROR_IS_CLEAR(error) _dbus_assert ((error) == NULL || !dbus_error_is_set ((error)))</span>
<a name="l00193"></a>00193 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00194"></a>00194 <span class="preprocessor"></span>
<a name="l00195"></a>00195 <span class="preprocessor">#define _dbus_return_if_error_is_set(error) _dbus_return_if_fail ((error) == NULL || !dbus_error_is_set ((error)))</span>
<a name="l00196"></a>00196 <span class="preprocessor"></span><span class="preprocessor">#define _dbus_return_val_if_error_is_set(error, val) _dbus_return_val_if_fail ((error) == NULL || !dbus_error_is_set ((error)), (val))</span>
<a name="l00197"></a>00197 <span class="preprocessor"></span>
<a name="l00198"></a>00198 <span class="comment">/* This alignment thing is from ORBit2 */</span>
<a name="l00199"></a>00199 <span class="comment">/* Align a value upward to a boundary, expressed as a number of bytes.</span>
<a name="l00200"></a>00200 <span class="comment"> * E.g. align to an 8-byte boundary with argument of 8.</span>
<a name="l00201"></a>00201 <span class="comment"> */</span>
<a name="l00202"></a>00202 
<a name="l00203"></a>00203 <span class="comment">/*</span>
<a name="l00204"></a>00204 <span class="comment"> *   (this + boundary - 1)</span>
<a name="l00205"></a>00205 <span class="comment"> *          &amp;</span>
<a name="l00206"></a>00206 <span class="comment"> *    ~(boundary - 1)</span>
<a name="l00207"></a>00207 <span class="comment"> */</span>
<a name="l00208"></a>00208 
<a name="l00209"></a>00209 <span class="preprocessor">#define _DBUS_ALIGN_VALUE(this, boundary) \</span>
<a name="l00210"></a>00210 <span class="preprocessor">  (( ((uintptr_t)(this)) + (((uintptr_t)(boundary)) -1)) &amp; (~(((uintptr_t)(boundary))-1)))</span>
<a name="l00211"></a>00211 <span class="preprocessor"></span>
<a name="l00212"></a>00212 <span class="preprocessor">#define _DBUS_ALIGN_ADDRESS(this, boundary) \</span>
<a name="l00213"></a>00213 <span class="preprocessor">  ((void*)_DBUS_ALIGN_VALUE(this, boundary))</span>
<a name="l00214"></a>00214 <span class="preprocessor"></span>
<a name="l00215"></a>00215 
<a name="l00216"></a>00216 <span class="keywordtype">char</span>*       <a class="code" href="group__DBusInternalsUtils.html#ga9d00d77f6595b9d7ac1baf59d44bf58c" title="Duplicates a string.">_dbus_strdup</a>                (<span class="keyword">const</span> <span class="keywordtype">char</span>  *str);
<a name="l00217"></a>00217 <span class="keywordtype">void</span>*       <a class="code" href="group__DBusInternalsUtils.html#gaad95864dca5140b730bc143cb2d1b024" title="Duplicates a block of memory.">_dbus_memdup</a>                (<span class="keyword">const</span> <span class="keywordtype">void</span>  *mem,
<a name="l00218"></a>00218                                          <span class="keywordtype">size_t</span>       n_bytes);
<a name="l00219"></a>00219 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusInternalsUtils.html#ga751119e7273225a7e59787445b71fcd6" title="Checks whether a string array contains the given string.">_dbus_string_array_contains</a> (<span class="keyword">const</span> <span class="keywordtype">char</span> **array,
<a name="l00220"></a>00220                                          <span class="keyword">const</span> <span class="keywordtype">char</span>  *str);
<a name="l00221"></a>00221 <span class="keywordtype">char</span>**      <a class="code" href="group__DBusInternalsUtils.html#ga53bbcbbd0b564c14c599813dde535443" title="Duplicates a string array.">_dbus_dup_string_array</a>      (<span class="keyword">const</span> <span class="keywordtype">char</span> **array);
<a name="l00222"></a>00222 
<a name="l00223"></a>00223 <span class="preprocessor">#define _DBUS_INT16_MIN  ((dbus_int16_t) 0x8000)</span>
<a name="l00224"></a>00224 <span class="preprocessor"></span><span class="preprocessor">#define _DBUS_INT16_MAX  ((dbus_int16_t) 0x7fff)</span>
<a name="l00225"></a>00225 <span class="preprocessor"></span><span class="preprocessor">#define _DBUS_UINT16_MAX ((dbus_uint16_t)0xffff)</span>
<a name="l00226"></a>00226 <span class="preprocessor"></span><span class="preprocessor">#define _DBUS_INT32_MIN  ((dbus_int32_t) 0x80000000)</span>
<a name="l00227"></a>00227 <span class="preprocessor"></span><span class="preprocessor">#define _DBUS_INT32_MAX  ((dbus_int32_t) 0x7fffffff)</span>
<a name="l00228"></a>00228 <span class="preprocessor"></span><span class="preprocessor">#define _DBUS_UINT32_MAX ((dbus_uint32_t)0xffffffff)</span>
<a name="l00229"></a>00229 <span class="preprocessor"></span><span class="comment">/* using 32-bit here is sort of bogus */</span>
<a name="l00230"></a>00230 <span class="preprocessor">#define _DBUS_INT_MIN    _DBUS_INT32_MIN</span>
<a name="l00231"></a>00231 <span class="preprocessor"></span><span class="preprocessor">#define _DBUS_INT_MAX    _DBUS_INT32_MAX</span>
<a name="l00232"></a>00232 <span class="preprocessor"></span><span class="preprocessor">#define _DBUS_UINT_MAX   _DBUS_UINT32_MAX</span>
<a name="l00233"></a>00233 <span class="preprocessor"></span><span class="preprocessor">#define _DBUS_INT64_MAX  DBUS_INT64_CONSTANT  (0x7fffffffffffffff)</span>
<a name="l00234"></a>00234 <span class="preprocessor"></span><span class="preprocessor">#define _DBUS_UINT64_MAX DBUS_UINT64_CONSTANT (0xffffffffffffffff)</span>
<a name="l00235"></a>00235 <span class="preprocessor"></span><span class="preprocessor">#define _DBUS_ONE_KILOBYTE 1024</span>
<a name="l00236"></a>00236 <span class="preprocessor"></span><span class="preprocessor">#define _DBUS_ONE_MEGABYTE 1024 * _DBUS_ONE_KILOBYTE</span>
<a name="l00237"></a>00237 <span class="preprocessor"></span><span class="preprocessor">#define _DBUS_ONE_HOUR_IN_MILLISECONDS (1000 * 60 * 60)</span>
<a name="l00238"></a>00238 <span class="preprocessor"></span><span class="preprocessor">#define _DBUS_USEC_PER_SECOND          (1000000)</span>
<a name="l00239"></a>00239 <span class="preprocessor"></span>
<a name="l00240"></a>00240 <span class="preprocessor">#undef  MAX</span>
<a name="l00241"></a>00241 <span class="preprocessor"></span><span class="preprocessor">#define MAX(a, b)  (((a) &gt; (b)) ? (a) : (b))</span>
<a name="l00242"></a>00242 <span class="preprocessor"></span>
<a name="l00243"></a>00243 <span class="preprocessor">#undef  MIN</span>
<a name="l00244"></a>00244 <span class="preprocessor"></span><span class="preprocessor">#define MIN(a, b)  (((a) &lt; (b)) ? (a) : (b))</span>
<a name="l00245"></a>00245 <span class="preprocessor"></span>
<a name="l00246"></a>00246 <span class="preprocessor">#undef  ABS</span>
<a name="l00247"></a>00247 <span class="preprocessor"></span><span class="preprocessor">#define ABS(a)     (((a) &lt; 0) ? -(a) : (a))</span>
<a name="l00248"></a>00248 <span class="preprocessor"></span>
<a name="l00249"></a>00249 <span class="preprocessor">#define _DBUS_ISASCII(c) ((c) != &#39;\0&#39; &amp;&amp; (((c) &amp; ~0x7f) == 0))</span>
<a name="l00250"></a>00250 <span class="preprocessor"></span>
<a name="l00251"></a>00251 <span class="keyword">typedef</span> void (* DBusForeachFunction) (<span class="keywordtype">void</span> *element,
<a name="l00252"></a>00252                                       <span class="keywordtype">void</span> *data);
<a name="l00253"></a>00253 
<a name="l00254"></a>00254 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> _dbus_set_fd_nonblocking (<span class="keywordtype">int</span>             fd,
<a name="l00255"></a>00255                                       <a class="code" href="structDBusError.html" title="Object representing an exception.">DBusError</a>      *error);
<a name="l00256"></a>00256 
<a name="l00257"></a>00257 <span class="keywordtype">void</span> <a class="code" href="group__DBusMarshal.html#ga7f3320a0b0f7633cdf5c149588ae9bd9" title="If in verbose mode, print a block of binary data.">_dbus_verbose_bytes</a>           (<span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *data,
<a name="l00258"></a>00258                                     <span class="keywordtype">int</span>                  len,
<a name="l00259"></a>00259                                     <span class="keywordtype">int</span>                  offset);
<a name="l00260"></a>00260 <span class="keywordtype">void</span> <a class="code" href="group__DBusMarshal.html#ga3926bb35edf78d114cf0c341fe3258e0" title="Dump the given part of the string to verbose log.">_dbus_verbose_bytes_of_string</a> (<span class="keyword">const</span> <a class="code" href="structDBusString.html">DBusString</a>    *str,
<a name="l00261"></a>00261                                     <span class="keywordtype">int</span>                  start,
<a name="l00262"></a>00262                                     <span class="keywordtype">int</span>                  len);
<a name="l00263"></a>00263 
<a name="l00264"></a>00264 <span class="keyword">extern</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="group__DBusInternalsUtils.html#gadb458811a027c9bbae57216a4c33a5f7" title="Fixed &quot;out of memory&quot; error message, just to avoid making up a different string every time and wastin...">_dbus_no_memory_message</a>;
<a name="l00265"></a>00265 <span class="preprocessor">#define _DBUS_SET_OOM(error) dbus_set_error_const ((error), DBUS_ERROR_NO_MEMORY, _dbus_no_memory_message)</span>
<a name="l00266"></a>00266 <span class="preprocessor"></span>
<a name="l00267"></a>00267 <span class="preprocessor">#ifdef DBUS_ENABLE_EMBEDDED_TESTS</span>
<a name="l00268"></a>00268 <span class="preprocessor"></span><span class="comment">/* Memory debugging */</span>
<a name="l00269"></a>00269 <span class="keywordtype">void</span>        _dbus_set_fail_alloc_counter        (<span class="keywordtype">int</span>  until_next_fail);
<a name="l00270"></a>00270 <span class="keywordtype">int</span>         _dbus_get_fail_alloc_counter        (<span class="keywordtype">void</span>);
<a name="l00271"></a>00271 <span class="keywordtype">void</span>        _dbus_set_fail_alloc_failures       (<span class="keywordtype">int</span>  failures_per_failure);
<a name="l00272"></a>00272 <span class="keywordtype">int</span>         _dbus_get_fail_alloc_failures       (<span class="keywordtype">void</span>);
<a name="l00273"></a>00273 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> _dbus_decrement_fail_alloc_counter  (<span class="keywordtype">void</span>);
<a name="l00274"></a>00274 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> _dbus_disable_mem_pools             (<span class="keywordtype">void</span>);
<a name="l00275"></a>00275 <span class="keywordtype">int</span>         _dbus_get_malloc_blocks_outstanding (<span class="keywordtype">void</span>);
<a name="l00276"></a>00276 
<a name="l00277"></a>00277 <span class="keyword">typedef</span> <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> (* DBusTestMemoryFunction)  (<span class="keywordtype">void</span> *data);
<a name="l00278"></a>00278 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> _dbus_test_oom_handling (<span class="keyword">const</span> <span class="keywordtype">char</span>             *description,
<a name="l00279"></a>00279                                      DBusTestMemoryFunction  func,
<a name="l00280"></a>00280                                      <span class="keywordtype">void</span>                   *data);
<a name="l00281"></a>00281 <span class="preprocessor">#else</span>
<a name="l00282"></a>00282 <span class="preprocessor"></span><span class="preprocessor">#define _dbus_set_fail_alloc_counter(n)</span>
<a name="l00283"></a>00283 <span class="preprocessor"></span><span class="preprocessor">#define _dbus_get_fail_alloc_counter _DBUS_INT_MAX</span>
<a name="l00284"></a>00284 <span class="preprocessor"></span>
<a name="l00285"></a>00285 <span class="comment">/* These are constant expressions so that blocks</span>
<a name="l00286"></a>00286 <span class="comment"> * they protect should be optimized away</span>
<a name="l00287"></a>00287 <span class="comment"> */</span>
<a name="l00288"></a>00288 <span class="preprocessor">#define _dbus_decrement_fail_alloc_counter() (FALSE)</span>
<a name="l00289"></a>00289 <span class="preprocessor"></span><span class="preprocessor">#define _dbus_disable_mem_pools()            (FALSE)</span>
<a name="l00290"></a>00290 <span class="preprocessor"></span><span class="preprocessor">#define _dbus_get_malloc_blocks_outstanding  (0)</span>
<a name="l00291"></a>00291 <span class="preprocessor"></span><span class="preprocessor">#endif </span><span class="comment">/* !DBUS_ENABLE_EMBEDDED_TESTS */</span>
<a name="l00292"></a>00292 
<a name="l00293"></a>00293 <span class="keyword">typedef</span> void (* DBusShutdownFunction) (<span class="keywordtype">void</span> *data);
<a name="l00294"></a>00294 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusMemoryInternals.html#ga8dc6d5dd0a0e7901ab793da7403ee734" title="Register a cleanup function to be called exactly once the next time dbus_shutdown() is called...">_dbus_register_shutdown_func</a>          (DBusShutdownFunction  <span class="keyword">function</span>,
<a name="l00295"></a>00295                                                    <span class="keywordtype">void</span>                 *data);
<a name="l00296"></a>00296 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> _dbus_register_shutdown_func_unlocked (DBusShutdownFunction  <span class="keyword">function</span>,
<a name="l00297"></a>00297                                                    <span class="keywordtype">void</span>                 *data);
<a name="l00298"></a>00298 
<a name="l00299"></a>00299 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="group__DBusMemoryInternals.html#ga7c224d82013e2bdc181c1d85dcb6f295" title="_dbus_current_generation is used to track each time that dbus_shutdown() is called, so we can reinit things after it&#39;s been called.">_dbus_current_generation</a>;
<a name="l00300"></a>00300 
<a name="l00301"></a>00301 <span class="comment">/* The weird case convention is to avoid having to change all the callers,</span>
<a name="l00302"></a>00302 <span class="comment"> * which would be quite a mega-patch. */</span>
<a name="l00303"></a>00303 <span class="keyword">typedef</span> <span class="keyword">enum</span>
<a name="l00304"></a>00304 {
<a name="l00305"></a>00305   <span class="comment">/* index 0-4 */</span>
<a name="l00306"></a>00306   _DBUS_LOCK_list,
<a name="l00307"></a>00307   _DBUS_LOCK_connection_slots,
<a name="l00308"></a>00308   _DBUS_LOCK_pending_call_slots,
<a name="l00309"></a>00309   _DBUS_LOCK_server_slots,
<a name="l00310"></a>00310   _DBUS_LOCK_message_slots,
<a name="l00311"></a>00311   <span class="comment">/* index 5-9 */</span>
<a name="l00312"></a>00312   _DBUS_LOCK_bus,
<a name="l00313"></a>00313   _DBUS_LOCK_bus_datas,
<a name="l00314"></a>00314   _DBUS_LOCK_shutdown_funcs,
<a name="l00315"></a>00315   _DBUS_LOCK_system_users,
<a name="l00316"></a>00316   _DBUS_LOCK_message_cache,
<a name="l00317"></a>00317   <span class="comment">/* index 10-12 */</span>
<a name="l00318"></a>00318   _DBUS_LOCK_shared_connections,
<a name="l00319"></a>00319   _DBUS_LOCK_machine_uuid,
<a name="l00320"></a>00320   _DBUS_LOCK_sysdeps,
<a name="l00321"></a>00321 
<a name="l00322"></a>00322   _DBUS_N_GLOBAL_LOCKS
<a name="l00323"></a>00323 } DBusGlobalLock;
<a name="l00324"></a>00324 
<a name="l00325"></a>00325 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> _dbus_lock   (DBusGlobalLock lock) _DBUS_GNUC_WARN_UNUSED_RESULT;
<a name="l00326"></a>00326 <span class="keywordtype">void</span>        _dbus_unlock (DBusGlobalLock lock);
<a name="l00327"></a>00327 
<a name="l00328"></a>00328 <span class="preprocessor">#define _DBUS_LOCK_NAME(name)           _DBUS_LOCK_##name</span>
<a name="l00329"></a>00329 <span class="preprocessor"></span><span class="preprocessor">#define _DBUS_LOCK(name)                _dbus_lock   (_DBUS_LOCK_##name)</span>
<a name="l00330"></a>00330 <span class="preprocessor"></span><span class="preprocessor">#define _DBUS_UNLOCK(name)              _dbus_unlock (_DBUS_LOCK_##name)</span>
<a name="l00331"></a>00331 <span class="preprocessor"></span>
<a name="l00332"></a>00332 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> _dbus_threads_init_debug (<span class="keywordtype">void</span>);
<a name="l00333"></a>00333 
<a name="l00334"></a>00334 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a>   <a class="code" href="group__DBusAddressInternals.html#ga1ecc2f460303cd70c34e7667e8b12b37" title="Appends an escaped version of one string to another string, using the D-Bus address escaping mechanis...">_dbus_address_append_escaped</a> (<a class="code" href="structDBusString.html">DBusString</a>       *escaped,
<a name="l00335"></a>00335                                             <span class="keyword">const</span> <a class="code" href="structDBusString.html">DBusString</a> *unescaped);
<a name="l00336"></a>00336 
<a name="l00337"></a>00337 <span class="keywordtype">void</span>          <a class="code" href="group__DBusAddressInternals.html#ga5b6409826263c7d62570c56889f7ddb2" title="Sets DBUS_ERROR_BAD_ADDRESS.">_dbus_set_bad_address</a>        (<a class="code" href="structDBusError.html" title="Object representing an exception.">DBusError</a>         *error,
<a name="l00338"></a>00338                                             <span class="keyword">const</span> <span class="keywordtype">char</span>        *address_problem_type,
<a name="l00339"></a>00339                                             <span class="keyword">const</span> <span class="keywordtype">char</span>        *address_problem_field,
<a name="l00340"></a>00340                                             <span class="keyword">const</span> <span class="keywordtype">char</span>        *address_problem_other);
<a name="l00341"></a>00341 
<a name="l00342"></a>00342 <span class="preprocessor">#define DBUS_UUID_LENGTH_BYTES 16</span>
<a name="l00343"></a>00343 <span class="preprocessor"></span><span class="preprocessor">#define DBUS_UUID_LENGTH_WORDS (DBUS_UUID_LENGTH_BYTES / 4)</span>
<a name="l00344"></a>00344 <span class="preprocessor"></span><span class="preprocessor">#define DBUS_UUID_LENGTH_HEX   (DBUS_UUID_LENGTH_BYTES * 2)</span>
<a name="l00345"></a>00345 <span class="preprocessor"></span>
<a name="l00350"></a>00350 <span class="keyword">union </span><a class="code" href="group__DBusSysdeps.html#ga24015a2f75b94c1307360755ce97f869" title="Type representing a universally unique ID.">DBusGUID</a>
<a name="l00351"></a>00351 {
<a name="l00352"></a>00352   <a class="code" href="group__DBusTypes.html#gaf513803b030613a669cc7ef199f90a8b" title="A 32-bit unsigned integer on all platforms.">dbus_uint32_t</a> as_uint32s[DBUS_UUID_LENGTH_WORDS];     
<a name="l00353"></a>00353   <span class="keywordtype">char</span> as_bytes[DBUS_UUID_LENGTH_BYTES];                
<a name="l00354"></a>00354 };
<a name="l00355"></a>00355 
<a name="l00356"></a>00356 <span class="keywordtype">void</span>        <a class="code" href="group__DBusInternalsUtils.html#ga08c2922335845e5c857e88399436b9ba" title="Generates a new UUID.">_dbus_generate_uuid</a>  (<a class="code" href="group__DBusSysdeps.html#ga24015a2f75b94c1307360755ce97f869" title="Type representing a universally unique ID.">DBusGUID</a>         *uuid);
<a name="l00357"></a>00357 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusInternalsUtils.html#gaf08364813376bd2d8f455d435d85323e" title="Hex-encode a UUID.">_dbus_uuid_encode</a>    (<span class="keyword">const</span> <a class="code" href="group__DBusSysdeps.html#ga24015a2f75b94c1307360755ce97f869" title="Type representing a universally unique ID.">DBusGUID</a>   *uuid,
<a name="l00358"></a>00358                                   <a class="code" href="structDBusString.html">DBusString</a>       *encoded);
<a name="l00359"></a>00359 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusInternalsUtils.html#ga709fd30e6b940a5952af38efaf24ad51" title="Reads (and optionally writes) a uuid to a file.">_dbus_read_uuid_file</a> (<span class="keyword">const</span> <a class="code" href="structDBusString.html">DBusString</a> *filename,
<a name="l00360"></a>00360                                   <a class="code" href="group__DBusSysdeps.html#ga24015a2f75b94c1307360755ce97f869" title="Type representing a universally unique ID.">DBusGUID</a>         *uuid,
<a name="l00361"></a>00361                                   <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a>       create_if_not_found,
<a name="l00362"></a>00362                                   <a class="code" href="structDBusError.html" title="Object representing an exception.">DBusError</a>        *error);
<a name="l00363"></a>00363 
<a name="l00364"></a>00364 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusInternalsUtils.html#gaa16de06b33c56323fa33dd96eaab3829" title="Write the give UUID to a file.">_dbus_write_uuid_file</a> (<span class="keyword">const</span> <a class="code" href="structDBusString.html">DBusString</a> *filename,
<a name="l00365"></a>00365                                    <span class="keyword">const</span> <a class="code" href="group__DBusSysdeps.html#ga24015a2f75b94c1307360755ce97f869" title="Type representing a universally unique ID.">DBusGUID</a>   *uuid,
<a name="l00366"></a>00366                                    <a class="code" href="structDBusError.html" title="Object representing an exception.">DBusError</a>        *error);
<a name="l00367"></a>00367 
<a name="l00368"></a>00368 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusInternalsUtils.html#ga49ba67405d677af6cde9329ed87ea91f" title="Gets the hex-encoded UUID of the machine this function is executed on.">_dbus_get_local_machine_uuid_encoded</a> (<a class="code" href="structDBusString.html">DBusString</a> *uuid_str);
<a name="l00369"></a>00369 
<a name="l00370"></a>00370 <span class="preprocessor">#define _DBUS_PASTE2(a, b) a ## b</span>
<a name="l00371"></a>00371 <span class="preprocessor"></span><span class="preprocessor">#define _DBUS_PASTE(a, b) _DBUS_PASTE2 (a, b)</span>
<a name="l00372"></a>00372 <span class="preprocessor"></span><span class="preprocessor">#define _DBUS_STATIC_ASSERT(expr) \</span>
<a name="l00373"></a>00373 <span class="preprocessor">  typedef struct { char _assertion[(expr) ? 1 : -1]; } \</span>
<a name="l00374"></a>00374 <span class="preprocessor">  _DBUS_PASTE (_DBUS_STATIC_ASSERT_, __LINE__) _DBUS_GNUC_UNUSED</span>
<a name="l00375"></a>00375 <span class="preprocessor"></span>
<a name="l00376"></a>00376 <a class="code" href="group__DBusMacros.html#gae4a9263a43f8220f6e1c0fd07cf6e59a" title="Macro used after declaring functions in the D-Bus header files.">DBUS_END_DECLS</a>
<a name="l00377"></a>00377 
<a name="l00378"></a>00378 <span class="preprocessor">#endif </span><span class="comment">/* DBUS_INTERNALS_H */</span>
</pre></div></div><!-- contents -->


<hr class="footer"/><address class="footer"><small>
Generated on Thu Mar 3 2016 17:50:30 for D-Bus by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>