|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /proc/21573/root/usr/share/devhelp/books/dbus/api/ |
Upload File : |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>D-Bus: dbus-signature.c Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.7 -->
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main Page</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 id="current"><a href="files.html"><span>Files</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
</ul></div>
<h1>dbus-signature.c</h1><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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 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 "dbus-signature.h"</span>
<a name="l00025"></a>00025 <span class="preprocessor">#include "dbus-marshal-recursive.h"</span>
<a name="l00026"></a>00026 <span class="preprocessor">#include "dbus-marshal-basic.h"</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include "dbus-internals.h"</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include "dbus-test.h"</span>
<a name="l00029"></a>00029
<a name="l00033"></a><a class="code" href="structDBusSignatureRealIter.html">00033</a> <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00034"></a>00034 <span class="keyword"></span>{
<a name="l00035"></a><a class="code" href="structDBusSignatureRealIter.html#88eb8e63ea2550b23ab4e5a2056168c5">00035</a> <span class="keyword">const</span> <span class="keywordtype">char</span> *pos;
<a name="l00036"></a><a class="code" href="structDBusSignatureRealIter.html#54aa77a50490febee5d9b1cbce690639">00036</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> finished : 1;
<a name="l00037"></a><a class="code" href="structDBusSignatureRealIter.html#575114ffd9f42eb84909ea6c5d912c75">00037</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> in_array : 1;
<a name="l00038"></a>00038 } <a class="code" href="structDBusSignatureRealIter.html">DBusSignatureRealIter</a>;
<a name="l00039"></a>00039
<a name="l00041"></a>00041 <span class="preprocessor">#define TYPE_IS_CONTAINER(typecode) \</span>
<a name="l00042"></a>00042 <span class="preprocessor"> ((typecode) == DBUS_TYPE_STRUCT || \</span>
<a name="l00043"></a>00043 <span class="preprocessor"> (typecode) == DBUS_TYPE_DICT_ENTRY || \</span>
<a name="l00044"></a>00044 <span class="preprocessor"> (typecode) == DBUS_TYPE_VARIANT || \</span>
<a name="l00045"></a>00045 <span class="preprocessor"> (typecode) == DBUS_TYPE_ARRAY)</span>
<a name="l00046"></a>00046 <span class="preprocessor"></span>
<a name="l00047"></a>00047
<a name="l00064"></a>00064 <span class="keywordtype">void</span>
<a name="l00065"></a><a class="code" href="group__DBusSignature.html#g36ce12e778b0837f87f516c118b43efc">00065</a> <a class="code" href="group__DBusSignature.html#g36ce12e778b0837f87f516c118b43efc">dbus_signature_iter_init</a> (<a class="code" href="structDBusSignatureIter.html">DBusSignatureIter</a> *iter,
<a name="l00066"></a>00066 <span class="keyword">const</span> <span class="keywordtype">char</span> *signature)
<a name="l00067"></a>00067 {
<a name="l00068"></a>00068 <a class="code" href="structDBusSignatureRealIter.html">DBusSignatureRealIter</a> *real_iter = (<a class="code" href="structDBusSignatureRealIter.html">DBusSignatureRealIter</a> *) iter;
<a name="l00069"></a>00069
<a name="l00070"></a>00070 real_iter-><a class="code" href="structDBusSignatureRealIter.html#88eb8e63ea2550b23ab4e5a2056168c5">pos</a> = signature;
<a name="l00071"></a>00071 real_iter-><a class="code" href="structDBusSignatureRealIter.html#54aa77a50490febee5d9b1cbce690639">finished</a> = <a class="code" href="group__DBusMacros.html#ga93f0eb578d23995850d61f7d61c55c1">FALSE</a>;
<a name="l00072"></a>00072 real_iter-><a class="code" href="structDBusSignatureRealIter.html#575114ffd9f42eb84909ea6c5d912c75">in_array</a> = <a class="code" href="group__DBusMacros.html#ga93f0eb578d23995850d61f7d61c55c1">FALSE</a>;
<a name="l00073"></a>00073 }
<a name="l00074"></a>00074
<a name="l00089"></a>00089 <span class="keywordtype">int</span>
<a name="l00090"></a><a class="code" href="group__DBusSignature.html#g80c3703775e249df8bd980d7c34967f0">00090</a> <a class="code" href="group__DBusSignature.html#g80c3703775e249df8bd980d7c34967f0">dbus_signature_iter_get_current_type</a> (<span class="keyword">const</span> <a class="code" href="structDBusSignatureIter.html">DBusSignatureIter</a> *iter)
<a name="l00091"></a>00091 {
<a name="l00092"></a>00092 <a class="code" href="structDBusSignatureRealIter.html">DBusSignatureRealIter</a> *real_iter = (<a class="code" href="structDBusSignatureRealIter.html">DBusSignatureRealIter</a> *) iter;
<a name="l00093"></a>00093
<a name="l00094"></a>00094 <span class="keywordflow">return</span> <a class="code" href="group__DBusMarshal.html#g61cc8d9c4e4217be654455d8eb45544c">_dbus_first_type_in_signature_c_str</a> (real_iter-><a class="code" href="structDBusSignatureRealIter.html#88eb8e63ea2550b23ab4e5a2056168c5">pos</a>, 0);
<a name="l00095"></a>00095 }
<a name="l00096"></a>00096
<a name="l00109"></a>00109 <span class="keywordtype">char</span> *
<a name="l00110"></a><a class="code" href="group__DBusSignature.html#g395a3862b315c821dce7043a6464970a">00110</a> <a class="code" href="group__DBusSignature.html#g395a3862b315c821dce7043a6464970a">dbus_signature_iter_get_signature</a> (<span class="keyword">const</span> <a class="code" href="structDBusSignatureIter.html">DBusSignatureIter</a> *iter)
<a name="l00111"></a>00111 {
<a name="l00112"></a>00112 <a class="code" href="structDBusSignatureRealIter.html">DBusSignatureRealIter</a> *real_iter = (<a class="code" href="structDBusSignatureRealIter.html">DBusSignatureRealIter</a> *) iter;
<a name="l00113"></a>00113 <a class="code" href="structDBusString.html">DBusString</a> str;
<a name="l00114"></a>00114 <span class="keywordtype">char</span> *ret;
<a name="l00115"></a>00115 <span class="keywordtype">int</span> pos;
<a name="l00116"></a>00116
<a name="l00117"></a>00117 <span class="keywordflow">if</span> (!<a class="code" href="group__DBusString.html#g348252317f7bb8ac43529972945830ae">_dbus_string_init</a> (&str))
<a name="l00118"></a>00118 <span class="keywordflow">return</span> <a class="code" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>;
<a name="l00119"></a>00119
<a name="l00120"></a>00120 pos = 0;
<a name="l00121"></a>00121 <a class="code" href="group__DBusMarshal.html#gf2f5b2f027fa7d24f6179c6dbdf71a83">_dbus_type_signature_next</a> (real_iter-><a class="code" href="structDBusSignatureRealIter.html#88eb8e63ea2550b23ab4e5a2056168c5">pos</a>, &pos);
<a name="l00122"></a>00122
<a name="l00123"></a>00123 <span class="keywordflow">if</span> (!<a class="code" href="group__DBusString.html#g724656b7091b910965bd1af42d0b7bab">_dbus_string_append_len</a> (&str, real_iter-><a class="code" href="structDBusSignatureRealIter.html#88eb8e63ea2550b23ab4e5a2056168c5">pos</a>, pos))
<a name="l00124"></a>00124 <span class="keywordflow">return</span> <a class="code" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>;
<a name="l00125"></a>00125 <span class="keywordflow">if</span> (!<a class="code" href="group__DBusString.html#g556cc30c3ab032dbc63e217119f0d1f5">_dbus_string_steal_data</a> (&str, &ret))
<a name="l00126"></a>00126 ret = <a class="code" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>;
<a name="l00127"></a>00127 <a class="code" href="group__DBusString.html#g781ca91acda49a834dce7d0ed0eef212">_dbus_string_free</a> (&str);
<a name="l00128"></a>00128
<a name="l00129"></a>00129 <span class="keywordflow">return</span> ret;
<a name="l00130"></a>00130 }
<a name="l00131"></a>00131
<a name="l00143"></a>00143 <span class="keywordtype">int</span>
<a name="l00144"></a><a class="code" href="group__DBusSignature.html#gcf30e7e6f66905c8c76f3b8b1d254cb4">00144</a> <a class="code" href="group__DBusSignature.html#gcf30e7e6f66905c8c76f3b8b1d254cb4">dbus_signature_iter_get_element_type</a> (<span class="keyword">const</span> <a class="code" href="structDBusSignatureIter.html">DBusSignatureIter</a> *iter)
<a name="l00145"></a>00145 {
<a name="l00146"></a>00146 <a class="code" href="structDBusSignatureRealIter.html">DBusSignatureRealIter</a> *real_iter = (<a class="code" href="structDBusSignatureRealIter.html">DBusSignatureRealIter</a> *) iter;
<a name="l00147"></a>00147
<a name="l00148"></a>00148 _dbus_return_val_if_fail (<a class="code" href="group__DBusSignature.html#g80c3703775e249df8bd980d7c34967f0">dbus_signature_iter_get_current_type</a> (iter) == <a class="code" href="group__DBusProtocol.html#g8912f600f81a773066ca03d9163613a9">DBUS_TYPE_ARRAY</a>, <a class="code" href="group__DBusProtocol.html#ga9588da889743b2119dc6664712ae51e">DBUS_TYPE_INVALID</a>);
<a name="l00149"></a>00149
<a name="l00150"></a>00150 <span class="keywordflow">return</span> <a class="code" href="group__DBusMarshal.html#g61cc8d9c4e4217be654455d8eb45544c">_dbus_first_type_in_signature_c_str</a> (real_iter-><a class="code" href="structDBusSignatureRealIter.html#88eb8e63ea2550b23ab4e5a2056168c5">pos</a>, 1);
<a name="l00151"></a>00151 }
<a name="l00152"></a>00152
<a name="l00161"></a>00161 <a class="code" href="group__DBusTypes.html#g39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a>
<a name="l00162"></a><a class="code" href="group__DBusSignature.html#g0da9963d092223bc0ed5e30b52ddd156">00162</a> <a class="code" href="group__DBusSignature.html#g0da9963d092223bc0ed5e30b52ddd156">dbus_signature_iter_next</a> (<a class="code" href="structDBusSignatureIter.html">DBusSignatureIter</a> *iter)
<a name="l00163"></a>00163 {
<a name="l00164"></a>00164 <a class="code" href="structDBusSignatureRealIter.html">DBusSignatureRealIter</a> *real_iter = (<a class="code" href="structDBusSignatureRealIter.html">DBusSignatureRealIter</a> *) iter;
<a name="l00165"></a>00165
<a name="l00166"></a>00166 <span class="keywordflow">if</span> (real_iter-><a class="code" href="structDBusSignatureRealIter.html#54aa77a50490febee5d9b1cbce690639">finished</a>)
<a name="l00167"></a>00167 <span class="keywordflow">return</span> <a class="code" href="group__DBusMacros.html#ga93f0eb578d23995850d61f7d61c55c1">FALSE</a>;
<a name="l00168"></a>00168 <span class="keywordflow">else</span>
<a name="l00169"></a>00169 {
<a name="l00170"></a>00170 <span class="keywordtype">int</span> pos;
<a name="l00171"></a>00171
<a name="l00172"></a>00172 <span class="keywordflow">if</span> (real_iter-><a class="code" href="structDBusSignatureRealIter.html#575114ffd9f42eb84909ea6c5d912c75">in_array</a>)
<a name="l00173"></a>00173 {
<a name="l00174"></a>00174 real_iter-><a class="code" href="structDBusSignatureRealIter.html#54aa77a50490febee5d9b1cbce690639">finished</a> = <a class="code" href="group__DBusMacros.html#ga8cecfc5c5c054d2875c03e77b7be15d">TRUE</a>;
<a name="l00175"></a>00175 <span class="keywordflow">return</span> <a class="code" href="group__DBusMacros.html#ga93f0eb578d23995850d61f7d61c55c1">FALSE</a>;
<a name="l00176"></a>00176 }
<a name="l00177"></a>00177
<a name="l00178"></a>00178 pos = 0;
<a name="l00179"></a>00179 <a class="code" href="group__DBusMarshal.html#gf2f5b2f027fa7d24f6179c6dbdf71a83">_dbus_type_signature_next</a> (real_iter-><a class="code" href="structDBusSignatureRealIter.html#88eb8e63ea2550b23ab4e5a2056168c5">pos</a>, &pos);
<a name="l00180"></a>00180 real_iter-><a class="code" href="structDBusSignatureRealIter.html#88eb8e63ea2550b23ab4e5a2056168c5">pos</a> += pos;
<a name="l00181"></a>00181
<a name="l00182"></a>00182 <span class="keywordflow">if</span> (*real_iter-><a class="code" href="structDBusSignatureRealIter.html#88eb8e63ea2550b23ab4e5a2056168c5">pos</a> == <a class="code" href="group__DBusProtocol.html#geab5ea0def3f587a0ed548b77d5c5cea">DBUS_STRUCT_END_CHAR</a>
<a name="l00183"></a>00183 || *real_iter-><a class="code" href="structDBusSignatureRealIter.html#88eb8e63ea2550b23ab4e5a2056168c5">pos</a> == <a class="code" href="group__DBusProtocol.html#g29ad22c7342ead042ae9e55ae20b49f1">DBUS_DICT_ENTRY_END_CHAR</a>)
<a name="l00184"></a>00184 {
<a name="l00185"></a>00185 real_iter-><a class="code" href="structDBusSignatureRealIter.html#54aa77a50490febee5d9b1cbce690639">finished</a> = <a class="code" href="group__DBusMacros.html#ga8cecfc5c5c054d2875c03e77b7be15d">TRUE</a>;
<a name="l00186"></a>00186 <span class="keywordflow">return</span> <a class="code" href="group__DBusMacros.html#ga93f0eb578d23995850d61f7d61c55c1">FALSE</a>;
<a name="l00187"></a>00187 }
<a name="l00188"></a>00188
<a name="l00189"></a>00189 <span class="keywordflow">return</span> *real_iter-><a class="code" href="structDBusSignatureRealIter.html#88eb8e63ea2550b23ab4e5a2056168c5">pos</a> != <a class="code" href="group__DBusProtocol.html#ga9588da889743b2119dc6664712ae51e">DBUS_TYPE_INVALID</a>;
<a name="l00190"></a>00190 }
<a name="l00191"></a>00191 }
<a name="l00192"></a>00192
<a name="l00204"></a>00204 <span class="keywordtype">void</span>
<a name="l00205"></a><a class="code" href="group__DBusSignature.html#g1ded93db371633fd1420c77d9690a5d7">00205</a> <a class="code" href="group__DBusSignature.html#g1ded93db371633fd1420c77d9690a5d7">dbus_signature_iter_recurse</a> (<span class="keyword">const</span> <a class="code" href="structDBusSignatureIter.html">DBusSignatureIter</a> *iter,
<a name="l00206"></a>00206 <a class="code" href="structDBusSignatureIter.html">DBusSignatureIter</a> *subiter)
<a name="l00207"></a>00207 {
<a name="l00208"></a>00208 <a class="code" href="structDBusSignatureRealIter.html">DBusSignatureRealIter</a> *real_iter = (<a class="code" href="structDBusSignatureRealIter.html">DBusSignatureRealIter</a> *) iter;
<a name="l00209"></a>00209 <a class="code" href="structDBusSignatureRealIter.html">DBusSignatureRealIter</a> *real_sub_iter = (<a class="code" href="structDBusSignatureRealIter.html">DBusSignatureRealIter</a> *) subiter;
<a name="l00210"></a>00210
<a name="l00211"></a>00211 _dbus_return_if_fail (<a class="code" href="group__DBusSignature.html#g6e71e0d4ab3d7e68d2b906f43475544b">dbus_type_is_container</a> (<a class="code" href="group__DBusSignature.html#g80c3703775e249df8bd980d7c34967f0">dbus_signature_iter_get_current_type</a> (iter)));
<a name="l00212"></a>00212
<a name="l00213"></a>00213 *real_sub_iter = *real_iter;
<a name="l00214"></a>00214 real_sub_iter-><a class="code" href="structDBusSignatureRealIter.html#575114ffd9f42eb84909ea6c5d912c75">in_array</a> = <a class="code" href="group__DBusMacros.html#ga93f0eb578d23995850d61f7d61c55c1">FALSE</a>;
<a name="l00215"></a>00215 real_sub_iter-><a class="code" href="structDBusSignatureRealIter.html#88eb8e63ea2550b23ab4e5a2056168c5">pos</a>++;
<a name="l00216"></a>00216
<a name="l00217"></a>00217 <span class="keywordflow">if</span> (<a class="code" href="group__DBusSignature.html#g80c3703775e249df8bd980d7c34967f0">dbus_signature_iter_get_current_type</a> (iter) == <a class="code" href="group__DBusProtocol.html#g8912f600f81a773066ca03d9163613a9">DBUS_TYPE_ARRAY</a>)
<a name="l00218"></a>00218 real_sub_iter-><a class="code" href="structDBusSignatureRealIter.html#575114ffd9f42eb84909ea6c5d912c75">in_array</a> = <a class="code" href="group__DBusMacros.html#ga8cecfc5c5c054d2875c03e77b7be15d">TRUE</a>;
<a name="l00219"></a>00219 }
<a name="l00220"></a>00220
<a name="l00230"></a>00230 <a class="code" href="group__DBusTypes.html#g39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a>
<a name="l00231"></a><a class="code" href="group__DBusSignature.html#ge03b59a40be9d77098138bf9854f14e4">00231</a> <a class="code" href="group__DBusSignature.html#ge03b59a40be9d77098138bf9854f14e4">dbus_signature_validate</a> (<span class="keyword">const</span> <span class="keywordtype">char</span> *signature,
<a name="l00232"></a>00232 <a class="code" href="structDBusError.html">DBusError</a> *error)
<a name="l00233"></a>00233
<a name="l00234"></a>00234 {
<a name="l00235"></a>00235 <a class="code" href="structDBusString.html">DBusString</a> str;
<a name="l00236"></a>00236
<a name="l00237"></a>00237 <a class="code" href="group__DBusString.html#g374640ddfa2f0b27a8356e2379ba8043">_dbus_string_init_const</a> (&str, signature);
<a name="l00238"></a>00238 <span class="keywordflow">if</span> (<a class="code" href="group__DBusMarshal.html#g8d7aa58f6484d5d24f275dd65f101676">_dbus_validate_signature</a> (&str, 0, _dbus_string_get_length (&str)))
<a name="l00239"></a>00239 <span class="keywordflow">return</span> <a class="code" href="group__DBusMacros.html#ga8cecfc5c5c054d2875c03e77b7be15d">TRUE</a>;
<a name="l00240"></a>00240 <a class="code" href="group__DBusErrors.html#g4e1b4b297468006781a957129ad9cf00">dbus_set_error</a> (error, <a class="code" href="group__DBusProtocol.html#gc4fd50196d0b801a2204ccad4465c74e">DBUS_ERROR_INVALID_SIGNATURE</a>, <span class="stringliteral">"Corrupt type signature"</span>);
<a name="l00241"></a>00241 <span class="keywordflow">return</span> <a class="code" href="group__DBusMacros.html#ga93f0eb578d23995850d61f7d61c55c1">FALSE</a>;
<a name="l00242"></a>00242 }
<a name="l00243"></a>00243
<a name="l00255"></a>00255 <a class="code" href="group__DBusTypes.html#g39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a>
<a name="l00256"></a><a class="code" href="group__DBusSignature.html#g626a1e937b83f73516c3e0fdcf083052">00256</a> <a class="code" href="group__DBusSignature.html#g626a1e937b83f73516c3e0fdcf083052">dbus_signature_validate_single</a> (<span class="keyword">const</span> <span class="keywordtype">char</span> *signature,
<a name="l00257"></a>00257 <a class="code" href="structDBusError.html">DBusError</a> *error)
<a name="l00258"></a>00258 {
<a name="l00259"></a>00259 <a class="code" href="structDBusSignatureIter.html">DBusSignatureIter</a> iter;
<a name="l00260"></a>00260
<a name="l00261"></a>00261 <span class="keywordflow">if</span> (!<a class="code" href="group__DBusSignature.html#ge03b59a40be9d77098138bf9854f14e4">dbus_signature_validate</a> (signature, error))
<a name="l00262"></a>00262 <span class="keywordflow">return</span> <a class="code" href="group__DBusMacros.html#ga93f0eb578d23995850d61f7d61c55c1">FALSE</a>;
<a name="l00263"></a>00263
<a name="l00264"></a>00264 <a class="code" href="group__DBusSignature.html#g36ce12e778b0837f87f516c118b43efc">dbus_signature_iter_init</a> (&iter, signature);
<a name="l00265"></a>00265 <span class="keywordflow">if</span> (<a class="code" href="group__DBusSignature.html#g80c3703775e249df8bd980d7c34967f0">dbus_signature_iter_get_current_type</a> (&iter) == <a class="code" href="group__DBusProtocol.html#ga9588da889743b2119dc6664712ae51e">DBUS_TYPE_INVALID</a>)
<a name="l00266"></a>00266 <span class="keywordflow">goto</span> lose;
<a name="l00267"></a>00267 <span class="keywordflow">if</span> (!<a class="code" href="group__DBusSignature.html#g0da9963d092223bc0ed5e30b52ddd156">dbus_signature_iter_next</a> (&iter))
<a name="l00268"></a>00268 <span class="keywordflow">return</span> <a class="code" href="group__DBusMacros.html#ga8cecfc5c5c054d2875c03e77b7be15d">TRUE</a>;
<a name="l00269"></a>00269 lose:
<a name="l00270"></a>00270 <a class="code" href="group__DBusErrors.html#g4e1b4b297468006781a957129ad9cf00">dbus_set_error</a> (error, <a class="code" href="group__DBusProtocol.html#gc4fd50196d0b801a2204ccad4465c74e">DBUS_ERROR_INVALID_SIGNATURE</a>, <span class="stringliteral">"Exactly one complete type required in signature"</span>);
<a name="l00271"></a>00271 <span class="keywordflow">return</span> <a class="code" href="group__DBusMacros.html#ga93f0eb578d23995850d61f7d61c55c1">FALSE</a>;
<a name="l00272"></a>00272 }
<a name="l00273"></a>00273
<a name="l00283"></a>00283 <a class="code" href="group__DBusTypes.html#g39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a>
<a name="l00284"></a><a class="code" href="group__DBusSignature.html#g6e71e0d4ab3d7e68d2b906f43475544b">00284</a> <a class="code" href="group__DBusSignature.html#g6e71e0d4ab3d7e68d2b906f43475544b">dbus_type_is_container</a> (<span class="keywordtype">int</span> typecode)
<a name="l00285"></a>00285 {
<a name="l00286"></a>00286 <span class="comment">/* only reasonable (non-line-noise) typecodes are allowed */</span>
<a name="l00287"></a>00287 _dbus_return_val_if_fail (<a class="code" href="group__DBusMarshal.html#ga1bf18d3c95d4d4632fbdfe3a1d22bed">_dbus_type_is_valid</a> (typecode) || typecode == <a class="code" href="group__DBusProtocol.html#ga9588da889743b2119dc6664712ae51e">DBUS_TYPE_INVALID</a>,
<a name="l00288"></a>00288 <a class="code" href="group__DBusMacros.html#ga93f0eb578d23995850d61f7d61c55c1">FALSE</a>);
<a name="l00289"></a>00289 <span class="keywordflow">return</span> TYPE_IS_CONTAINER (typecode);
<a name="l00290"></a>00290 }
<a name="l00291"></a>00291
<a name="l00305"></a>00305 <a class="code" href="group__DBusTypes.html#g39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a>
<a name="l00306"></a><a class="code" href="group__DBusSignature.html#g2d8d39cba08f450645a17651478a0ad4">00306</a> <a class="code" href="group__DBusSignature.html#g2d8d39cba08f450645a17651478a0ad4">dbus_type_is_basic</a> (<span class="keywordtype">int</span> typecode)
<a name="l00307"></a>00307 {
<a name="l00308"></a>00308 <span class="comment">/* only reasonable (non-line-noise) typecodes are allowed */</span>
<a name="l00309"></a>00309 _dbus_return_val_if_fail (<a class="code" href="group__DBusMarshal.html#ga1bf18d3c95d4d4632fbdfe3a1d22bed">_dbus_type_is_valid</a> (typecode) || typecode == <a class="code" href="group__DBusProtocol.html#ga9588da889743b2119dc6664712ae51e">DBUS_TYPE_INVALID</a>,
<a name="l00310"></a>00310 <a class="code" href="group__DBusMacros.html#ga93f0eb578d23995850d61f7d61c55c1">FALSE</a>);
<a name="l00311"></a>00311
<a name="l00312"></a>00312 <span class="comment">/* everything that isn't invalid or a container */</span>
<a name="l00313"></a>00313 <span class="keywordflow">return</span> !(typecode == <a class="code" href="group__DBusProtocol.html#ga9588da889743b2119dc6664712ae51e">DBUS_TYPE_INVALID</a> || TYPE_IS_CONTAINER (typecode));
<a name="l00314"></a>00314 }
<a name="l00315"></a>00315
<a name="l00334"></a>00334 <a class="code" href="group__DBusTypes.html#g39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a>
<a name="l00335"></a><a class="code" href="group__DBusSignature.html#g435ffc74ae015cc193175f5b864872bc">00335</a> <a class="code" href="group__DBusSignature.html#g435ffc74ae015cc193175f5b864872bc">dbus_type_is_fixed</a> (<span class="keywordtype">int</span> typecode)
<a name="l00336"></a>00336 {
<a name="l00337"></a>00337 <span class="comment">/* only reasonable (non-line-noise) typecodes are allowed */</span>
<a name="l00338"></a>00338 _dbus_return_val_if_fail (<a class="code" href="group__DBusMarshal.html#ga1bf18d3c95d4d4632fbdfe3a1d22bed">_dbus_type_is_valid</a> (typecode) || typecode == <a class="code" href="group__DBusProtocol.html#ga9588da889743b2119dc6664712ae51e">DBUS_TYPE_INVALID</a>,
<a name="l00339"></a>00339 <a class="code" href="group__DBusMacros.html#ga93f0eb578d23995850d61f7d61c55c1">FALSE</a>);
<a name="l00340"></a>00340
<a name="l00341"></a>00341 <span class="keywordflow">switch</span> (typecode)
<a name="l00342"></a>00342 {
<a name="l00343"></a>00343 <span class="keywordflow">case</span> <a class="code" href="group__DBusProtocol.html#g355d6d0998164a5eb915a26fb67fce5f">DBUS_TYPE_BYTE</a>:
<a name="l00344"></a>00344 <span class="keywordflow">case</span> <a class="code" href="group__DBusProtocol.html#g624ecee83984330ad89cbf064a2b28e6">DBUS_TYPE_BOOLEAN</a>:
<a name="l00345"></a>00345 <span class="keywordflow">case</span> <a class="code" href="group__DBusProtocol.html#g49cdd4169af84ed7937f34b31f43e331">DBUS_TYPE_INT16</a>:
<a name="l00346"></a>00346 <span class="keywordflow">case</span> <a class="code" href="group__DBusProtocol.html#gd74b8d93a1464182ac1af7e0e2435f46">DBUS_TYPE_UINT16</a>:
<a name="l00347"></a>00347 <span class="keywordflow">case</span> <a class="code" href="group__DBusProtocol.html#g5943b497db2e1dec04fae60584a294bb">DBUS_TYPE_INT32</a>:
<a name="l00348"></a>00348 <span class="keywordflow">case</span> <a class="code" href="group__DBusProtocol.html#gedb1740bd8a9174b98ac593eded25d49">DBUS_TYPE_UINT32</a>:
<a name="l00349"></a>00349 <span class="keywordflow">case</span> <a class="code" href="group__DBusProtocol.html#gbda4301c14b367f151f86769a1c27c5b">DBUS_TYPE_INT64</a>:
<a name="l00350"></a>00350 <span class="keywordflow">case</span> <a class="code" href="group__DBusProtocol.html#gc59cc8f824813444cc9585effd4770d7">DBUS_TYPE_UINT64</a>:
<a name="l00351"></a>00351 <span class="keywordflow">case</span> <a class="code" href="group__DBusProtocol.html#gc30c00bb6de04d0886cfbace276ec353">DBUS_TYPE_DOUBLE</a>:
<a name="l00352"></a>00352 <span class="keywordflow">return</span> <a class="code" href="group__DBusMacros.html#ga8cecfc5c5c054d2875c03e77b7be15d">TRUE</a>;
<a name="l00353"></a>00353 <span class="keywordflow">default</span>:
<a name="l00354"></a>00354 <span class="keywordflow">return</span> <a class="code" href="group__DBusMacros.html#ga93f0eb578d23995850d61f7d61c55c1">FALSE</a>;
<a name="l00355"></a>00355 }
<a name="l00356"></a>00356 }
<a name="l00357"></a>00357 <span class="comment">/* end of DBusSignature group */</span>
<a name="l00359"></a>00359
<a name="l00360"></a>00360 <span class="preprocessor">#ifdef DBUS_BUILD_TESTS</span>
<a name="l00361"></a>00361 <span class="preprocessor"></span>
<a name="l00368"></a>00368 <a class="code" href="group__DBusTypes.html#g39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a>
<a name="l00369"></a>00369 _dbus_signature_test (<span class="keywordtype">void</span>)
<a name="l00370"></a>00370 {
<a name="l00371"></a>00371 <a class="code" href="structDBusSignatureIter.html">DBusSignatureIter</a> iter;
<a name="l00372"></a>00372 <a class="code" href="structDBusSignatureIter.html">DBusSignatureIter</a> subiter;
<a name="l00373"></a>00373 <a class="code" href="structDBusSignatureIter.html">DBusSignatureIter</a> subsubiter;
<a name="l00374"></a>00374 <a class="code" href="structDBusSignatureIter.html">DBusSignatureIter</a> subsubsubiter;
<a name="l00375"></a>00375 <span class="keyword">const</span> <span class="keywordtype">char</span> *sig;
<a name="l00376"></a>00376 <a class="code" href="group__DBusTypes.html#g39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> boolres;
<a name="l00377"></a>00377
<a name="l00378"></a>00378 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (<span class="keyword">sizeof</span> (<a class="code" href="structDBusSignatureIter.html">DBusSignatureIter</a>) >= <span class="keyword">sizeof</span> (<a class="code" href="structDBusSignatureRealIter.html">DBusSignatureRealIter</a>));
<a name="l00379"></a>00379
<a name="l00380"></a>00380 sig = <span class="stringliteral">""</span>;
<a name="l00381"></a>00381 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (<a class="code" href="group__DBusSignature.html#ge03b59a40be9d77098138bf9854f14e4">dbus_signature_validate</a> (sig, <a class="code" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>));
<a name="l00382"></a>00382 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (!<a class="code" href="group__DBusSignature.html#g626a1e937b83f73516c3e0fdcf083052">dbus_signature_validate_single</a> (sig, <a class="code" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>));
<a name="l00383"></a>00383 <a class="code" href="group__DBusSignature.html#g36ce12e778b0837f87f516c118b43efc">dbus_signature_iter_init</a> (&iter, sig);
<a name="l00384"></a>00384 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (<a class="code" href="group__DBusSignature.html#g80c3703775e249df8bd980d7c34967f0">dbus_signature_iter_get_current_type</a> (&iter) == <a class="code" href="group__DBusProtocol.html#ga9588da889743b2119dc6664712ae51e">DBUS_TYPE_INVALID</a>);
<a name="l00385"></a>00385
<a name="l00386"></a>00386 sig = <a class="code" href="group__DBusProtocol.html#gbca06d9d52c249619f52c903c06800aa">DBUS_TYPE_STRING_AS_STRING</a>;
<a name="l00387"></a>00387 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (<a class="code" href="group__DBusSignature.html#ge03b59a40be9d77098138bf9854f14e4">dbus_signature_validate</a> (sig, <a class="code" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>));
<a name="l00388"></a>00388 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (<a class="code" href="group__DBusSignature.html#g626a1e937b83f73516c3e0fdcf083052">dbus_signature_validate_single</a> (sig, <a class="code" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>));
<a name="l00389"></a>00389 <a class="code" href="group__DBusSignature.html#g36ce12e778b0837f87f516c118b43efc">dbus_signature_iter_init</a> (&iter, sig);
<a name="l00390"></a>00390 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (<a class="code" href="group__DBusSignature.html#g80c3703775e249df8bd980d7c34967f0">dbus_signature_iter_get_current_type</a> (&iter) == <a class="code" href="group__DBusProtocol.html#g7eb77066dadf5415896b44c56d93acce">DBUS_TYPE_STRING</a>);
<a name="l00391"></a>00391
<a name="l00392"></a>00392 sig = <a class="code" href="group__DBusProtocol.html#gbca06d9d52c249619f52c903c06800aa">DBUS_TYPE_STRING_AS_STRING</a> <a class="code" href="group__DBusProtocol.html#g309cc856f9b903032b55fe346268104b">DBUS_TYPE_BYTE_AS_STRING</a>;
<a name="l00393"></a>00393 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (<a class="code" href="group__DBusSignature.html#ge03b59a40be9d77098138bf9854f14e4">dbus_signature_validate</a> (sig, <a class="code" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>));
<a name="l00394"></a>00394 <a class="code" href="group__DBusSignature.html#g36ce12e778b0837f87f516c118b43efc">dbus_signature_iter_init</a> (&iter, sig);
<a name="l00395"></a>00395 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (<a class="code" href="group__DBusSignature.html#g80c3703775e249df8bd980d7c34967f0">dbus_signature_iter_get_current_type</a> (&iter) == <a class="code" href="group__DBusProtocol.html#g7eb77066dadf5415896b44c56d93acce">DBUS_TYPE_STRING</a>);
<a name="l00396"></a>00396 boolres = <a class="code" href="group__DBusSignature.html#g0da9963d092223bc0ed5e30b52ddd156">dbus_signature_iter_next</a> (&iter);
<a name="l00397"></a>00397 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (boolres);
<a name="l00398"></a>00398 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (<a class="code" href="group__DBusSignature.html#g80c3703775e249df8bd980d7c34967f0">dbus_signature_iter_get_current_type</a> (&iter) == <a class="code" href="group__DBusProtocol.html#g355d6d0998164a5eb915a26fb67fce5f">DBUS_TYPE_BYTE</a>);
<a name="l00399"></a>00399
<a name="l00400"></a>00400 sig = <a class="code" href="group__DBusProtocol.html#gee963e8da6d318a6b4fd8a73f9538c70">DBUS_TYPE_UINT16_AS_STRING</a>
<a name="l00401"></a>00401 <a class="code" href="group__DBusProtocol.html#gb6f2a0c823bd291bcb68948ce8181b8d">DBUS_STRUCT_BEGIN_CHAR_AS_STRING</a>
<a name="l00402"></a>00402 <a class="code" href="group__DBusProtocol.html#gbca06d9d52c249619f52c903c06800aa">DBUS_TYPE_STRING_AS_STRING</a>
<a name="l00403"></a>00403 <a class="code" href="group__DBusProtocol.html#gdd89012acfc88aef2b084ed265242e5e">DBUS_TYPE_UINT32_AS_STRING</a>
<a name="l00404"></a>00404 <a class="code" href="group__DBusProtocol.html#gc5d9893972a0fdcd77eab6534cada8be">DBUS_TYPE_VARIANT_AS_STRING</a>
<a name="l00405"></a>00405 <a class="code" href="group__DBusProtocol.html#g456972f2328504450ab5eec13730278c">DBUS_TYPE_DOUBLE_AS_STRING</a>
<a name="l00406"></a>00406 <a class="code" href="group__DBusProtocol.html#g97075c0573afa424216716f86e3693ad">DBUS_STRUCT_END_CHAR_AS_STRING</a>;
<a name="l00407"></a>00407 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (<a class="code" href="group__DBusSignature.html#ge03b59a40be9d77098138bf9854f14e4">dbus_signature_validate</a> (sig, <a class="code" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>));
<a name="l00408"></a>00408 <a class="code" href="group__DBusSignature.html#g36ce12e778b0837f87f516c118b43efc">dbus_signature_iter_init</a> (&iter, sig);
<a name="l00409"></a>00409 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (<a class="code" href="group__DBusSignature.html#g80c3703775e249df8bd980d7c34967f0">dbus_signature_iter_get_current_type</a> (&iter) == <a class="code" href="group__DBusProtocol.html#gd74b8d93a1464182ac1af7e0e2435f46">DBUS_TYPE_UINT16</a>);
<a name="l00410"></a>00410 boolres = <a class="code" href="group__DBusSignature.html#g0da9963d092223bc0ed5e30b52ddd156">dbus_signature_iter_next</a> (&iter);
<a name="l00411"></a>00411 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (boolres);
<a name="l00412"></a>00412 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (<a class="code" href="group__DBusSignature.html#g80c3703775e249df8bd980d7c34967f0">dbus_signature_iter_get_current_type</a> (&iter) == <a class="code" href="group__DBusProtocol.html#ge4b22a74b9edb0ec0ff6e0294794d3f9">DBUS_TYPE_STRUCT</a>);
<a name="l00413"></a>00413 <a class="code" href="group__DBusSignature.html#g1ded93db371633fd1420c77d9690a5d7">dbus_signature_iter_recurse</a> (&iter, &subiter);
<a name="l00414"></a>00414 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (<a class="code" href="group__DBusSignature.html#g80c3703775e249df8bd980d7c34967f0">dbus_signature_iter_get_current_type</a> (&subiter) == <a class="code" href="group__DBusProtocol.html#g7eb77066dadf5415896b44c56d93acce">DBUS_TYPE_STRING</a>);
<a name="l00415"></a>00415 boolres = <a class="code" href="group__DBusSignature.html#g0da9963d092223bc0ed5e30b52ddd156">dbus_signature_iter_next</a> (&subiter);
<a name="l00416"></a>00416 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (boolres);
<a name="l00417"></a>00417 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (<a class="code" href="group__DBusSignature.html#g80c3703775e249df8bd980d7c34967f0">dbus_signature_iter_get_current_type</a> (&subiter) == <a class="code" href="group__DBusProtocol.html#gedb1740bd8a9174b98ac593eded25d49">DBUS_TYPE_UINT32</a>);
<a name="l00418"></a>00418 boolres = <a class="code" href="group__DBusSignature.html#g0da9963d092223bc0ed5e30b52ddd156">dbus_signature_iter_next</a> (&subiter);
<a name="l00419"></a>00419 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (boolres);
<a name="l00420"></a>00420 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (<a class="code" href="group__DBusSignature.html#g80c3703775e249df8bd980d7c34967f0">dbus_signature_iter_get_current_type</a> (&subiter) == <a class="code" href="group__DBusProtocol.html#g4aa7a463ad2bce4e9aa95e3e397ddcf1">DBUS_TYPE_VARIANT</a>);
<a name="l00421"></a>00421 boolres = <a class="code" href="group__DBusSignature.html#g0da9963d092223bc0ed5e30b52ddd156">dbus_signature_iter_next</a> (&subiter);
<a name="l00422"></a>00422 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (boolres);
<a name="l00423"></a>00423 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (<a class="code" href="group__DBusSignature.html#g80c3703775e249df8bd980d7c34967f0">dbus_signature_iter_get_current_type</a> (&subiter) == <a class="code" href="group__DBusProtocol.html#gc30c00bb6de04d0886cfbace276ec353">DBUS_TYPE_DOUBLE</a>);
<a name="l00424"></a>00424
<a name="l00425"></a>00425 sig = <a class="code" href="group__DBusProtocol.html#gee963e8da6d318a6b4fd8a73f9538c70">DBUS_TYPE_UINT16_AS_STRING</a>
<a name="l00426"></a>00426 <a class="code" href="group__DBusProtocol.html#gb6f2a0c823bd291bcb68948ce8181b8d">DBUS_STRUCT_BEGIN_CHAR_AS_STRING</a>
<a name="l00427"></a>00427 <a class="code" href="group__DBusProtocol.html#gdd89012acfc88aef2b084ed265242e5e">DBUS_TYPE_UINT32_AS_STRING</a>
<a name="l00428"></a>00428 DBUS_TYPE_BYTE_AS_STRING
<a name="l00429"></a>00429 <a class="code" href="group__DBusProtocol.html#g94236ec2eb0778dc636d061c48eeef23">DBUS_TYPE_ARRAY_AS_STRING</a>
<a name="l00430"></a>00430 <a class="code" href="group__DBusProtocol.html#g94236ec2eb0778dc636d061c48eeef23">DBUS_TYPE_ARRAY_AS_STRING</a>
<a name="l00431"></a>00431 <a class="code" href="group__DBusProtocol.html#g456972f2328504450ab5eec13730278c">DBUS_TYPE_DOUBLE_AS_STRING</a>
<a name="l00432"></a>00432 <a class="code" href="group__DBusProtocol.html#gb6f2a0c823bd291bcb68948ce8181b8d">DBUS_STRUCT_BEGIN_CHAR_AS_STRING</a>
<a name="l00433"></a>00433 DBUS_TYPE_BYTE_AS_STRING
<a name="l00434"></a>00434 DBUS_STRUCT_END_CHAR_AS_STRING
<a name="l00435"></a>00435 DBUS_STRUCT_END_CHAR_AS_STRING;
<a name="l00436"></a>00436 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (<a class="code" href="group__DBusSignature.html#ge03b59a40be9d77098138bf9854f14e4">dbus_signature_validate</a> (sig, <a class="code" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>));
<a name="l00437"></a>00437 <a class="code" href="group__DBusSignature.html#g36ce12e778b0837f87f516c118b43efc">dbus_signature_iter_init</a> (&iter, sig);
<a name="l00438"></a>00438 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (<a class="code" href="group__DBusSignature.html#g80c3703775e249df8bd980d7c34967f0">dbus_signature_iter_get_current_type</a> (&iter) == <a class="code" href="group__DBusProtocol.html#gd74b8d93a1464182ac1af7e0e2435f46">DBUS_TYPE_UINT16</a>);
<a name="l00439"></a>00439 boolres = <a class="code" href="group__DBusSignature.html#g0da9963d092223bc0ed5e30b52ddd156">dbus_signature_iter_next</a> (&iter);
<a name="l00440"></a>00440 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (boolres);
<a name="l00441"></a>00441 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (<a class="code" href="group__DBusSignature.html#g80c3703775e249df8bd980d7c34967f0">dbus_signature_iter_get_current_type</a> (&iter) == <a class="code" href="group__DBusProtocol.html#ge4b22a74b9edb0ec0ff6e0294794d3f9">DBUS_TYPE_STRUCT</a>);
<a name="l00442"></a>00442 <a class="code" href="group__DBusSignature.html#g1ded93db371633fd1420c77d9690a5d7">dbus_signature_iter_recurse</a> (&iter, &subiter);
<a name="l00443"></a>00443 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (<a class="code" href="group__DBusSignature.html#g80c3703775e249df8bd980d7c34967f0">dbus_signature_iter_get_current_type</a> (&subiter) == <a class="code" href="group__DBusProtocol.html#gedb1740bd8a9174b98ac593eded25d49">DBUS_TYPE_UINT32</a>);
<a name="l00444"></a>00444 boolres = <a class="code" href="group__DBusSignature.html#g0da9963d092223bc0ed5e30b52ddd156">dbus_signature_iter_next</a> (&subiter);
<a name="l00445"></a>00445 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (boolres);
<a name="l00446"></a>00446 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (<a class="code" href="group__DBusSignature.html#g80c3703775e249df8bd980d7c34967f0">dbus_signature_iter_get_current_type</a> (&subiter) == <a class="code" href="group__DBusProtocol.html#g355d6d0998164a5eb915a26fb67fce5f">DBUS_TYPE_BYTE</a>);
<a name="l00447"></a>00447 boolres = <a class="code" href="group__DBusSignature.html#g0da9963d092223bc0ed5e30b52ddd156">dbus_signature_iter_next</a> (&subiter);
<a name="l00448"></a>00448 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (boolres);
<a name="l00449"></a>00449 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (<a class="code" href="group__DBusSignature.html#g80c3703775e249df8bd980d7c34967f0">dbus_signature_iter_get_current_type</a> (&subiter) == <a class="code" href="group__DBusProtocol.html#g8912f600f81a773066ca03d9163613a9">DBUS_TYPE_ARRAY</a>);
<a name="l00450"></a>00450 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (<a class="code" href="group__DBusSignature.html#gcf30e7e6f66905c8c76f3b8b1d254cb4">dbus_signature_iter_get_element_type</a> (&subiter) == <a class="code" href="group__DBusProtocol.html#g8912f600f81a773066ca03d9163613a9">DBUS_TYPE_ARRAY</a>);
<a name="l00451"></a>00451
<a name="l00452"></a>00452 <a class="code" href="group__DBusSignature.html#g1ded93db371633fd1420c77d9690a5d7">dbus_signature_iter_recurse</a> (&subiter, &subsubiter);
<a name="l00453"></a>00453 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (<a class="code" href="group__DBusSignature.html#g80c3703775e249df8bd980d7c34967f0">dbus_signature_iter_get_current_type</a> (&subsubiter) == <a class="code" href="group__DBusProtocol.html#g8912f600f81a773066ca03d9163613a9">DBUS_TYPE_ARRAY</a>);
<a name="l00454"></a>00454 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (<a class="code" href="group__DBusSignature.html#gcf30e7e6f66905c8c76f3b8b1d254cb4">dbus_signature_iter_get_element_type</a> (&subsubiter) == <a class="code" href="group__DBusProtocol.html#gc30c00bb6de04d0886cfbace276ec353">DBUS_TYPE_DOUBLE</a>);
<a name="l00455"></a>00455
<a name="l00456"></a>00456 <a class="code" href="group__DBusSignature.html#g1ded93db371633fd1420c77d9690a5d7">dbus_signature_iter_recurse</a> (&subsubiter, &subsubsubiter);
<a name="l00457"></a>00457 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (<a class="code" href="group__DBusSignature.html#g80c3703775e249df8bd980d7c34967f0">dbus_signature_iter_get_current_type</a> (&subsubsubiter) == <a class="code" href="group__DBusProtocol.html#gc30c00bb6de04d0886cfbace276ec353">DBUS_TYPE_DOUBLE</a>);
<a name="l00458"></a>00458 boolres = <a class="code" href="group__DBusSignature.html#g0da9963d092223bc0ed5e30b52ddd156">dbus_signature_iter_next</a> (&subiter);
<a name="l00459"></a>00459 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (boolres);
<a name="l00460"></a>00460 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (<a class="code" href="group__DBusSignature.html#g80c3703775e249df8bd980d7c34967f0">dbus_signature_iter_get_current_type</a> (&subiter) == <a class="code" href="group__DBusProtocol.html#ge4b22a74b9edb0ec0ff6e0294794d3f9">DBUS_TYPE_STRUCT</a>);
<a name="l00461"></a>00461 <a class="code" href="group__DBusSignature.html#g1ded93db371633fd1420c77d9690a5d7">dbus_signature_iter_recurse</a> (&subiter, &subsubiter);
<a name="l00462"></a>00462 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (<a class="code" href="group__DBusSignature.html#g80c3703775e249df8bd980d7c34967f0">dbus_signature_iter_get_current_type</a> (&subsubiter) == <a class="code" href="group__DBusProtocol.html#g355d6d0998164a5eb915a26fb67fce5f">DBUS_TYPE_BYTE</a>);
<a name="l00463"></a>00463
<a name="l00464"></a>00464 sig = <a class="code" href="group__DBusProtocol.html#g94236ec2eb0778dc636d061c48eeef23">DBUS_TYPE_ARRAY_AS_STRING</a>
<a name="l00465"></a>00465 <a class="code" href="group__DBusProtocol.html#g590dc911798c8cdb47196871e12e68ec">DBUS_DICT_ENTRY_BEGIN_CHAR_AS_STRING</a>
<a name="l00466"></a>00466 <a class="code" href="group__DBusProtocol.html#g21c2efd8ed6b83302f3ef2a1f759359f">DBUS_TYPE_INT16_AS_STRING</a>
<a name="l00467"></a>00467 <a class="code" href="group__DBusProtocol.html#gbca06d9d52c249619f52c903c06800aa">DBUS_TYPE_STRING_AS_STRING</a>
<a name="l00468"></a>00468 <a class="code" href="group__DBusProtocol.html#ge0db9510e56f2d33fd999ca67ebe964e">DBUS_DICT_ENTRY_END_CHAR_AS_STRING</a>
<a name="l00469"></a>00469 <a class="code" href="group__DBusProtocol.html#gc5d9893972a0fdcd77eab6534cada8be">DBUS_TYPE_VARIANT_AS_STRING</a>;
<a name="l00470"></a>00470 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (<a class="code" href="group__DBusSignature.html#ge03b59a40be9d77098138bf9854f14e4">dbus_signature_validate</a> (sig, <a class="code" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>));
<a name="l00471"></a>00471 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (!<a class="code" href="group__DBusSignature.html#g626a1e937b83f73516c3e0fdcf083052">dbus_signature_validate_single</a> (sig, <a class="code" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>));
<a name="l00472"></a>00472 <a class="code" href="group__DBusSignature.html#g36ce12e778b0837f87f516c118b43efc">dbus_signature_iter_init</a> (&iter, sig);
<a name="l00473"></a>00473 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (<a class="code" href="group__DBusSignature.html#g80c3703775e249df8bd980d7c34967f0">dbus_signature_iter_get_current_type</a> (&iter) == <a class="code" href="group__DBusProtocol.html#g8912f600f81a773066ca03d9163613a9">DBUS_TYPE_ARRAY</a>);
<a name="l00474"></a>00474 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (<a class="code" href="group__DBusSignature.html#gcf30e7e6f66905c8c76f3b8b1d254cb4">dbus_signature_iter_get_element_type</a> (&iter) == <a class="code" href="group__DBusProtocol.html#gd2fc8e6c50e0ad927f4249fb9e53ca97">DBUS_TYPE_DICT_ENTRY</a>);
<a name="l00475"></a>00475
<a name="l00476"></a>00476 <a class="code" href="group__DBusSignature.html#g1ded93db371633fd1420c77d9690a5d7">dbus_signature_iter_recurse</a> (&iter, &subiter);
<a name="l00477"></a>00477 <a class="code" href="group__DBusSignature.html#g1ded93db371633fd1420c77d9690a5d7">dbus_signature_iter_recurse</a> (&subiter, &subsubiter);
<a name="l00478"></a>00478 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (<a class="code" href="group__DBusSignature.html#g80c3703775e249df8bd980d7c34967f0">dbus_signature_iter_get_current_type</a> (&subsubiter) == <a class="code" href="group__DBusProtocol.html#g49cdd4169af84ed7937f34b31f43e331">DBUS_TYPE_INT16</a>);
<a name="l00479"></a>00479 boolres = <a class="code" href="group__DBusSignature.html#g0da9963d092223bc0ed5e30b52ddd156">dbus_signature_iter_next</a> (&subsubiter);
<a name="l00480"></a>00480 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (boolres);
<a name="l00481"></a>00481 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (<a class="code" href="group__DBusSignature.html#g80c3703775e249df8bd980d7c34967f0">dbus_signature_iter_get_current_type</a> (&subsubiter) == <a class="code" href="group__DBusProtocol.html#g7eb77066dadf5415896b44c56d93acce">DBUS_TYPE_STRING</a>);
<a name="l00482"></a>00482 boolres = <a class="code" href="group__DBusSignature.html#g0da9963d092223bc0ed5e30b52ddd156">dbus_signature_iter_next</a> (&subsubiter);
<a name="l00483"></a>00483 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (!boolres);
<a name="l00484"></a>00484
<a name="l00485"></a>00485 boolres = <a class="code" href="group__DBusSignature.html#g0da9963d092223bc0ed5e30b52ddd156">dbus_signature_iter_next</a> (&iter);
<a name="l00486"></a>00486 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (boolres);
<a name="l00487"></a>00487 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (<a class="code" href="group__DBusSignature.html#g80c3703775e249df8bd980d7c34967f0">dbus_signature_iter_get_current_type</a> (&iter) == <a class="code" href="group__DBusProtocol.html#g4aa7a463ad2bce4e9aa95e3e397ddcf1">DBUS_TYPE_VARIANT</a>);
<a name="l00488"></a>00488 boolres = <a class="code" href="group__DBusSignature.html#g0da9963d092223bc0ed5e30b52ddd156">dbus_signature_iter_next</a> (&iter);
<a name="l00489"></a>00489 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (!boolres);
<a name="l00490"></a>00490
<a name="l00491"></a>00491 sig = <a class="code" href="group__DBusProtocol.html#g9a39a1547bc0325ec3287defc3ccb95d">DBUS_TYPE_DICT_ENTRY_AS_STRING</a>;
<a name="l00492"></a>00492 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (!<a class="code" href="group__DBusSignature.html#ge03b59a40be9d77098138bf9854f14e4">dbus_signature_validate</a> (sig, <a class="code" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>));
<a name="l00493"></a>00493
<a name="l00494"></a>00494 sig = <a class="code" href="group__DBusProtocol.html#g94236ec2eb0778dc636d061c48eeef23">DBUS_TYPE_ARRAY_AS_STRING</a>;
<a name="l00495"></a>00495 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (!<a class="code" href="group__DBusSignature.html#ge03b59a40be9d77098138bf9854f14e4">dbus_signature_validate</a> (sig, <a class="code" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>));
<a name="l00496"></a>00496
<a name="l00497"></a>00497 sig = <a class="code" href="group__DBusProtocol.html#gdd89012acfc88aef2b084ed265242e5e">DBUS_TYPE_UINT32_AS_STRING</a>
<a name="l00498"></a>00498 <a class="code" href="group__DBusProtocol.html#g94236ec2eb0778dc636d061c48eeef23">DBUS_TYPE_ARRAY_AS_STRING</a>;
<a name="l00499"></a>00499 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (!<a class="code" href="group__DBusSignature.html#ge03b59a40be9d77098138bf9854f14e4">dbus_signature_validate</a> (sig, <a class="code" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>));
<a name="l00500"></a>00500
<a name="l00501"></a>00501 sig = DBUS_TYPE_ARRAY_AS_STRING
<a name="l00502"></a>00502 <a class="code" href="group__DBusProtocol.html#g9a39a1547bc0325ec3287defc3ccb95d">DBUS_TYPE_DICT_ENTRY_AS_STRING</a>;
<a name="l00503"></a>00503 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (!<a class="code" href="group__DBusSignature.html#ge03b59a40be9d77098138bf9854f14e4">dbus_signature_validate</a> (sig, <a class="code" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>));
<a name="l00504"></a>00504
<a name="l00505"></a>00505 sig = <a class="code" href="group__DBusProtocol.html#g590dc911798c8cdb47196871e12e68ec">DBUS_DICT_ENTRY_BEGIN_CHAR_AS_STRING</a>;
<a name="l00506"></a>00506 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (!<a class="code" href="group__DBusSignature.html#ge03b59a40be9d77098138bf9854f14e4">dbus_signature_validate</a> (sig, <a class="code" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>));
<a name="l00507"></a>00507
<a name="l00508"></a>00508 sig = <a class="code" href="group__DBusProtocol.html#ge0db9510e56f2d33fd999ca67ebe964e">DBUS_DICT_ENTRY_END_CHAR_AS_STRING</a>;
<a name="l00509"></a>00509 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (!<a class="code" href="group__DBusSignature.html#ge03b59a40be9d77098138bf9854f14e4">dbus_signature_validate</a> (sig, <a class="code" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>));
<a name="l00510"></a>00510
<a name="l00511"></a>00511 sig = <a class="code" href="group__DBusProtocol.html#g590dc911798c8cdb47196871e12e68ec">DBUS_DICT_ENTRY_BEGIN_CHAR_AS_STRING</a>
<a name="l00512"></a>00512 <a class="code" href="group__DBusProtocol.html#g5a7e049ba73ac54c2ffed02c28625b9e">DBUS_TYPE_INT32_AS_STRING</a>;
<a name="l00513"></a>00513 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (!<a class="code" href="group__DBusSignature.html#ge03b59a40be9d77098138bf9854f14e4">dbus_signature_validate</a> (sig, <a class="code" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>));
<a name="l00514"></a>00514
<a name="l00515"></a>00515 sig = <a class="code" href="group__DBusProtocol.html#g590dc911798c8cdb47196871e12e68ec">DBUS_DICT_ENTRY_BEGIN_CHAR_AS_STRING</a>
<a name="l00516"></a>00516 DBUS_TYPE_INT32_AS_STRING
<a name="l00517"></a>00517 <a class="code" href="group__DBusProtocol.html#gbca06d9d52c249619f52c903c06800aa">DBUS_TYPE_STRING_AS_STRING</a>;
<a name="l00518"></a>00518 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (!<a class="code" href="group__DBusSignature.html#ge03b59a40be9d77098138bf9854f14e4">dbus_signature_validate</a> (sig, <a class="code" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>));
<a name="l00519"></a>00519
<a name="l00520"></a>00520 sig = DBUS_STRUCT_END_CHAR_AS_STRING
<a name="l00521"></a>00521 <a class="code" href="group__DBusProtocol.html#gb6f2a0c823bd291bcb68948ce8181b8d">DBUS_STRUCT_BEGIN_CHAR_AS_STRING</a>;
<a name="l00522"></a>00522 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (!<a class="code" href="group__DBusSignature.html#ge03b59a40be9d77098138bf9854f14e4">dbus_signature_validate</a> (sig, <a class="code" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>));
<a name="l00523"></a>00523
<a name="l00524"></a>00524 sig = DBUS_STRUCT_BEGIN_CHAR_AS_STRING
<a name="l00525"></a>00525 <a class="code" href="group__DBusProtocol.html#g2183265114080428cbfda3cffe8ac73d">DBUS_TYPE_BOOLEAN_AS_STRING</a>;
<a name="l00526"></a>00526 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (!<a class="code" href="group__DBusSignature.html#ge03b59a40be9d77098138bf9854f14e4">dbus_signature_validate</a> (sig, <a class="code" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>));
<a name="l00527"></a>00527 <span class="keywordflow">return</span> <a class="code" href="group__DBusMacros.html#ga8cecfc5c5c054d2875c03e77b7be15d">TRUE</a>;
<a name="l00528"></a>00528 <span class="preprocessor">#if 0</span>
<a name="l00529"></a>00529 <span class="preprocessor"></span> oom:
<a name="l00530"></a>00530 <a class="code" href="group__DBusInternalsUtils.html#g0c4961ec784874f1b1f3aeccea8d3da1">_dbus_assert_not_reached</a> (<span class="stringliteral">"out of memory"</span>);
<a name="l00531"></a>00531 <span class="keywordflow">return</span> <a class="code" href="group__DBusMacros.html#ga93f0eb578d23995850d61f7d61c55c1">FALSE</a>;
<a name="l00532"></a>00532 <span class="preprocessor">#endif</span>
<a name="l00533"></a>00533 <span class="preprocessor"></span>}
<a name="l00534"></a>00534
<a name="l00535"></a>00535 <span class="preprocessor">#endif</span>
<a name="l00536"></a>00536 <span class="preprocessor"></span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 14 22:26:12 2009 for D-Bus by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>