| Current File : //usr/share/doc/dbus/api/dbus-signature_8c_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-signature.c 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
 <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 Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="annotated.html"><span>Data 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 List</span></a></li>
</ul>
</div>
</div>
<div class="header">
<div class="headertitle">
<div class="title">dbus-signature.c</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: "gnu"; indent-tabs-mode: nil; -*- */</span>
<a name="l00002"></a>00002 <span class="comment">/* dbus-signature.c Routines for reading recursive type signatures</span>
<a name="l00003"></a>00003 <span class="comment"> *</span>
<a name="l00004"></a>00004 <span class="comment"> * Copyright (C) 2005 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
<a name="l00024"></a>00024 <span class="preprocessor">#include <config.h></span>
<a name="l00025"></a>00025
<a name="l00026"></a>00026 <span class="preprocessor">#include "dbus-signature.h"</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include "dbus-marshal-recursive.h"</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include "dbus-marshal-basic.h"</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include "dbus-internals.h"</span>
<a name="l00030"></a>00030 <span class="preprocessor">#include "dbus-test.h"</span>
<a name="l00031"></a>00031
<a name="l00035"></a><a class="code" href="structDBusSignatureRealIter.html">00035</a> <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00036"></a>00036 {
<a name="l00037"></a><a class="code" href="structDBusSignatureRealIter.html#a88eb8e63ea2550b23ab4e5a2056168c5">00037</a> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structDBusSignatureRealIter.html#a88eb8e63ea2550b23ab4e5a2056168c5" title="current position in the signature string">pos</a>;
<a name="l00038"></a><a class="code" href="structDBusSignatureRealIter.html#a54aa77a50490febee5d9b1cbce690639">00038</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> finished : 1;
<a name="l00039"></a><a class="code" href="structDBusSignatureRealIter.html#a575114ffd9f42eb84909ea6c5d912c75">00039</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> in_array : 1;
<a name="l00040"></a>00040 } <a class="code" href="structDBusSignatureRealIter.html" title="Implementation details of DBusSignatureIter, all fields are private.">DBusSignatureRealIter</a>;
<a name="l00041"></a>00041
<a name="l00043"></a>00043 <span class="preprocessor">#define TYPE_IS_CONTAINER(typecode) \</span>
<a name="l00044"></a>00044 <span class="preprocessor"> ((typecode) == DBUS_TYPE_STRUCT || \</span>
<a name="l00045"></a>00045 <span class="preprocessor"> (typecode) == DBUS_TYPE_DICT_ENTRY || \</span>
<a name="l00046"></a>00046 <span class="preprocessor"> (typecode) == DBUS_TYPE_VARIANT || \</span>
<a name="l00047"></a>00047 <span class="preprocessor"> (typecode) == DBUS_TYPE_ARRAY)</span>
<a name="l00048"></a>00048 <span class="preprocessor"></span>
<a name="l00049"></a>00049
<a name="l00066"></a>00066 <span class="keywordtype">void</span>
<a name="l00067"></a><a class="code" href="group__DBusSignature.html#gaba53b1756fe7f665d0657cc50253e3c8">00067</a> <a class="code" href="group__DBusSignature.html#gaba53b1756fe7f665d0657cc50253e3c8" title="Initializes a DBusSignatureIter for reading a type signature.">dbus_signature_iter_init</a> (<a class="code" href="structDBusSignatureIter.html" title="DBusSignatureIter struct; contains no public fields.">DBusSignatureIter</a> *iter,
<a name="l00068"></a>00068 <span class="keyword">const</span> <span class="keywordtype">char</span> *signature)
<a name="l00069"></a>00069 {
<a name="l00070"></a>00070 <a class="code" href="structDBusSignatureRealIter.html" title="Implementation details of DBusSignatureIter, all fields are private.">DBusSignatureRealIter</a> *real_iter = (<a class="code" href="structDBusSignatureRealIter.html" title="Implementation details of DBusSignatureIter, all fields are private.">DBusSignatureRealIter</a> *) iter;
<a name="l00071"></a>00071
<a name="l00072"></a>00072 real_iter-><a class="code" href="structDBusSignatureRealIter.html#a88eb8e63ea2550b23ab4e5a2056168c5" title="current position in the signature string">pos</a> = signature;
<a name="l00073"></a>00073 real_iter-><a class="code" href="structDBusSignatureRealIter.html#a54aa77a50490febee5d9b1cbce690639" title="true if we are at the end iter">finished</a> = <a class="code" href="group__DBusMacros.html#gaa93f0eb578d23995850d61f7d61c55c1" title="Expands to "0".">FALSE</a>;
<a name="l00074"></a>00074 real_iter-><a class="code" href="structDBusSignatureRealIter.html#a575114ffd9f42eb84909ea6c5d912c75" title="true if we are a subiterator pointing to an array's element type">in_array</a> = <a class="code" href="group__DBusMacros.html#gaa93f0eb578d23995850d61f7d61c55c1" title="Expands to "0".">FALSE</a>;
<a name="l00075"></a>00075 }
<a name="l00076"></a>00076
<a name="l00091"></a>00091 <span class="keywordtype">int</span>
<a name="l00092"></a><a class="code" href="group__DBusSignature.html#gac4761ce10d60d7581cfe98beb6a9c57c">00092</a> <a class="code" href="group__DBusSignature.html#gac4761ce10d60d7581cfe98beb6a9c57c" title="Returns the current type pointed to by the iterator.">dbus_signature_iter_get_current_type</a> (<span class="keyword">const</span> <a class="code" href="structDBusSignatureIter.html" title="DBusSignatureIter struct; contains no public fields.">DBusSignatureIter</a> *iter)
<a name="l00093"></a>00093 {
<a name="l00094"></a>00094 <a class="code" href="structDBusSignatureRealIter.html" title="Implementation details of DBusSignatureIter, all fields are private.">DBusSignatureRealIter</a> *real_iter = (<a class="code" href="structDBusSignatureRealIter.html" title="Implementation details of DBusSignatureIter, all fields are private.">DBusSignatureRealIter</a> *) iter;
<a name="l00095"></a>00095
<a name="l00096"></a>00096 <span class="keywordflow">return</span> <a class="code" href="group__DBusMarshal.html#ga61cc8d9c4e4217be654455d8eb45544c" title="Similar to _dbus_first_type_in_signature, but operates on a C string buffer.">_dbus_first_type_in_signature_c_str</a> (real_iter-><a class="code" href="structDBusSignatureRealIter.html#a88eb8e63ea2550b23ab4e5a2056168c5" title="current position in the signature string">pos</a>, 0);
<a name="l00097"></a>00097 }
<a name="l00098"></a>00098
<a name="l00111"></a>00111 <span class="keywordtype">char</span> *
<a name="l00112"></a><a class="code" href="group__DBusSignature.html#ga898bbc14392cbedc087ce0be68d35c98">00112</a> <a class="code" href="group__DBusSignature.html#ga898bbc14392cbedc087ce0be68d35c98" title="Returns the signature of the single complete type starting at the given iterator.">dbus_signature_iter_get_signature</a> (<span class="keyword">const</span> <a class="code" href="structDBusSignatureIter.html" title="DBusSignatureIter struct; contains no public fields.">DBusSignatureIter</a> *iter)
<a name="l00113"></a>00113 {
<a name="l00114"></a>00114 <a class="code" href="structDBusSignatureRealIter.html" title="Implementation details of DBusSignatureIter, all fields are private.">DBusSignatureRealIter</a> *real_iter = (<a class="code" href="structDBusSignatureRealIter.html" title="Implementation details of DBusSignatureIter, all fields are private.">DBusSignatureRealIter</a> *) iter;
<a name="l00115"></a>00115 <a class="code" href="structDBusString.html">DBusString</a> str;
<a name="l00116"></a>00116 <span class="keywordtype">char</span> *ret;
<a name="l00117"></a>00117 <span class="keywordtype">int</span> pos;
<a name="l00118"></a>00118
<a name="l00119"></a>00119 <span class="keywordflow">if</span> (!<a class="code" href="group__DBusString.html#ga348252317f7bb8ac43529972945830ae" title="Initializes a string.">_dbus_string_init</a> (&str))
<a name="l00120"></a>00120 <span class="keywordflow">return</span> <a class="code" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4" title="A null pointer, defined appropriately for C or C++.">NULL</a>;
<a name="l00121"></a>00121
<a name="l00122"></a>00122 pos = 0;
<a name="l00123"></a>00123 <a class="code" href="group__DBusMarshal.html#gaf2f5b2f027fa7d24f6179c6dbdf71a83" title="Skips to the next "complete" type inside a type signature.">_dbus_type_signature_next</a> (real_iter-><a class="code" href="structDBusSignatureRealIter.html#a88eb8e63ea2550b23ab4e5a2056168c5" title="current position in the signature string">pos</a>, &pos);
<a name="l00124"></a>00124
<a name="l00125"></a>00125 <span class="keywordflow">if</span> (!<a class="code" href="group__DBusString.html#ga724656b7091b910965bd1af42d0b7bab" title="Appends block of bytes with the given length to a DBusString.">_dbus_string_append_len</a> (&str, real_iter-><a class="code" href="structDBusSignatureRealIter.html#a88eb8e63ea2550b23ab4e5a2056168c5" title="current position in the signature string">pos</a>, pos))
<a name="l00126"></a>00126 <span class="keywordflow">return</span> <a class="code" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4" title="A null pointer, defined appropriately for C or C++.">NULL</a>;
<a name="l00127"></a>00127 <span class="keywordflow">if</span> (!<a class="code" href="group__DBusString.html#ga556cc30c3ab032dbc63e217119f0d1f5" title="Like _dbus_string_get_data(), but removes the gotten data from the original string.">_dbus_string_steal_data</a> (&str, &ret))
<a name="l00128"></a>00128 ret = <a class="code" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4" title="A null pointer, defined appropriately for C or C++.">NULL</a>;
<a name="l00129"></a>00129 <a class="code" href="group__DBusString.html#ga781ca91acda49a834dce7d0ed0eef212" title="Frees a string created by _dbus_string_init().">_dbus_string_free</a> (&str);
<a name="l00130"></a>00130
<a name="l00131"></a>00131 <span class="keywordflow">return</span> ret;
<a name="l00132"></a>00132 }
<a name="l00133"></a>00133
<a name="l00145"></a>00145 <span class="keywordtype">int</span>
<a name="l00146"></a><a class="code" href="group__DBusSignature.html#gaebb26dbc79dae5e11629f38b2c8277fd">00146</a> <a class="code" href="group__DBusSignature.html#gaebb26dbc79dae5e11629f38b2c8277fd" title="Convenience function for returning the element type of an array; This function allows you to avoid in...">dbus_signature_iter_get_element_type</a> (<span class="keyword">const</span> <a class="code" href="structDBusSignatureIter.html" title="DBusSignatureIter struct; contains no public fields.">DBusSignatureIter</a> *iter)
<a name="l00147"></a>00147 {
<a name="l00148"></a>00148 <a class="code" href="structDBusSignatureRealIter.html" title="Implementation details of DBusSignatureIter, all fields are private.">DBusSignatureRealIter</a> *real_iter = (<a class="code" href="structDBusSignatureRealIter.html" title="Implementation details of DBusSignatureIter, all fields are private.">DBusSignatureRealIter</a> *) iter;
<a name="l00149"></a>00149
<a name="l00150"></a>00150 _dbus_return_val_if_fail (<a class="code" href="group__DBusSignature.html#gac4761ce10d60d7581cfe98beb6a9c57c" title="Returns the current type pointed to by the iterator.">dbus_signature_iter_get_current_type</a> (iter) == <a class="code" href="group__DBusProtocol.html#ga8912f600f81a773066ca03d9163613a9" title="Type code marking a D-Bus array type.">DBUS_TYPE_ARRAY</a>, <a class="code" href="group__DBusProtocol.html#gaa9588da889743b2119dc6664712ae51e" title="Type code that is never equal to a legitimate type code.">DBUS_TYPE_INVALID</a>);
<a name="l00151"></a>00151
<a name="l00152"></a>00152 <span class="keywordflow">return</span> <a class="code" href="group__DBusMarshal.html#ga61cc8d9c4e4217be654455d8eb45544c" title="Similar to _dbus_first_type_in_signature, but operates on a C string buffer.">_dbus_first_type_in_signature_c_str</a> (real_iter-><a class="code" href="structDBusSignatureRealIter.html#a88eb8e63ea2550b23ab4e5a2056168c5" title="current position in the signature string">pos</a>, 1);
<a name="l00153"></a>00153 }
<a name="l00154"></a>00154
<a name="l00163"></a>00163 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a>
<a name="l00164"></a><a class="code" href="group__DBusSignature.html#ga90e48ef4b86180ba033727107b03bd29">00164</a> <a class="code" href="group__DBusSignature.html#ga90e48ef4b86180ba033727107b03bd29" title="Skip to the next value on this "level".">dbus_signature_iter_next</a> (<a class="code" href="structDBusSignatureIter.html" title="DBusSignatureIter struct; contains no public fields.">DBusSignatureIter</a> *iter)
<a name="l00165"></a>00165 {
<a name="l00166"></a>00166 <a class="code" href="structDBusSignatureRealIter.html" title="Implementation details of DBusSignatureIter, all fields are private.">DBusSignatureRealIter</a> *real_iter = (<a class="code" href="structDBusSignatureRealIter.html" title="Implementation details of DBusSignatureIter, all fields are private.">DBusSignatureRealIter</a> *) iter;
<a name="l00167"></a>00167
<a name="l00168"></a>00168 <span class="keywordflow">if</span> (real_iter-><a class="code" href="structDBusSignatureRealIter.html#a54aa77a50490febee5d9b1cbce690639" title="true if we are at the end iter">finished</a>)
<a name="l00169"></a>00169 <span class="keywordflow">return</span> <a class="code" href="group__DBusMacros.html#gaa93f0eb578d23995850d61f7d61c55c1" title="Expands to "0".">FALSE</a>;
<a name="l00170"></a>00170 <span class="keywordflow">else</span>
<a name="l00171"></a>00171 {
<a name="l00172"></a>00172 <span class="keywordtype">int</span> pos;
<a name="l00173"></a>00173
<a name="l00174"></a>00174 <span class="keywordflow">if</span> (real_iter-><a class="code" href="structDBusSignatureRealIter.html#a575114ffd9f42eb84909ea6c5d912c75" title="true if we are a subiterator pointing to an array's element type">in_array</a>)
<a name="l00175"></a>00175 {
<a name="l00176"></a>00176 real_iter-><a class="code" href="structDBusSignatureRealIter.html#a54aa77a50490febee5d9b1cbce690639" title="true if we are at the end iter">finished</a> = <a class="code" href="group__DBusMacros.html#gaa8cecfc5c5c054d2875c03e77b7be15d" title="Expands to "1".">TRUE</a>;
<a name="l00177"></a>00177 <span class="keywordflow">return</span> <a class="code" href="group__DBusMacros.html#gaa93f0eb578d23995850d61f7d61c55c1" title="Expands to "0".">FALSE</a>;
<a name="l00178"></a>00178 }
<a name="l00179"></a>00179
<a name="l00180"></a>00180 pos = 0;
<a name="l00181"></a>00181 <a class="code" href="group__DBusMarshal.html#gaf2f5b2f027fa7d24f6179c6dbdf71a83" title="Skips to the next "complete" type inside a type signature.">_dbus_type_signature_next</a> (real_iter-><a class="code" href="structDBusSignatureRealIter.html#a88eb8e63ea2550b23ab4e5a2056168c5" title="current position in the signature string">pos</a>, &pos);
<a name="l00182"></a>00182 real_iter-><a class="code" href="structDBusSignatureRealIter.html#a88eb8e63ea2550b23ab4e5a2056168c5" title="current position in the signature string">pos</a> += pos;
<a name="l00183"></a>00183
<a name="l00184"></a>00184 <span class="keywordflow">if</span> (*real_iter-><a class="code" href="structDBusSignatureRealIter.html#a88eb8e63ea2550b23ab4e5a2056168c5" title="current position in the signature string">pos</a> == <a class="code" href="group__DBusProtocol.html#gaeab5ea0def3f587a0ed548b77d5c5cea" title="Code marking the end of a struct type in a type signature.">DBUS_STRUCT_END_CHAR</a>
<a name="l00185"></a>00185 || *real_iter-><a class="code" href="structDBusSignatureRealIter.html#a88eb8e63ea2550b23ab4e5a2056168c5" title="current position in the signature string">pos</a> == <a class="code" href="group__DBusProtocol.html#ga29ad22c7342ead042ae9e55ae20b49f1" title="Code marking the end of a dict entry type in a type signature.">DBUS_DICT_ENTRY_END_CHAR</a>)
<a name="l00186"></a>00186 {
<a name="l00187"></a>00187 real_iter-><a class="code" href="structDBusSignatureRealIter.html#a54aa77a50490febee5d9b1cbce690639" title="true if we are at the end iter">finished</a> = <a class="code" href="group__DBusMacros.html#gaa8cecfc5c5c054d2875c03e77b7be15d" title="Expands to "1".">TRUE</a>;
<a name="l00188"></a>00188 <span class="keywordflow">return</span> <a class="code" href="group__DBusMacros.html#gaa93f0eb578d23995850d61f7d61c55c1" title="Expands to "0".">FALSE</a>;
<a name="l00189"></a>00189 }
<a name="l00190"></a>00190
<a name="l00191"></a>00191 <span class="keywordflow">return</span> *real_iter-><a class="code" href="structDBusSignatureRealIter.html#a88eb8e63ea2550b23ab4e5a2056168c5" title="current position in the signature string">pos</a> != <a class="code" href="group__DBusProtocol.html#gaa9588da889743b2119dc6664712ae51e" title="Type code that is never equal to a legitimate type code.">DBUS_TYPE_INVALID</a>;
<a name="l00192"></a>00192 }
<a name="l00193"></a>00193 }
<a name="l00194"></a>00194
<a name="l00206"></a>00206 <span class="keywordtype">void</span>
<a name="l00207"></a><a class="code" href="group__DBusSignature.html#ga0bd324faaf2dad5d075de3ff6c9b6796">00207</a> <a class="code" href="group__DBusSignature.html#ga0bd324faaf2dad5d075de3ff6c9b6796" title="Initialize a new iterator pointing to the first type in the current container.">dbus_signature_iter_recurse</a> (<span class="keyword">const</span> <a class="code" href="structDBusSignatureIter.html" title="DBusSignatureIter struct; contains no public fields.">DBusSignatureIter</a> *iter,
<a name="l00208"></a>00208 <a class="code" href="structDBusSignatureIter.html" title="DBusSignatureIter struct; contains no public fields.">DBusSignatureIter</a> *subiter)
<a name="l00209"></a>00209 {
<a name="l00210"></a>00210 <a class="code" href="structDBusSignatureRealIter.html" title="Implementation details of DBusSignatureIter, all fields are private.">DBusSignatureRealIter</a> *real_iter = (<a class="code" href="structDBusSignatureRealIter.html" title="Implementation details of DBusSignatureIter, all fields are private.">DBusSignatureRealIter</a> *) iter;
<a name="l00211"></a>00211 <a class="code" href="structDBusSignatureRealIter.html" title="Implementation details of DBusSignatureIter, all fields are private.">DBusSignatureRealIter</a> *real_sub_iter = (<a class="code" href="structDBusSignatureRealIter.html" title="Implementation details of DBusSignatureIter, all fields are private.">DBusSignatureRealIter</a> *) subiter;
<a name="l00212"></a>00212
<a name="l00213"></a>00213 _dbus_return_if_fail (<a class="code" href="group__DBusSignature.html#gaa0c4c8aa34fa266daa55bd37bdad39b8" title="A "container type" can contain basic types, or nested container types.">dbus_type_is_container</a> (<a class="code" href="group__DBusSignature.html#gac4761ce10d60d7581cfe98beb6a9c57c" title="Returns the current type pointed to by the iterator.">dbus_signature_iter_get_current_type</a> (iter)));
<a name="l00214"></a>00214
<a name="l00215"></a>00215 *real_sub_iter = *real_iter;
<a name="l00216"></a>00216 real_sub_iter-><a class="code" href="structDBusSignatureRealIter.html#a575114ffd9f42eb84909ea6c5d912c75" title="true if we are a subiterator pointing to an array's element type">in_array</a> = <a class="code" href="group__DBusMacros.html#gaa93f0eb578d23995850d61f7d61c55c1" title="Expands to "0".">FALSE</a>;
<a name="l00217"></a>00217 real_sub_iter-><a class="code" href="structDBusSignatureRealIter.html#a88eb8e63ea2550b23ab4e5a2056168c5" title="current position in the signature string">pos</a>++;
<a name="l00218"></a>00218
<a name="l00219"></a>00219 <span class="keywordflow">if</span> (<a class="code" href="group__DBusSignature.html#gac4761ce10d60d7581cfe98beb6a9c57c" title="Returns the current type pointed to by the iterator.">dbus_signature_iter_get_current_type</a> (iter) == <a class="code" href="group__DBusProtocol.html#ga8912f600f81a773066ca03d9163613a9" title="Type code marking a D-Bus array type.">DBUS_TYPE_ARRAY</a>)
<a name="l00220"></a>00220 real_sub_iter-><a class="code" href="structDBusSignatureRealIter.html#a575114ffd9f42eb84909ea6c5d912c75" title="true if we are a subiterator pointing to an array's element type">in_array</a> = <a class="code" href="group__DBusMacros.html#gaa8cecfc5c5c054d2875c03e77b7be15d" title="Expands to "1".">TRUE</a>;
<a name="l00221"></a>00221 }
<a name="l00222"></a>00222
<a name="l00232"></a>00232 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a>
<a name="l00233"></a><a class="code" href="group__DBusSignature.html#ga0f4b81be4f6193c7d8da0ee214772e02">00233</a> <a class="code" href="group__DBusSignature.html#ga0f4b81be4f6193c7d8da0ee214772e02" title="Check a type signature for validity.">dbus_signature_validate</a> (<span class="keyword">const</span> <span class="keywordtype">char</span> *signature,
<a name="l00234"></a>00234 <a class="code" href="structDBusError.html" title="Object representing an exception.">DBusError</a> *error)
<a name="l00235"></a>00235
<a name="l00236"></a>00236 {
<a name="l00237"></a>00237 <a class="code" href="structDBusString.html">DBusString</a> str;
<a name="l00238"></a>00238 <a class="code" href="group__DBusMarshal.html#ga0c4521d30d6650a33673a4d7f9cc007c" title="This is primarily used in unit testing, so we can verify that each invalid message is invalid for the...">DBusValidity</a> reason;
<a name="l00239"></a>00239
<a name="l00240"></a>00240 <a class="code" href="group__DBusString.html#ga374640ddfa2f0b27a8356e2379ba8043" title="Initializes a constant string.">_dbus_string_init_const</a> (&str, signature);
<a name="l00241"></a>00241 reason = <a class="code" href="group__DBusMarshal.html#ga42e50826b5cf62921728432a8e35292c" title="Verifies that the range of type_str from type_pos to type_end is a valid signature.">_dbus_validate_signature_with_reason</a> (&str, 0, <a class="code" href="group__DBusString.html#gaa5136e6fd2c5188f4b88de7863369c6d" title="Gets the length of a string (not including nul termination).">_dbus_string_get_length</a> (&str));
<a name="l00242"></a>00242
<a name="l00243"></a>00243 <span class="keywordflow">if</span> (reason == DBUS_VALID)
<a name="l00244"></a>00244 <span class="keywordflow">return</span> <a class="code" href="group__DBusMacros.html#gaa8cecfc5c5c054d2875c03e77b7be15d" title="Expands to "1".">TRUE</a>;
<a name="l00245"></a>00245 <span class="keywordflow">else</span>
<a name="l00246"></a>00246 {
<a name="l00247"></a>00247 <a class="code" href="group__DBusErrors.html#ga89d2ad4bde21f9e0057fac07a79885e3" title="Assigns an error name and message to a DBusError.">dbus_set_error</a> (error, <a class="code" href="group__DBusProtocol.html#gac4fd50196d0b801a2204ccad4465c74e" title="A type signature is not valid.">DBUS_ERROR_INVALID_SIGNATURE</a>, _dbus_validity_to_error_message (reason));
<a name="l00248"></a>00248 <span class="keywordflow">return</span> <a class="code" href="group__DBusMacros.html#gaa93f0eb578d23995850d61f7d61c55c1" title="Expands to "0".">FALSE</a>;
<a name="l00249"></a>00249 }
<a name="l00250"></a>00250 }
<a name="l00251"></a>00251
<a name="l00263"></a>00263 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a>
<a name="l00264"></a><a class="code" href="group__DBusSignature.html#gac375412dd15a7412967a927d17b6f3d8">00264</a> <a class="code" href="group__DBusSignature.html#gac375412dd15a7412967a927d17b6f3d8" title="Check that a type signature is both valid and contains exactly one complete type.">dbus_signature_validate_single</a> (<span class="keyword">const</span> <span class="keywordtype">char</span> *signature,
<a name="l00265"></a>00265 <a class="code" href="structDBusError.html" title="Object representing an exception.">DBusError</a> *error)
<a name="l00266"></a>00266 {
<a name="l00267"></a>00267 <a class="code" href="structDBusSignatureIter.html" title="DBusSignatureIter struct; contains no public fields.">DBusSignatureIter</a> iter;
<a name="l00268"></a>00268
<a name="l00269"></a>00269 <span class="keywordflow">if</span> (!<a class="code" href="group__DBusSignature.html#ga0f4b81be4f6193c7d8da0ee214772e02" title="Check a type signature for validity.">dbus_signature_validate</a> (signature, error))
<a name="l00270"></a>00270 <span class="keywordflow">return</span> <a class="code" href="group__DBusMacros.html#gaa93f0eb578d23995850d61f7d61c55c1" title="Expands to "0".">FALSE</a>;
<a name="l00271"></a>00271
<a name="l00272"></a>00272 <a class="code" href="group__DBusSignature.html#gaba53b1756fe7f665d0657cc50253e3c8" title="Initializes a DBusSignatureIter for reading a type signature.">dbus_signature_iter_init</a> (&iter, signature);
<a name="l00273"></a>00273 <span class="keywordflow">if</span> (<a class="code" href="group__DBusSignature.html#gac4761ce10d60d7581cfe98beb6a9c57c" title="Returns the current type pointed to by the iterator.">dbus_signature_iter_get_current_type</a> (&iter) == <a class="code" href="group__DBusProtocol.html#gaa9588da889743b2119dc6664712ae51e" title="Type code that is never equal to a legitimate type code.">DBUS_TYPE_INVALID</a>)
<a name="l00274"></a>00274 <span class="keywordflow">goto</span> lose;
<a name="l00275"></a>00275 <span class="keywordflow">if</span> (!<a class="code" href="group__DBusSignature.html#ga90e48ef4b86180ba033727107b03bd29" title="Skip to the next value on this "level".">dbus_signature_iter_next</a> (&iter))
<a name="l00276"></a>00276 <span class="keywordflow">return</span> <a class="code" href="group__DBusMacros.html#gaa8cecfc5c5c054d2875c03e77b7be15d" title="Expands to "1".">TRUE</a>;
<a name="l00277"></a>00277 lose:
<a name="l00278"></a>00278 <a class="code" href="group__DBusErrors.html#ga89d2ad4bde21f9e0057fac07a79885e3" title="Assigns an error name and message to a DBusError.">dbus_set_error</a> (error, <a class="code" href="group__DBusProtocol.html#gac4fd50196d0b801a2204ccad4465c74e" title="A type signature is not valid.">DBUS_ERROR_INVALID_SIGNATURE</a>, <span class="stringliteral">"Exactly one complete type required in signature"</span>);
<a name="l00279"></a>00279 <span class="keywordflow">return</span> <a class="code" href="group__DBusMacros.html#gaa93f0eb578d23995850d61f7d61c55c1" title="Expands to "0".">FALSE</a>;
<a name="l00280"></a>00280 }
<a name="l00281"></a>00281
<a name="l00293"></a>00293 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a>
<a name="l00294"></a><a class="code" href="group__DBusSignature.html#gaa0c4c8aa34fa266daa55bd37bdad39b8">00294</a> <a class="code" href="group__DBusSignature.html#gaa0c4c8aa34fa266daa55bd37bdad39b8" title="A "container type" can contain basic types, or nested container types.">dbus_type_is_container</a> (<span class="keywordtype">int</span> typecode)
<a name="l00295"></a>00295 {
<a name="l00296"></a>00296 <span class="comment">/* only reasonable (non-line-noise) typecodes are allowed */</span>
<a name="l00297"></a>00297 _dbus_return_val_if_fail (<a class="code" href="group__DBusSignature.html#ga7093ae3b35eb073dab939dae69b8c689" title="Return TRUE if the argument is a valid typecode.">dbus_type_is_valid</a> (typecode) || typecode == <a class="code" href="group__DBusProtocol.html#gaa9588da889743b2119dc6664712ae51e" title="Type code that is never equal to a legitimate type code.">DBUS_TYPE_INVALID</a>,
<a name="l00298"></a>00298 <a class="code" href="group__DBusMacros.html#gaa93f0eb578d23995850d61f7d61c55c1" title="Expands to "0".">FALSE</a>);
<a name="l00299"></a>00299 <span class="keywordflow">return</span> TYPE_IS_CONTAINER (typecode);
<a name="l00300"></a>00300 }
<a name="l00301"></a>00301
<a name="l00317"></a>00317 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a>
<a name="l00318"></a><a class="code" href="group__DBusSignature.html#ga2d8afef7d754cf15d6b9733f00654c0e">00318</a> <a class="code" href="group__DBusSignature.html#ga2d8afef7d754cf15d6b9733f00654c0e" title="A "basic type" is a somewhat arbitrary concept, but the intent is to include those types that are ful...">dbus_type_is_basic</a> (<span class="keywordtype">int</span> typecode)
<a name="l00319"></a>00319 {
<a name="l00320"></a>00320 <span class="comment">/* only reasonable (non-line-noise) typecodes are allowed */</span>
<a name="l00321"></a>00321 _dbus_return_val_if_fail (<a class="code" href="group__DBusSignature.html#ga7093ae3b35eb073dab939dae69b8c689" title="Return TRUE if the argument is a valid typecode.">dbus_type_is_valid</a> (typecode) || typecode == <a class="code" href="group__DBusProtocol.html#gaa9588da889743b2119dc6664712ae51e" title="Type code that is never equal to a legitimate type code.">DBUS_TYPE_INVALID</a>,
<a name="l00322"></a>00322 <a class="code" href="group__DBusMacros.html#gaa93f0eb578d23995850d61f7d61c55c1" title="Expands to "0".">FALSE</a>);
<a name="l00323"></a>00323
<a name="l00324"></a>00324 <span class="comment">/* everything that isn't invalid or a container */</span>
<a name="l00325"></a>00325 <span class="keywordflow">return</span> !(typecode == <a class="code" href="group__DBusProtocol.html#gaa9588da889743b2119dc6664712ae51e" title="Type code that is never equal to a legitimate type code.">DBUS_TYPE_INVALID</a> || TYPE_IS_CONTAINER (typecode));
<a name="l00326"></a>00326 }
<a name="l00327"></a>00327
<a name="l00348"></a>00348 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a>
<a name="l00349"></a><a class="code" href="group__DBusSignature.html#ga2f89962cbd33e4ad843824157bae2093">00349</a> <a class="code" href="group__DBusSignature.html#ga2f89962cbd33e4ad843824157bae2093" title="Tells you whether values of this type can change length if you set them to some other value...">dbus_type_is_fixed</a> (<span class="keywordtype">int</span> typecode)
<a name="l00350"></a>00350 {
<a name="l00351"></a>00351 <span class="comment">/* only reasonable (non-line-noise) typecodes are allowed */</span>
<a name="l00352"></a>00352 _dbus_return_val_if_fail (<a class="code" href="group__DBusSignature.html#ga7093ae3b35eb073dab939dae69b8c689" title="Return TRUE if the argument is a valid typecode.">dbus_type_is_valid</a> (typecode) || typecode == <a class="code" href="group__DBusProtocol.html#gaa9588da889743b2119dc6664712ae51e" title="Type code that is never equal to a legitimate type code.">DBUS_TYPE_INVALID</a>,
<a name="l00353"></a>00353 <a class="code" href="group__DBusMacros.html#gaa93f0eb578d23995850d61f7d61c55c1" title="Expands to "0".">FALSE</a>);
<a name="l00354"></a>00354
<a name="l00355"></a>00355 <span class="keywordflow">switch</span> (typecode)
<a name="l00356"></a>00356 {
<a name="l00357"></a>00357 <span class="keywordflow">case</span> <a class="code" href="group__DBusProtocol.html#ga355d6d0998164a5eb915a26fb67fce5f" title="Type code marking an 8-bit unsigned integer.">DBUS_TYPE_BYTE</a>:
<a name="l00358"></a>00358 <span class="keywordflow">case</span> <a class="code" href="group__DBusProtocol.html#ga624ecee83984330ad89cbf064a2b28e6" title="Type code marking a boolean.">DBUS_TYPE_BOOLEAN</a>:
<a name="l00359"></a>00359 <span class="keywordflow">case</span> <a class="code" href="group__DBusProtocol.html#ga49cdd4169af84ed7937f34b31f43e331" title="Type code marking a 16-bit signed integer.">DBUS_TYPE_INT16</a>:
<a name="l00360"></a>00360 <span class="keywordflow">case</span> <a class="code" href="group__DBusProtocol.html#gad74b8d93a1464182ac1af7e0e2435f46" title="Type code marking a 16-bit unsigned integer.">DBUS_TYPE_UINT16</a>:
<a name="l00361"></a>00361 <span class="keywordflow">case</span> <a class="code" href="group__DBusProtocol.html#ga5943b497db2e1dec04fae60584a294bb" title="Type code marking a 32-bit signed integer.">DBUS_TYPE_INT32</a>:
<a name="l00362"></a>00362 <span class="keywordflow">case</span> <a class="code" href="group__DBusProtocol.html#gaedb1740bd8a9174b98ac593eded25d49" title="Type code marking a 32-bit unsigned integer.">DBUS_TYPE_UINT32</a>:
<a name="l00363"></a>00363 <span class="keywordflow">case</span> <a class="code" href="group__DBusProtocol.html#gabda4301c14b367f151f86769a1c27c5b" title="Type code marking a 64-bit signed integer.">DBUS_TYPE_INT64</a>:
<a name="l00364"></a>00364 <span class="keywordflow">case</span> <a class="code" href="group__DBusProtocol.html#gac59cc8f824813444cc9585effd4770d7" title="Type code marking a 64-bit unsigned integer.">DBUS_TYPE_UINT64</a>:
<a name="l00365"></a>00365 <span class="keywordflow">case</span> <a class="code" href="group__DBusProtocol.html#gac30c00bb6de04d0886cfbace276ec353" title="Type code marking an 8-byte double in IEEE 754 format.">DBUS_TYPE_DOUBLE</a>:
<a name="l00366"></a>00366 <span class="keywordflow">case</span> <a class="code" href="group__DBusProtocol.html#ga59f8acaeb207b182982dfb97174b7f16" title="Type code marking a unix file descriptor.">DBUS_TYPE_UNIX_FD</a>:
<a name="l00367"></a>00367 <span class="keywordflow">return</span> <a class="code" href="group__DBusMacros.html#gaa8cecfc5c5c054d2875c03e77b7be15d" title="Expands to "1".">TRUE</a>;
<a name="l00368"></a>00368 <span class="keywordflow">default</span>:
<a name="l00369"></a>00369 <span class="keywordflow">return</span> <a class="code" href="group__DBusMacros.html#gaa93f0eb578d23995850d61f7d61c55c1" title="Expands to "0".">FALSE</a>;
<a name="l00370"></a>00370 }
<a name="l00371"></a>00371 }
<a name="l00372"></a>00372
<a name="l00382"></a>00382 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a>
<a name="l00383"></a><a class="code" href="group__DBusSignature.html#ga7093ae3b35eb073dab939dae69b8c689">00383</a> <a class="code" href="group__DBusSignature.html#ga7093ae3b35eb073dab939dae69b8c689" title="Return TRUE if the argument is a valid typecode.">dbus_type_is_valid</a> (<span class="keywordtype">int</span> typecode)
<a name="l00384"></a>00384 {
<a name="l00385"></a>00385 <span class="keywordflow">switch</span> (typecode)
<a name="l00386"></a>00386 {
<a name="l00387"></a>00387 <span class="keywordflow">case</span> <a class="code" href="group__DBusProtocol.html#ga355d6d0998164a5eb915a26fb67fce5f" title="Type code marking an 8-bit unsigned integer.">DBUS_TYPE_BYTE</a>:
<a name="l00388"></a>00388 <span class="keywordflow">case</span> <a class="code" href="group__DBusProtocol.html#ga624ecee83984330ad89cbf064a2b28e6" title="Type code marking a boolean.">DBUS_TYPE_BOOLEAN</a>:
<a name="l00389"></a>00389 <span class="keywordflow">case</span> <a class="code" href="group__DBusProtocol.html#ga49cdd4169af84ed7937f34b31f43e331" title="Type code marking a 16-bit signed integer.">DBUS_TYPE_INT16</a>:
<a name="l00390"></a>00390 <span class="keywordflow">case</span> <a class="code" href="group__DBusProtocol.html#gad74b8d93a1464182ac1af7e0e2435f46" title="Type code marking a 16-bit unsigned integer.">DBUS_TYPE_UINT16</a>:
<a name="l00391"></a>00391 <span class="keywordflow">case</span> <a class="code" href="group__DBusProtocol.html#ga5943b497db2e1dec04fae60584a294bb" title="Type code marking a 32-bit signed integer.">DBUS_TYPE_INT32</a>:
<a name="l00392"></a>00392 <span class="keywordflow">case</span> <a class="code" href="group__DBusProtocol.html#gaedb1740bd8a9174b98ac593eded25d49" title="Type code marking a 32-bit unsigned integer.">DBUS_TYPE_UINT32</a>:
<a name="l00393"></a>00393 <span class="keywordflow">case</span> <a class="code" href="group__DBusProtocol.html#gabda4301c14b367f151f86769a1c27c5b" title="Type code marking a 64-bit signed integer.">DBUS_TYPE_INT64</a>:
<a name="l00394"></a>00394 <span class="keywordflow">case</span> <a class="code" href="group__DBusProtocol.html#gac59cc8f824813444cc9585effd4770d7" title="Type code marking a 64-bit unsigned integer.">DBUS_TYPE_UINT64</a>:
<a name="l00395"></a>00395 <span class="keywordflow">case</span> <a class="code" href="group__DBusProtocol.html#gac30c00bb6de04d0886cfbace276ec353" title="Type code marking an 8-byte double in IEEE 754 format.">DBUS_TYPE_DOUBLE</a>:
<a name="l00396"></a>00396 <span class="keywordflow">case</span> <a class="code" href="group__DBusProtocol.html#ga7eb77066dadf5415896b44c56d93acce" title="Type code marking a UTF-8 encoded, nul-terminated Unicode string.">DBUS_TYPE_STRING</a>:
<a name="l00397"></a>00397 <span class="keywordflow">case</span> <a class="code" href="group__DBusProtocol.html#ga31cc59c99a6cbbfcef71756e1390dc4c" title="Type code marking a D-Bus object path.">DBUS_TYPE_OBJECT_PATH</a>:
<a name="l00398"></a>00398 <span class="keywordflow">case</span> <a class="code" href="group__DBusProtocol.html#ga26ed6c20c3d9f0b50ea0a1cf80be3279" title="Type code marking a D-Bus type signature.">DBUS_TYPE_SIGNATURE</a>:
<a name="l00399"></a>00399 <span class="keywordflow">case</span> <a class="code" href="group__DBusProtocol.html#ga8912f600f81a773066ca03d9163613a9" title="Type code marking a D-Bus array type.">DBUS_TYPE_ARRAY</a>:
<a name="l00400"></a>00400 <span class="keywordflow">case</span> <a class="code" href="group__DBusProtocol.html#gae4b22a74b9edb0ec0ff6e0294794d3f9" title="STRUCT and DICT_ENTRY are sort of special since their codes can't appear in a type string...">DBUS_TYPE_STRUCT</a>:
<a name="l00401"></a>00401 <span class="keywordflow">case</span> <a class="code" href="group__DBusProtocol.html#gad2fc8e6c50e0ad927f4249fb9e53ca97" title="Type code used to represent a dict entry; however, this type code does not appear in type signatures...">DBUS_TYPE_DICT_ENTRY</a>:
<a name="l00402"></a>00402 <span class="keywordflow">case</span> <a class="code" href="group__DBusProtocol.html#ga4aa7a463ad2bce4e9aa95e3e397ddcf1" title="Type code marking a D-Bus variant type.">DBUS_TYPE_VARIANT</a>:
<a name="l00403"></a>00403 <span class="keywordflow">case</span> <a class="code" href="group__DBusProtocol.html#ga59f8acaeb207b182982dfb97174b7f16" title="Type code marking a unix file descriptor.">DBUS_TYPE_UNIX_FD</a>:
<a name="l00404"></a>00404 <span class="keywordflow">return</span> <a class="code" href="group__DBusMacros.html#gaa8cecfc5c5c054d2875c03e77b7be15d" title="Expands to "1".">TRUE</a>;
<a name="l00405"></a>00405
<a name="l00406"></a>00406 <span class="keywordflow">default</span>:
<a name="l00407"></a>00407 <span class="keywordflow">return</span> <a class="code" href="group__DBusMacros.html#gaa93f0eb578d23995850d61f7d61c55c1" title="Expands to "0".">FALSE</a>;
<a name="l00408"></a>00408 }
<a name="l00409"></a>00409 }
<a name="l00410"></a>00410 <span class="comment">/* end of DBusSignature group */</span>
<a name="l00412"></a>00412
<a name="l00413"></a>00413 <span class="preprocessor">#ifdef DBUS_ENABLE_EMBEDDED_TESTS</span>
<a name="l00414"></a>00414 <span class="preprocessor"></span>
<a name="l00421"></a>00421 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a>
<a name="l00422"></a>00422 _dbus_signature_test (<span class="keywordtype">void</span>)
<a name="l00423"></a>00423 {
<a name="l00424"></a>00424 <a class="code" href="structDBusSignatureIter.html" title="DBusSignatureIter struct; contains no public fields.">DBusSignatureIter</a> iter;
<a name="l00425"></a>00425 <a class="code" href="structDBusSignatureIter.html" title="DBusSignatureIter struct; contains no public fields.">DBusSignatureIter</a> subiter;
<a name="l00426"></a>00426 <a class="code" href="structDBusSignatureIter.html" title="DBusSignatureIter struct; contains no public fields.">DBusSignatureIter</a> subsubiter;
<a name="l00427"></a>00427 <a class="code" href="structDBusSignatureIter.html" title="DBusSignatureIter struct; contains no public fields.">DBusSignatureIter</a> subsubsubiter;
<a name="l00428"></a>00428 <span class="keyword">const</span> <span class="keywordtype">char</span> *sig;
<a name="l00429"></a>00429 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> boolres;
<a name="l00430"></a>00430
<a name="l00431"></a>00431 _dbus_assert (<span class="keyword">sizeof</span> (<a class="code" href="structDBusSignatureIter.html" title="DBusSignatureIter struct; contains no public fields.">DBusSignatureIter</a>) >= <span class="keyword">sizeof</span> (<a class="code" href="structDBusSignatureRealIter.html" title="Implementation details of DBusSignatureIter, all fields are private.">DBusSignatureRealIter</a>));
<a name="l00432"></a>00432
<a name="l00433"></a>00433 sig = <span class="stringliteral">""</span>;
<a name="l00434"></a>00434 _dbus_assert (<a class="code" href="group__DBusSignature.html#ga0f4b81be4f6193c7d8da0ee214772e02" title="Check a type signature for validity.">dbus_signature_validate</a> (sig, <a class="code" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4" title="A null pointer, defined appropriately for C or C++.">NULL</a>));
<a name="l00435"></a>00435 _dbus_assert (!<a class="code" href="group__DBusSignature.html#gac375412dd15a7412967a927d17b6f3d8" title="Check that a type signature is both valid and contains exactly one complete type.">dbus_signature_validate_single</a> (sig, <a class="code" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4" title="A null pointer, defined appropriately for C or C++.">NULL</a>));
<a name="l00436"></a>00436 <a class="code" href="group__DBusSignature.html#gaba53b1756fe7f665d0657cc50253e3c8" title="Initializes a DBusSignatureIter for reading a type signature.">dbus_signature_iter_init</a> (&iter, sig);
<a name="l00437"></a>00437 _dbus_assert (<a class="code" href="group__DBusSignature.html#gac4761ce10d60d7581cfe98beb6a9c57c" title="Returns the current type pointed to by the iterator.">dbus_signature_iter_get_current_type</a> (&iter) == <a class="code" href="group__DBusProtocol.html#gaa9588da889743b2119dc6664712ae51e" title="Type code that is never equal to a legitimate type code.">DBUS_TYPE_INVALID</a>);
<a name="l00438"></a>00438
<a name="l00439"></a>00439 sig = <a class="code" href="group__DBusProtocol.html#gabca06d9d52c249619f52c903c06800aa" title="DBUS_TYPE_STRING as a string literal instead of a int literal">DBUS_TYPE_STRING_AS_STRING</a>;
<a name="l00440"></a>00440 _dbus_assert (<a class="code" href="group__DBusSignature.html#ga0f4b81be4f6193c7d8da0ee214772e02" title="Check a type signature for validity.">dbus_signature_validate</a> (sig, <a class="code" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4" title="A null pointer, defined appropriately for C or C++.">NULL</a>));
<a name="l00441"></a>00441 _dbus_assert (<a class="code" href="group__DBusSignature.html#gac375412dd15a7412967a927d17b6f3d8" title="Check that a type signature is both valid and contains exactly one complete type.">dbus_signature_validate_single</a> (sig, <a class="code" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4" title="A null pointer, defined appropriately for C or C++.">NULL</a>));
<a name="l00442"></a>00442 <a class="code" href="group__DBusSignature.html#gaba53b1756fe7f665d0657cc50253e3c8" title="Initializes a DBusSignatureIter for reading a type signature.">dbus_signature_iter_init</a> (&iter, sig);
<a name="l00443"></a>00443 _dbus_assert (<a class="code" href="group__DBusSignature.html#gac4761ce10d60d7581cfe98beb6a9c57c" title="Returns the current type pointed to by the iterator.">dbus_signature_iter_get_current_type</a> (&iter) == <a class="code" href="group__DBusProtocol.html#ga7eb77066dadf5415896b44c56d93acce" title="Type code marking a UTF-8 encoded, nul-terminated Unicode string.">DBUS_TYPE_STRING</a>);
<a name="l00444"></a>00444
<a name="l00445"></a>00445 sig = <a class="code" href="group__DBusProtocol.html#gabca06d9d52c249619f52c903c06800aa" title="DBUS_TYPE_STRING as a string literal instead of a int literal">DBUS_TYPE_STRING_AS_STRING</a> <a class="code" href="group__DBusProtocol.html#ga309cc856f9b903032b55fe346268104b" title="DBUS_TYPE_BYTE as a string literal instead of a int literal">DBUS_TYPE_BYTE_AS_STRING</a>;
<a name="l00446"></a>00446 _dbus_assert (<a class="code" href="group__DBusSignature.html#ga0f4b81be4f6193c7d8da0ee214772e02" title="Check a type signature for validity.">dbus_signature_validate</a> (sig, <a class="code" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4" title="A null pointer, defined appropriately for C or C++.">NULL</a>));
<a name="l00447"></a>00447 <a class="code" href="group__DBusSignature.html#gaba53b1756fe7f665d0657cc50253e3c8" title="Initializes a DBusSignatureIter for reading a type signature.">dbus_signature_iter_init</a> (&iter, sig);
<a name="l00448"></a>00448 _dbus_assert (<a class="code" href="group__DBusSignature.html#gac4761ce10d60d7581cfe98beb6a9c57c" title="Returns the current type pointed to by the iterator.">dbus_signature_iter_get_current_type</a> (&iter) == <a class="code" href="group__DBusProtocol.html#ga7eb77066dadf5415896b44c56d93acce" title="Type code marking a UTF-8 encoded, nul-terminated Unicode string.">DBUS_TYPE_STRING</a>);
<a name="l00449"></a>00449 boolres = <a class="code" href="group__DBusSignature.html#ga90e48ef4b86180ba033727107b03bd29" title="Skip to the next value on this "level".">dbus_signature_iter_next</a> (&iter);
<a name="l00450"></a>00450 _dbus_assert (boolres);
<a name="l00451"></a>00451 _dbus_assert (<a class="code" href="group__DBusSignature.html#gac4761ce10d60d7581cfe98beb6a9c57c" title="Returns the current type pointed to by the iterator.">dbus_signature_iter_get_current_type</a> (&iter) == <a class="code" href="group__DBusProtocol.html#ga355d6d0998164a5eb915a26fb67fce5f" title="Type code marking an 8-bit unsigned integer.">DBUS_TYPE_BYTE</a>);
<a name="l00452"></a>00452
<a name="l00453"></a>00453 sig = <a class="code" href="group__DBusProtocol.html#gaee963e8da6d318a6b4fd8a73f9538c70" title="DBUS_TYPE_UINT16 as a string literal instead of a int literal">DBUS_TYPE_UINT16_AS_STRING</a>
<a name="l00454"></a>00454 <a class="code" href="group__DBusProtocol.html#gab6f2a0c823bd291bcb68948ce8181b8d" title="DBUS_STRUCT_BEGIN_CHAR as a string literal instead of a int literal">DBUS_STRUCT_BEGIN_CHAR_AS_STRING</a>
<a name="l00455"></a>00455 <a class="code" href="group__DBusProtocol.html#gabca06d9d52c249619f52c903c06800aa" title="DBUS_TYPE_STRING as a string literal instead of a int literal">DBUS_TYPE_STRING_AS_STRING</a>
<a name="l00456"></a>00456 <a class="code" href="group__DBusProtocol.html#gadd89012acfc88aef2b084ed265242e5e" title="DBUS_TYPE_UINT32 as a string literal instead of a int literal">DBUS_TYPE_UINT32_AS_STRING</a>
<a name="l00457"></a>00457 <a class="code" href="group__DBusProtocol.html#gac5d9893972a0fdcd77eab6534cada8be" title="DBUS_TYPE_VARIANT as a string literal instead of a int literal">DBUS_TYPE_VARIANT_AS_STRING</a>
<a name="l00458"></a>00458 <a class="code" href="group__DBusProtocol.html#ga456972f2328504450ab5eec13730278c" title="DBUS_TYPE_DOUBLE as a string literal instead of a int literal">DBUS_TYPE_DOUBLE_AS_STRING</a>
<a name="l00459"></a>00459 <a class="code" href="group__DBusProtocol.html#ga97075c0573afa424216716f86e3693ad" title="DBUS_STRUCT_END_CHAR a string literal instead of a int literal">DBUS_STRUCT_END_CHAR_AS_STRING</a>;
<a name="l00460"></a>00460 _dbus_assert (<a class="code" href="group__DBusSignature.html#ga0f4b81be4f6193c7d8da0ee214772e02" title="Check a type signature for validity.">dbus_signature_validate</a> (sig, <a class="code" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4" title="A null pointer, defined appropriately for C or C++.">NULL</a>));
<a name="l00461"></a>00461 <a class="code" href="group__DBusSignature.html#gaba53b1756fe7f665d0657cc50253e3c8" title="Initializes a DBusSignatureIter for reading a type signature.">dbus_signature_iter_init</a> (&iter, sig);
<a name="l00462"></a>00462 _dbus_assert (<a class="code" href="group__DBusSignature.html#gac4761ce10d60d7581cfe98beb6a9c57c" title="Returns the current type pointed to by the iterator.">dbus_signature_iter_get_current_type</a> (&iter) == <a class="code" href="group__DBusProtocol.html#gad74b8d93a1464182ac1af7e0e2435f46" title="Type code marking a 16-bit unsigned integer.">DBUS_TYPE_UINT16</a>);
<a name="l00463"></a>00463 boolres = <a class="code" href="group__DBusSignature.html#ga90e48ef4b86180ba033727107b03bd29" title="Skip to the next value on this "level".">dbus_signature_iter_next</a> (&iter);
<a name="l00464"></a>00464 _dbus_assert (boolres);
<a name="l00465"></a>00465 _dbus_assert (<a class="code" href="group__DBusSignature.html#gac4761ce10d60d7581cfe98beb6a9c57c" title="Returns the current type pointed to by the iterator.">dbus_signature_iter_get_current_type</a> (&iter) == <a class="code" href="group__DBusProtocol.html#gae4b22a74b9edb0ec0ff6e0294794d3f9" title="STRUCT and DICT_ENTRY are sort of special since their codes can't appear in a type string...">DBUS_TYPE_STRUCT</a>);
<a name="l00466"></a>00466 <a class="code" href="group__DBusSignature.html#ga0bd324faaf2dad5d075de3ff6c9b6796" title="Initialize a new iterator pointing to the first type in the current container.">dbus_signature_iter_recurse</a> (&iter, &subiter);
<a name="l00467"></a>00467 _dbus_assert (<a class="code" href="group__DBusSignature.html#gac4761ce10d60d7581cfe98beb6a9c57c" title="Returns the current type pointed to by the iterator.">dbus_signature_iter_get_current_type</a> (&subiter) == <a class="code" href="group__DBusProtocol.html#ga7eb77066dadf5415896b44c56d93acce" title="Type code marking a UTF-8 encoded, nul-terminated Unicode string.">DBUS_TYPE_STRING</a>);
<a name="l00468"></a>00468 boolres = <a class="code" href="group__DBusSignature.html#ga90e48ef4b86180ba033727107b03bd29" title="Skip to the next value on this "level".">dbus_signature_iter_next</a> (&subiter);
<a name="l00469"></a>00469 _dbus_assert (boolres);
<a name="l00470"></a>00470 _dbus_assert (<a class="code" href="group__DBusSignature.html#gac4761ce10d60d7581cfe98beb6a9c57c" title="Returns the current type pointed to by the iterator.">dbus_signature_iter_get_current_type</a> (&subiter) == <a class="code" href="group__DBusProtocol.html#gaedb1740bd8a9174b98ac593eded25d49" title="Type code marking a 32-bit unsigned integer.">DBUS_TYPE_UINT32</a>);
<a name="l00471"></a>00471 boolres = <a class="code" href="group__DBusSignature.html#ga90e48ef4b86180ba033727107b03bd29" title="Skip to the next value on this "level".">dbus_signature_iter_next</a> (&subiter);
<a name="l00472"></a>00472 _dbus_assert (boolres);
<a name="l00473"></a>00473 _dbus_assert (<a class="code" href="group__DBusSignature.html#gac4761ce10d60d7581cfe98beb6a9c57c" title="Returns the current type pointed to by the iterator.">dbus_signature_iter_get_current_type</a> (&subiter) == <a class="code" href="group__DBusProtocol.html#ga4aa7a463ad2bce4e9aa95e3e397ddcf1" title="Type code marking a D-Bus variant type.">DBUS_TYPE_VARIANT</a>);
<a name="l00474"></a>00474 boolres = <a class="code" href="group__DBusSignature.html#ga90e48ef4b86180ba033727107b03bd29" title="Skip to the next value on this "level".">dbus_signature_iter_next</a> (&subiter);
<a name="l00475"></a>00475 _dbus_assert (boolres);
<a name="l00476"></a>00476 _dbus_assert (<a class="code" href="group__DBusSignature.html#gac4761ce10d60d7581cfe98beb6a9c57c" title="Returns the current type pointed to by the iterator.">dbus_signature_iter_get_current_type</a> (&subiter) == <a class="code" href="group__DBusProtocol.html#gac30c00bb6de04d0886cfbace276ec353" title="Type code marking an 8-byte double in IEEE 754 format.">DBUS_TYPE_DOUBLE</a>);
<a name="l00477"></a>00477
<a name="l00478"></a>00478 sig = <a class="code" href="group__DBusProtocol.html#gaee963e8da6d318a6b4fd8a73f9538c70" title="DBUS_TYPE_UINT16 as a string literal instead of a int literal">DBUS_TYPE_UINT16_AS_STRING</a>
<a name="l00479"></a>00479 <a class="code" href="group__DBusProtocol.html#gab6f2a0c823bd291bcb68948ce8181b8d" title="DBUS_STRUCT_BEGIN_CHAR as a string literal instead of a int literal">DBUS_STRUCT_BEGIN_CHAR_AS_STRING</a>
<a name="l00480"></a>00480 <a class="code" href="group__DBusProtocol.html#gadd89012acfc88aef2b084ed265242e5e" title="DBUS_TYPE_UINT32 as a string literal instead of a int literal">DBUS_TYPE_UINT32_AS_STRING</a>
<a name="l00481"></a>00481 DBUS_TYPE_BYTE_AS_STRING
<a name="l00482"></a>00482 <a class="code" href="group__DBusProtocol.html#ga94236ec2eb0778dc636d061c48eeef23" title="DBUS_TYPE_ARRAY as a string literal instead of a int literal">DBUS_TYPE_ARRAY_AS_STRING</a>
<a name="l00483"></a>00483 <a class="code" href="group__DBusProtocol.html#ga94236ec2eb0778dc636d061c48eeef23" title="DBUS_TYPE_ARRAY as a string literal instead of a int literal">DBUS_TYPE_ARRAY_AS_STRING</a>
<a name="l00484"></a>00484 <a class="code" href="group__DBusProtocol.html#ga456972f2328504450ab5eec13730278c" title="DBUS_TYPE_DOUBLE as a string literal instead of a int literal">DBUS_TYPE_DOUBLE_AS_STRING</a>
<a name="l00485"></a>00485 <a class="code" href="group__DBusProtocol.html#gab6f2a0c823bd291bcb68948ce8181b8d" title="DBUS_STRUCT_BEGIN_CHAR as a string literal instead of a int literal">DBUS_STRUCT_BEGIN_CHAR_AS_STRING</a>
<a name="l00486"></a>00486 DBUS_TYPE_BYTE_AS_STRING
<a name="l00487"></a>00487 DBUS_STRUCT_END_CHAR_AS_STRING
<a name="l00488"></a>00488 <a class="code" href="group__DBusProtocol.html#ga97075c0573afa424216716f86e3693ad" title="DBUS_STRUCT_END_CHAR a string literal instead of a int literal">DBUS_STRUCT_END_CHAR_AS_STRING</a>;
<a name="l00489"></a>00489 _dbus_assert (<a class="code" href="group__DBusSignature.html#ga0f4b81be4f6193c7d8da0ee214772e02" title="Check a type signature for validity.">dbus_signature_validate</a> (sig, <a class="code" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4" title="A null pointer, defined appropriately for C or C++.">NULL</a>));
<a name="l00490"></a>00490 <a class="code" href="group__DBusSignature.html#gaba53b1756fe7f665d0657cc50253e3c8" title="Initializes a DBusSignatureIter for reading a type signature.">dbus_signature_iter_init</a> (&iter, sig);
<a name="l00491"></a>00491 _dbus_assert (<a class="code" href="group__DBusSignature.html#gac4761ce10d60d7581cfe98beb6a9c57c" title="Returns the current type pointed to by the iterator.">dbus_signature_iter_get_current_type</a> (&iter) == <a class="code" href="group__DBusProtocol.html#gad74b8d93a1464182ac1af7e0e2435f46" title="Type code marking a 16-bit unsigned integer.">DBUS_TYPE_UINT16</a>);
<a name="l00492"></a>00492 boolres = <a class="code" href="group__DBusSignature.html#ga90e48ef4b86180ba033727107b03bd29" title="Skip to the next value on this "level".">dbus_signature_iter_next</a> (&iter);
<a name="l00493"></a>00493 _dbus_assert (boolres);
<a name="l00494"></a>00494 _dbus_assert (<a class="code" href="group__DBusSignature.html#gac4761ce10d60d7581cfe98beb6a9c57c" title="Returns the current type pointed to by the iterator.">dbus_signature_iter_get_current_type</a> (&iter) == <a class="code" href="group__DBusProtocol.html#gae4b22a74b9edb0ec0ff6e0294794d3f9" title="STRUCT and DICT_ENTRY are sort of special since their codes can't appear in a type string...">DBUS_TYPE_STRUCT</a>);
<a name="l00495"></a>00495 <a class="code" href="group__DBusSignature.html#ga0bd324faaf2dad5d075de3ff6c9b6796" title="Initialize a new iterator pointing to the first type in the current container.">dbus_signature_iter_recurse</a> (&iter, &subiter);
<a name="l00496"></a>00496 _dbus_assert (<a class="code" href="group__DBusSignature.html#gac4761ce10d60d7581cfe98beb6a9c57c" title="Returns the current type pointed to by the iterator.">dbus_signature_iter_get_current_type</a> (&subiter) == <a class="code" href="group__DBusProtocol.html#gaedb1740bd8a9174b98ac593eded25d49" title="Type code marking a 32-bit unsigned integer.">DBUS_TYPE_UINT32</a>);
<a name="l00497"></a>00497 boolres = <a class="code" href="group__DBusSignature.html#ga90e48ef4b86180ba033727107b03bd29" title="Skip to the next value on this "level".">dbus_signature_iter_next</a> (&subiter);
<a name="l00498"></a>00498 _dbus_assert (boolres);
<a name="l00499"></a>00499 _dbus_assert (<a class="code" href="group__DBusSignature.html#gac4761ce10d60d7581cfe98beb6a9c57c" title="Returns the current type pointed to by the iterator.">dbus_signature_iter_get_current_type</a> (&subiter) == <a class="code" href="group__DBusProtocol.html#ga355d6d0998164a5eb915a26fb67fce5f" title="Type code marking an 8-bit unsigned integer.">DBUS_TYPE_BYTE</a>);
<a name="l00500"></a>00500 boolres = <a class="code" href="group__DBusSignature.html#ga90e48ef4b86180ba033727107b03bd29" title="Skip to the next value on this "level".">dbus_signature_iter_next</a> (&subiter);
<a name="l00501"></a>00501 _dbus_assert (boolres);
<a name="l00502"></a>00502 _dbus_assert (<a class="code" href="group__DBusSignature.html#gac4761ce10d60d7581cfe98beb6a9c57c" title="Returns the current type pointed to by the iterator.">dbus_signature_iter_get_current_type</a> (&subiter) == <a class="code" href="group__DBusProtocol.html#ga8912f600f81a773066ca03d9163613a9" title="Type code marking a D-Bus array type.">DBUS_TYPE_ARRAY</a>);
<a name="l00503"></a>00503 _dbus_assert (<a class="code" href="group__DBusSignature.html#gaebb26dbc79dae5e11629f38b2c8277fd" title="Convenience function for returning the element type of an array; This function allows you to avoid in...">dbus_signature_iter_get_element_type</a> (&subiter) == <a class="code" href="group__DBusProtocol.html#ga8912f600f81a773066ca03d9163613a9" title="Type code marking a D-Bus array type.">DBUS_TYPE_ARRAY</a>);
<a name="l00504"></a>00504
<a name="l00505"></a>00505 <a class="code" href="group__DBusSignature.html#ga0bd324faaf2dad5d075de3ff6c9b6796" title="Initialize a new iterator pointing to the first type in the current container.">dbus_signature_iter_recurse</a> (&subiter, &subsubiter);
<a name="l00506"></a>00506 _dbus_assert (<a class="code" href="group__DBusSignature.html#gac4761ce10d60d7581cfe98beb6a9c57c" title="Returns the current type pointed to by the iterator.">dbus_signature_iter_get_current_type</a> (&subsubiter) == <a class="code" href="group__DBusProtocol.html#ga8912f600f81a773066ca03d9163613a9" title="Type code marking a D-Bus array type.">DBUS_TYPE_ARRAY</a>);
<a name="l00507"></a>00507 _dbus_assert (<a class="code" href="group__DBusSignature.html#gaebb26dbc79dae5e11629f38b2c8277fd" title="Convenience function for returning the element type of an array; This function allows you to avoid in...">dbus_signature_iter_get_element_type</a> (&subsubiter) == <a class="code" href="group__DBusProtocol.html#gac30c00bb6de04d0886cfbace276ec353" title="Type code marking an 8-byte double in IEEE 754 format.">DBUS_TYPE_DOUBLE</a>);
<a name="l00508"></a>00508
<a name="l00509"></a>00509 <a class="code" href="group__DBusSignature.html#ga0bd324faaf2dad5d075de3ff6c9b6796" title="Initialize a new iterator pointing to the first type in the current container.">dbus_signature_iter_recurse</a> (&subsubiter, &subsubsubiter);
<a name="l00510"></a>00510 _dbus_assert (<a class="code" href="group__DBusSignature.html#gac4761ce10d60d7581cfe98beb6a9c57c" title="Returns the current type pointed to by the iterator.">dbus_signature_iter_get_current_type</a> (&subsubsubiter) == <a class="code" href="group__DBusProtocol.html#gac30c00bb6de04d0886cfbace276ec353" title="Type code marking an 8-byte double in IEEE 754 format.">DBUS_TYPE_DOUBLE</a>);
<a name="l00511"></a>00511 boolres = <a class="code" href="group__DBusSignature.html#ga90e48ef4b86180ba033727107b03bd29" title="Skip to the next value on this "level".">dbus_signature_iter_next</a> (&subiter);
<a name="l00512"></a>00512 _dbus_assert (boolres);
<a name="l00513"></a>00513 _dbus_assert (<a class="code" href="group__DBusSignature.html#gac4761ce10d60d7581cfe98beb6a9c57c" title="Returns the current type pointed to by the iterator.">dbus_signature_iter_get_current_type</a> (&subiter) == <a class="code" href="group__DBusProtocol.html#gae4b22a74b9edb0ec0ff6e0294794d3f9" title="STRUCT and DICT_ENTRY are sort of special since their codes can't appear in a type string...">DBUS_TYPE_STRUCT</a>);
<a name="l00514"></a>00514 <a class="code" href="group__DBusSignature.html#ga0bd324faaf2dad5d075de3ff6c9b6796" title="Initialize a new iterator pointing to the first type in the current container.">dbus_signature_iter_recurse</a> (&subiter, &subsubiter);
<a name="l00515"></a>00515 _dbus_assert (<a class="code" href="group__DBusSignature.html#gac4761ce10d60d7581cfe98beb6a9c57c" title="Returns the current type pointed to by the iterator.">dbus_signature_iter_get_current_type</a> (&subsubiter) == <a class="code" href="group__DBusProtocol.html#ga355d6d0998164a5eb915a26fb67fce5f" title="Type code marking an 8-bit unsigned integer.">DBUS_TYPE_BYTE</a>);
<a name="l00516"></a>00516
<a name="l00517"></a>00517 sig = <a class="code" href="group__DBusProtocol.html#ga94236ec2eb0778dc636d061c48eeef23" title="DBUS_TYPE_ARRAY as a string literal instead of a int literal">DBUS_TYPE_ARRAY_AS_STRING</a>
<a name="l00518"></a>00518 <a class="code" href="group__DBusProtocol.html#ga590dc911798c8cdb47196871e12e68ec" title="DBUS_DICT_ENTRY_BEGIN_CHAR as a string literal instead of a int literal">DBUS_DICT_ENTRY_BEGIN_CHAR_AS_STRING</a>
<a name="l00519"></a>00519 <a class="code" href="group__DBusProtocol.html#ga21c2efd8ed6b83302f3ef2a1f759359f" title="DBUS_TYPE_INT16 as a string literal instead of a int literal">DBUS_TYPE_INT16_AS_STRING</a>
<a name="l00520"></a>00520 <a class="code" href="group__DBusProtocol.html#gabca06d9d52c249619f52c903c06800aa" title="DBUS_TYPE_STRING as a string literal instead of a int literal">DBUS_TYPE_STRING_AS_STRING</a>
<a name="l00521"></a>00521 <a class="code" href="group__DBusProtocol.html#gae0db9510e56f2d33fd999ca67ebe964e" title="DBUS_DICT_ENTRY_END_CHAR as a string literal instead of a int literal">DBUS_DICT_ENTRY_END_CHAR_AS_STRING</a>
<a name="l00522"></a>00522 <a class="code" href="group__DBusProtocol.html#gac5d9893972a0fdcd77eab6534cada8be" title="DBUS_TYPE_VARIANT as a string literal instead of a int literal">DBUS_TYPE_VARIANT_AS_STRING</a>;
<a name="l00523"></a>00523 _dbus_assert (<a class="code" href="group__DBusSignature.html#ga0f4b81be4f6193c7d8da0ee214772e02" title="Check a type signature for validity.">dbus_signature_validate</a> (sig, <a class="code" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4" title="A null pointer, defined appropriately for C or C++.">NULL</a>));
<a name="l00524"></a>00524 _dbus_assert (!<a class="code" href="group__DBusSignature.html#gac375412dd15a7412967a927d17b6f3d8" title="Check that a type signature is both valid and contains exactly one complete type.">dbus_signature_validate_single</a> (sig, <a class="code" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4" title="A null pointer, defined appropriately for C or C++.">NULL</a>));
<a name="l00525"></a>00525 <a class="code" href="group__DBusSignature.html#gaba53b1756fe7f665d0657cc50253e3c8" title="Initializes a DBusSignatureIter for reading a type signature.">dbus_signature_iter_init</a> (&iter, sig);
<a name="l00526"></a>00526 _dbus_assert (<a class="code" href="group__DBusSignature.html#gac4761ce10d60d7581cfe98beb6a9c57c" title="Returns the current type pointed to by the iterator.">dbus_signature_iter_get_current_type</a> (&iter) == <a class="code" href="group__DBusProtocol.html#ga8912f600f81a773066ca03d9163613a9" title="Type code marking a D-Bus array type.">DBUS_TYPE_ARRAY</a>);
<a name="l00527"></a>00527 _dbus_assert (<a class="code" href="group__DBusSignature.html#gaebb26dbc79dae5e11629f38b2c8277fd" title="Convenience function for returning the element type of an array; This function allows you to avoid in...">dbus_signature_iter_get_element_type</a> (&iter) == <a class="code" href="group__DBusProtocol.html#gad2fc8e6c50e0ad927f4249fb9e53ca97" title="Type code used to represent a dict entry; however, this type code does not appear in type signatures...">DBUS_TYPE_DICT_ENTRY</a>);
<a name="l00528"></a>00528
<a name="l00529"></a>00529 <a class="code" href="group__DBusSignature.html#ga0bd324faaf2dad5d075de3ff6c9b6796" title="Initialize a new iterator pointing to the first type in the current container.">dbus_signature_iter_recurse</a> (&iter, &subiter);
<a name="l00530"></a>00530 <a class="code" href="group__DBusSignature.html#ga0bd324faaf2dad5d075de3ff6c9b6796" title="Initialize a new iterator pointing to the first type in the current container.">dbus_signature_iter_recurse</a> (&subiter, &subsubiter);
<a name="l00531"></a>00531 _dbus_assert (<a class="code" href="group__DBusSignature.html#gac4761ce10d60d7581cfe98beb6a9c57c" title="Returns the current type pointed to by the iterator.">dbus_signature_iter_get_current_type</a> (&subsubiter) == <a class="code" href="group__DBusProtocol.html#ga49cdd4169af84ed7937f34b31f43e331" title="Type code marking a 16-bit signed integer.">DBUS_TYPE_INT16</a>);
<a name="l00532"></a>00532 boolres = <a class="code" href="group__DBusSignature.html#ga90e48ef4b86180ba033727107b03bd29" title="Skip to the next value on this "level".">dbus_signature_iter_next</a> (&subsubiter);
<a name="l00533"></a>00533 _dbus_assert (boolres);
<a name="l00534"></a>00534 _dbus_assert (<a class="code" href="group__DBusSignature.html#gac4761ce10d60d7581cfe98beb6a9c57c" title="Returns the current type pointed to by the iterator.">dbus_signature_iter_get_current_type</a> (&subsubiter) == <a class="code" href="group__DBusProtocol.html#ga7eb77066dadf5415896b44c56d93acce" title="Type code marking a UTF-8 encoded, nul-terminated Unicode string.">DBUS_TYPE_STRING</a>);
<a name="l00535"></a>00535 boolres = <a class="code" href="group__DBusSignature.html#ga90e48ef4b86180ba033727107b03bd29" title="Skip to the next value on this "level".">dbus_signature_iter_next</a> (&subsubiter);
<a name="l00536"></a>00536 _dbus_assert (!boolres);
<a name="l00537"></a>00537
<a name="l00538"></a>00538 boolres = <a class="code" href="group__DBusSignature.html#ga90e48ef4b86180ba033727107b03bd29" title="Skip to the next value on this "level".">dbus_signature_iter_next</a> (&iter);
<a name="l00539"></a>00539 _dbus_assert (boolres);
<a name="l00540"></a>00540 _dbus_assert (<a class="code" href="group__DBusSignature.html#gac4761ce10d60d7581cfe98beb6a9c57c" title="Returns the current type pointed to by the iterator.">dbus_signature_iter_get_current_type</a> (&iter) == <a class="code" href="group__DBusProtocol.html#ga4aa7a463ad2bce4e9aa95e3e397ddcf1" title="Type code marking a D-Bus variant type.">DBUS_TYPE_VARIANT</a>);
<a name="l00541"></a>00541 boolres = <a class="code" href="group__DBusSignature.html#ga90e48ef4b86180ba033727107b03bd29" title="Skip to the next value on this "level".">dbus_signature_iter_next</a> (&iter);
<a name="l00542"></a>00542 _dbus_assert (!boolres);
<a name="l00543"></a>00543
<a name="l00544"></a>00544 sig = <a class="code" href="group__DBusProtocol.html#ga9a39a1547bc0325ec3287defc3ccb95d" title="DBUS_TYPE_DICT_ENTRY as a string literal instead of a int literal">DBUS_TYPE_DICT_ENTRY_AS_STRING</a>;
<a name="l00545"></a>00545 _dbus_assert (!<a class="code" href="group__DBusSignature.html#ga0f4b81be4f6193c7d8da0ee214772e02" title="Check a type signature for validity.">dbus_signature_validate</a> (sig, <a class="code" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4" title="A null pointer, defined appropriately for C or C++.">NULL</a>));
<a name="l00546"></a>00546
<a name="l00547"></a>00547 sig = <a class="code" href="group__DBusProtocol.html#ga94236ec2eb0778dc636d061c48eeef23" title="DBUS_TYPE_ARRAY as a string literal instead of a int literal">DBUS_TYPE_ARRAY_AS_STRING</a>;
<a name="l00548"></a>00548 _dbus_assert (!<a class="code" href="group__DBusSignature.html#ga0f4b81be4f6193c7d8da0ee214772e02" title="Check a type signature for validity.">dbus_signature_validate</a> (sig, <a class="code" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4" title="A null pointer, defined appropriately for C or C++.">NULL</a>));
<a name="l00549"></a>00549
<a name="l00550"></a>00550 sig = <a class="code" href="group__DBusProtocol.html#gadd89012acfc88aef2b084ed265242e5e" title="DBUS_TYPE_UINT32 as a string literal instead of a int literal">DBUS_TYPE_UINT32_AS_STRING</a>
<a name="l00551"></a>00551 <a class="code" href="group__DBusProtocol.html#ga94236ec2eb0778dc636d061c48eeef23" title="DBUS_TYPE_ARRAY as a string literal instead of a int literal">DBUS_TYPE_ARRAY_AS_STRING</a>;
<a name="l00552"></a>00552 _dbus_assert (!<a class="code" href="group__DBusSignature.html#ga0f4b81be4f6193c7d8da0ee214772e02" title="Check a type signature for validity.">dbus_signature_validate</a> (sig, <a class="code" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4" title="A null pointer, defined appropriately for C or C++.">NULL</a>));
<a name="l00553"></a>00553
<a name="l00554"></a>00554 sig = DBUS_TYPE_ARRAY_AS_STRING
<a name="l00555"></a>00555 <a class="code" href="group__DBusProtocol.html#ga9a39a1547bc0325ec3287defc3ccb95d" title="DBUS_TYPE_DICT_ENTRY as a string literal instead of a int literal">DBUS_TYPE_DICT_ENTRY_AS_STRING</a>;
<a name="l00556"></a>00556 _dbus_assert (!<a class="code" href="group__DBusSignature.html#ga0f4b81be4f6193c7d8da0ee214772e02" title="Check a type signature for validity.">dbus_signature_validate</a> (sig, <a class="code" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4" title="A null pointer, defined appropriately for C or C++.">NULL</a>));
<a name="l00557"></a>00557
<a name="l00558"></a>00558 sig = <a class="code" href="group__DBusProtocol.html#ga590dc911798c8cdb47196871e12e68ec" title="DBUS_DICT_ENTRY_BEGIN_CHAR as a string literal instead of a int literal">DBUS_DICT_ENTRY_BEGIN_CHAR_AS_STRING</a>;
<a name="l00559"></a>00559 _dbus_assert (!<a class="code" href="group__DBusSignature.html#ga0f4b81be4f6193c7d8da0ee214772e02" title="Check a type signature for validity.">dbus_signature_validate</a> (sig, <a class="code" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4" title="A null pointer, defined appropriately for C or C++.">NULL</a>));
<a name="l00560"></a>00560
<a name="l00561"></a>00561 sig = <a class="code" href="group__DBusProtocol.html#gae0db9510e56f2d33fd999ca67ebe964e" title="DBUS_DICT_ENTRY_END_CHAR as a string literal instead of a int literal">DBUS_DICT_ENTRY_END_CHAR_AS_STRING</a>;
<a name="l00562"></a>00562 _dbus_assert (!<a class="code" href="group__DBusSignature.html#ga0f4b81be4f6193c7d8da0ee214772e02" title="Check a type signature for validity.">dbus_signature_validate</a> (sig, <a class="code" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4" title="A null pointer, defined appropriately for C or C++.">NULL</a>));
<a name="l00563"></a>00563
<a name="l00564"></a>00564 sig = <a class="code" href="group__DBusProtocol.html#ga590dc911798c8cdb47196871e12e68ec" title="DBUS_DICT_ENTRY_BEGIN_CHAR as a string literal instead of a int literal">DBUS_DICT_ENTRY_BEGIN_CHAR_AS_STRING</a>
<a name="l00565"></a>00565 <a class="code" href="group__DBusProtocol.html#ga5a7e049ba73ac54c2ffed02c28625b9e" title="DBUS_TYPE_INT32 as a string literal instead of a int literal">DBUS_TYPE_INT32_AS_STRING</a>;
<a name="l00566"></a>00566 _dbus_assert (!<a class="code" href="group__DBusSignature.html#ga0f4b81be4f6193c7d8da0ee214772e02" title="Check a type signature for validity.">dbus_signature_validate</a> (sig, <a class="code" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4" title="A null pointer, defined appropriately for C or C++.">NULL</a>));
<a name="l00567"></a>00567
<a name="l00568"></a>00568 sig = <a class="code" href="group__DBusProtocol.html#ga590dc911798c8cdb47196871e12e68ec" title="DBUS_DICT_ENTRY_BEGIN_CHAR as a string literal instead of a int literal">DBUS_DICT_ENTRY_BEGIN_CHAR_AS_STRING</a>
<a name="l00569"></a>00569 DBUS_TYPE_INT32_AS_STRING
<a name="l00570"></a>00570 <a class="code" href="group__DBusProtocol.html#gabca06d9d52c249619f52c903c06800aa" title="DBUS_TYPE_STRING as a string literal instead of a int literal">DBUS_TYPE_STRING_AS_STRING</a>;
<a name="l00571"></a>00571 _dbus_assert (!<a class="code" href="group__DBusSignature.html#ga0f4b81be4f6193c7d8da0ee214772e02" title="Check a type signature for validity.">dbus_signature_validate</a> (sig, <a class="code" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4" title="A null pointer, defined appropriately for C or C++.">NULL</a>));
<a name="l00572"></a>00572
<a name="l00573"></a>00573 sig = DBUS_STRUCT_END_CHAR_AS_STRING
<a name="l00574"></a>00574 <a class="code" href="group__DBusProtocol.html#gab6f2a0c823bd291bcb68948ce8181b8d" title="DBUS_STRUCT_BEGIN_CHAR as a string literal instead of a int literal">DBUS_STRUCT_BEGIN_CHAR_AS_STRING</a>;
<a name="l00575"></a>00575 _dbus_assert (!<a class="code" href="group__DBusSignature.html#ga0f4b81be4f6193c7d8da0ee214772e02" title="Check a type signature for validity.">dbus_signature_validate</a> (sig, <a class="code" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4" title="A null pointer, defined appropriately for C or C++.">NULL</a>));
<a name="l00576"></a>00576
<a name="l00577"></a>00577 sig = DBUS_STRUCT_BEGIN_CHAR_AS_STRING
<a name="l00578"></a>00578 <a class="code" href="group__DBusProtocol.html#ga2183265114080428cbfda3cffe8ac73d" title="DBUS_TYPE_BOOLEAN as a string literal instead of a int literal">DBUS_TYPE_BOOLEAN_AS_STRING</a>;
<a name="l00579"></a>00579 _dbus_assert (!<a class="code" href="group__DBusSignature.html#ga0f4b81be4f6193c7d8da0ee214772e02" title="Check a type signature for validity.">dbus_signature_validate</a> (sig, <a class="code" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4" title="A null pointer, defined appropriately for C or C++.">NULL</a>));
<a name="l00580"></a>00580 <span class="keywordflow">return</span> <a class="code" href="group__DBusMacros.html#gaa8cecfc5c5c054d2875c03e77b7be15d" title="Expands to "1".">TRUE</a>;
<a name="l00581"></a>00581 <span class="preprocessor">#if 0</span>
<a name="l00582"></a>00582 <span class="preprocessor"></span> oom:
<a name="l00583"></a>00583 _dbus_assert_not_reached (<span class="stringliteral">"out of memory"</span>);
<a name="l00584"></a>00584 <span class="keywordflow">return</span> <a class="code" href="group__DBusMacros.html#gaa93f0eb578d23995850d61f7d61c55c1" title="Expands to "0".">FALSE</a>;
<a name="l00585"></a>00585 <span class="preprocessor">#endif</span>
<a name="l00586"></a>00586 <span class="preprocessor"></span>}
<a name="l00587"></a>00587
<a name="l00588"></a>00588 <span class="preprocessor">#endif</span>
<a name="l00589"></a>00589 <span class="preprocessor"></span>
</pre></div></div><!-- contents -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Mar 3 2016 17:50:31 for D-Bus by  <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>