KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/21573/root/usr/share/devhelp/books/dbus/api/dbus-marshal-byteswap_8c-source.html
<!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-marshal-byteswap.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&nbsp;Page</span></a></li>
    <li><a href="modules.html"><span>Modules</span></a></li>
    <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
    <li id="current"><a href="files.html"><span>Files</span></a></li>
    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
  </ul></div>
<h1>dbus-marshal-byteswap.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-marshal-byteswap.c  Swap a block of marshaled data</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-marshal-byteswap.h"</span>
<a name="l00025"></a>00025 <span class="preprocessor">#include "dbus-marshal-basic.h"</span>
<a name="l00026"></a>00026 <span class="preprocessor">#include "dbus-signature.h"</span>
<a name="l00027"></a>00027 
<a name="l00033"></a>00033 <span class="keyword">static</span> <span class="keywordtype">void</span>
<a name="l00034"></a>00034 byteswap_body_helper (<a class="code" href="structDBusTypeReader.html">DBusTypeReader</a>       *reader,
<a name="l00035"></a>00035                       <a class="code" href="group__DBusTypes.html#g39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a>           walk_reader_to_end,
<a name="l00036"></a>00036                       <span class="keywordtype">int</span>                   old_byte_order,
<a name="l00037"></a>00037                       <span class="keywordtype">int</span>                   new_byte_order,
<a name="l00038"></a>00038                       <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>        *p,
<a name="l00039"></a>00039                       <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>       **new_p)
<a name="l00040"></a>00040 {
<a name="l00041"></a>00041   <span class="keywordtype">int</span> current_type;
<a name="l00042"></a>00042 
<a name="l00043"></a>00043   <span class="keywordflow">while</span> ((current_type = <a class="code" href="group__DBusMarshal.html#gb8e39cb8084247d54d7f272c51622a73">_dbus_type_reader_get_current_type</a> (reader)) != <a class="code" href="group__DBusProtocol.html#ga9588da889743b2119dc6664712ae51e">DBUS_TYPE_INVALID</a>)
<a name="l00044"></a>00044     {
<a name="l00045"></a>00045       <span class="keywordflow">switch</span> (current_type)
<a name="l00046"></a>00046         {
<a name="l00047"></a>00047         <span class="keywordflow">case</span> <a class="code" href="group__DBusProtocol.html#g355d6d0998164a5eb915a26fb67fce5f">DBUS_TYPE_BYTE</a>:
<a name="l00048"></a>00048           ++p;
<a name="l00049"></a>00049           <span class="keywordflow">break</span>;
<a name="l00050"></a>00050 
<a name="l00051"></a>00051         <span class="keywordflow">case</span> <a class="code" href="group__DBusProtocol.html#g49cdd4169af84ed7937f34b31f43e331">DBUS_TYPE_INT16</a>:
<a name="l00052"></a>00052         <span class="keywordflow">case</span> <a class="code" href="group__DBusProtocol.html#gd74b8d93a1464182ac1af7e0e2435f46">DBUS_TYPE_UINT16</a>:
<a name="l00053"></a>00053           {
<a name="l00054"></a>00054             p = _DBUS_ALIGN_ADDRESS (p, 2);
<a name="l00055"></a>00055             *((<a class="code" href="group__DBusTypes.html#g8132d71032da957f08ce4e0ec87f2063">dbus_uint16_t</a>*)p) = DBUS_UINT16_SWAP_LE_BE (*((<a class="code" href="group__DBusTypes.html#g8132d71032da957f08ce4e0ec87f2063">dbus_uint16_t</a>*)p));
<a name="l00056"></a>00056             p += 2;
<a name="l00057"></a>00057           }
<a name="l00058"></a>00058           <span class="keywordflow">break</span>;
<a name="l00059"></a>00059           
<a name="l00060"></a>00060         <span class="keywordflow">case</span> <a class="code" href="group__DBusProtocol.html#g624ecee83984330ad89cbf064a2b28e6">DBUS_TYPE_BOOLEAN</a>:
<a name="l00061"></a>00061         <span class="keywordflow">case</span> <a class="code" href="group__DBusProtocol.html#g5943b497db2e1dec04fae60584a294bb">DBUS_TYPE_INT32</a>:
<a name="l00062"></a>00062         <span class="keywordflow">case</span> <a class="code" href="group__DBusProtocol.html#gedb1740bd8a9174b98ac593eded25d49">DBUS_TYPE_UINT32</a>:
<a name="l00063"></a>00063           {
<a name="l00064"></a>00064             p = _DBUS_ALIGN_ADDRESS (p, 4);
<a name="l00065"></a>00065             *((<a class="code" href="group__DBusTypes.html#gf513803b030613a669cc7ef199f90a8b">dbus_uint32_t</a>*)p) = DBUS_UINT32_SWAP_LE_BE (*((<a class="code" href="group__DBusTypes.html#gf513803b030613a669cc7ef199f90a8b">dbus_uint32_t</a>*)p));
<a name="l00066"></a>00066             p += 4;
<a name="l00067"></a>00067           }
<a name="l00068"></a>00068           <span class="keywordflow">break</span>;
<a name="l00069"></a>00069           
<a name="l00070"></a>00070         <span class="keywordflow">case</span> <a class="code" href="group__DBusProtocol.html#gbda4301c14b367f151f86769a1c27c5b">DBUS_TYPE_INT64</a>:
<a name="l00071"></a>00071         <span class="keywordflow">case</span> <a class="code" href="group__DBusProtocol.html#gc59cc8f824813444cc9585effd4770d7">DBUS_TYPE_UINT64</a>:
<a name="l00072"></a>00072         <span class="keywordflow">case</span> <a class="code" href="group__DBusProtocol.html#gc30c00bb6de04d0886cfbace276ec353">DBUS_TYPE_DOUBLE</a>:
<a name="l00073"></a>00073           {
<a name="l00074"></a>00074             p = _DBUS_ALIGN_ADDRESS (p, 8);
<a name="l00075"></a>00075 <span class="preprocessor">#ifdef DBUS_HAVE_INT64</span>
<a name="l00076"></a>00076 <span class="preprocessor"></span>            *((<a class="code" href="group__DBusTypes.html#g0a7c275002dbafa34536a76db079a950">dbus_uint64_t</a>*)p) = DBUS_UINT64_SWAP_LE_BE (*((<a class="code" href="group__DBusTypes.html#g0a7c275002dbafa34536a76db079a950">dbus_uint64_t</a>*)p));
<a name="l00077"></a>00077 <span class="preprocessor">#else</span>
<a name="l00078"></a>00078 <span class="preprocessor"></span>            <a class="code" href="group__DBusMarshal.html#gec86e8e1ae2f25b673ae6d900ab323c7">_dbus_swap_array</a> (p, 1, 8);
<a name="l00079"></a>00079 <span class="preprocessor">#endif</span>
<a name="l00080"></a>00080 <span class="preprocessor"></span>            p += 8;
<a name="l00081"></a>00081           }
<a name="l00082"></a>00082           <span class="keywordflow">break</span>;
<a name="l00083"></a>00083 
<a name="l00084"></a>00084         <span class="keywordflow">case</span> <a class="code" href="group__DBusProtocol.html#g8912f600f81a773066ca03d9163613a9">DBUS_TYPE_ARRAY</a>:
<a name="l00085"></a>00085         <span class="keywordflow">case</span> <a class="code" href="group__DBusProtocol.html#g7eb77066dadf5415896b44c56d93acce">DBUS_TYPE_STRING</a>:
<a name="l00086"></a>00086         <span class="keywordflow">case</span> <a class="code" href="group__DBusProtocol.html#g31cc59c99a6cbbfcef71756e1390dc4c">DBUS_TYPE_OBJECT_PATH</a>:
<a name="l00087"></a>00087           {
<a name="l00088"></a>00088             <a class="code" href="group__DBusTypes.html#gf513803b030613a669cc7ef199f90a8b">dbus_uint32_t</a> array_len;
<a name="l00089"></a>00089             
<a name="l00090"></a>00090             p = _DBUS_ALIGN_ADDRESS (p, 4);
<a name="l00091"></a>00091 
<a name="l00092"></a>00092             array_len = _dbus_unpack_uint32 (old_byte_order, p);
<a name="l00093"></a>00093 
<a name="l00094"></a>00094             *((<a class="code" href="group__DBusTypes.html#gf513803b030613a669cc7ef199f90a8b">dbus_uint32_t</a>*)p) = DBUS_UINT32_SWAP_LE_BE (*((<a class="code" href="group__DBusTypes.html#gf513803b030613a669cc7ef199f90a8b">dbus_uint32_t</a>*)p));
<a name="l00095"></a>00095             p += 4;
<a name="l00096"></a>00096 
<a name="l00097"></a>00097             <span class="keywordflow">if</span> (current_type == <a class="code" href="group__DBusProtocol.html#g8912f600f81a773066ca03d9163613a9">DBUS_TYPE_ARRAY</a>)
<a name="l00098"></a>00098               {
<a name="l00099"></a>00099                 <span class="keywordtype">int</span> elem_type;
<a name="l00100"></a>00100                 <span class="keywordtype">int</span> alignment;
<a name="l00101"></a>00101 
<a name="l00102"></a>00102                 elem_type = <a class="code" href="group__DBusMarshal.html#g6e5439f7ca5ee8a1ce943ddab7611d0d">_dbus_type_reader_get_element_type</a> (reader);
<a name="l00103"></a>00103                 alignment = <a class="code" href="group__DBusMarshal.html#g2ba80f227880e442c140bc67653b0abd">_dbus_type_get_alignment</a> (elem_type);
<a name="l00104"></a>00104 
<a name="l00105"></a>00105                 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> ((array_len / alignment) &lt; <a class="code" href="group__DBusProtocol.html#g5265afa08a4c8d9f31b287a57e8cb217">DBUS_MAXIMUM_ARRAY_LENGTH</a>);
<a name="l00106"></a>00106 
<a name="l00107"></a>00107                 p = _DBUS_ALIGN_ADDRESS (p, alignment);
<a name="l00108"></a>00108                 
<a name="l00109"></a>00109                 <span class="keywordflow">if</span> (<a class="code" href="group__DBusSignature.html#g435ffc74ae015cc193175f5b864872bc">dbus_type_is_fixed</a> (elem_type))
<a name="l00110"></a>00110                   {
<a name="l00111"></a>00111                     <span class="keywordflow">if</span> (alignment &gt; 1)
<a name="l00112"></a>00112                       <a class="code" href="group__DBusMarshal.html#gec86e8e1ae2f25b673ae6d900ab323c7">_dbus_swap_array</a> (p, array_len / alignment, alignment);
<a name="l00113"></a>00113                     p += array_len;
<a name="l00114"></a>00114                   }
<a name="l00115"></a>00115                 <span class="keywordflow">else</span>
<a name="l00116"></a>00116                   {
<a name="l00117"></a>00117                     <a class="code" href="structDBusTypeReader.html">DBusTypeReader</a> sub;
<a name="l00118"></a>00118                     <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *array_end;
<a name="l00119"></a>00119 
<a name="l00120"></a>00120                     array_end = p + array_len;
<a name="l00121"></a>00121                     
<a name="l00122"></a>00122                     <a class="code" href="group__DBusMarshal.html#g082b410820c74b2a6ca816a8e0c91803">_dbus_type_reader_recurse</a> (reader, &amp;sub);
<a name="l00123"></a>00123 
<a name="l00124"></a>00124                     <span class="keywordflow">while</span> (p &lt; array_end)
<a name="l00125"></a>00125                       {
<a name="l00126"></a>00126                         byteswap_body_helper (&amp;sub,
<a name="l00127"></a>00127                                               <a class="code" href="group__DBusMacros.html#ga93f0eb578d23995850d61f7d61c55c1">FALSE</a>,
<a name="l00128"></a>00128                                               old_byte_order,
<a name="l00129"></a>00129                                               new_byte_order,
<a name="l00130"></a>00130                                               p, &amp;p);
<a name="l00131"></a>00131                       }
<a name="l00132"></a>00132                   }
<a name="l00133"></a>00133               }
<a name="l00134"></a>00134             <span class="keywordflow">else</span>
<a name="l00135"></a>00135               {
<a name="l00136"></a>00136                 <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (current_type == <a class="code" href="group__DBusProtocol.html#g7eb77066dadf5415896b44c56d93acce">DBUS_TYPE_STRING</a> ||
<a name="l00137"></a>00137                               current_type == <a class="code" href="group__DBusProtocol.html#g31cc59c99a6cbbfcef71756e1390dc4c">DBUS_TYPE_OBJECT_PATH</a>);
<a name="l00138"></a>00138                 
<a name="l00139"></a>00139                 p += (array_len + 1); <span class="comment">/* + 1 for nul */</span>
<a name="l00140"></a>00140               }
<a name="l00141"></a>00141           }
<a name="l00142"></a>00142           <span class="keywordflow">break</span>;
<a name="l00143"></a>00143 
<a name="l00144"></a>00144         <span class="keywordflow">case</span> <a class="code" href="group__DBusProtocol.html#g26ed6c20c3d9f0b50ea0a1cf80be3279">DBUS_TYPE_SIGNATURE</a>:
<a name="l00145"></a>00145           {
<a name="l00146"></a>00146             <a class="code" href="group__DBusTypes.html#gf513803b030613a669cc7ef199f90a8b">dbus_uint32_t</a> sig_len;
<a name="l00147"></a>00147 
<a name="l00148"></a>00148             sig_len = *p;
<a name="l00149"></a>00149             
<a name="l00150"></a>00150             p += (sig_len + 2); <span class="comment">/* +2 for len and nul */</span>
<a name="l00151"></a>00151           }
<a name="l00152"></a>00152           <span class="keywordflow">break</span>;
<a name="l00153"></a>00153 
<a name="l00154"></a>00154         <span class="keywordflow">case</span> <a class="code" href="group__DBusProtocol.html#g4aa7a463ad2bce4e9aa95e3e397ddcf1">DBUS_TYPE_VARIANT</a>:
<a name="l00155"></a>00155           {
<a name="l00156"></a>00156             <span class="comment">/* 1 byte sig len, sig typecodes, align to</span>
<a name="l00157"></a>00157 <span class="comment">             * contained-type-boundary, values.</span>
<a name="l00158"></a>00158 <span class="comment">             */</span>
<a name="l00159"></a>00159             <a class="code" href="group__DBusTypes.html#gf513803b030613a669cc7ef199f90a8b">dbus_uint32_t</a> sig_len;
<a name="l00160"></a>00160             <a class="code" href="structDBusString.html">DBusString</a> sig;
<a name="l00161"></a>00161             <a class="code" href="structDBusTypeReader.html">DBusTypeReader</a> sub;
<a name="l00162"></a>00162             <span class="keywordtype">int</span> contained_alignment;
<a name="l00163"></a>00163 
<a name="l00164"></a>00164             sig_len = *p;
<a name="l00165"></a>00165             ++p;
<a name="l00166"></a>00166 
<a name="l00167"></a>00167             <a class="code" href="group__DBusString.html#g6792a5c1725faa9d635d95f7a3b5bfae">_dbus_string_init_const_len</a> (&amp;sig, p, sig_len);
<a name="l00168"></a>00168 
<a name="l00169"></a>00169             p += (sig_len + 1); <span class="comment">/* 1 for nul */</span>
<a name="l00170"></a>00170 
<a name="l00171"></a>00171             contained_alignment = <a class="code" href="group__DBusMarshal.html#g2ba80f227880e442c140bc67653b0abd">_dbus_type_get_alignment</a> (<a class="code" href="group__DBusMarshal.html#g5866a0fd058aed3396402d0456144fd2">_dbus_first_type_in_signature</a> (&amp;sig, 0));
<a name="l00172"></a>00172             
<a name="l00173"></a>00173             p = _DBUS_ALIGN_ADDRESS (p, contained_alignment);
<a name="l00174"></a>00174 
<a name="l00175"></a>00175             <a class="code" href="group__DBusMarshal.html#g3a5845f555f11c33ebaa71a75abff661">_dbus_type_reader_init_types_only</a> (&amp;sub, &amp;sig, 0);
<a name="l00176"></a>00176 
<a name="l00177"></a>00177             byteswap_body_helper (&amp;sub, <a class="code" href="group__DBusMacros.html#ga93f0eb578d23995850d61f7d61c55c1">FALSE</a>, old_byte_order, new_byte_order, p, &amp;p);
<a name="l00178"></a>00178           }
<a name="l00179"></a>00179           <span class="keywordflow">break</span>;
<a name="l00180"></a>00180 
<a name="l00181"></a>00181         <span class="keywordflow">case</span> <a class="code" href="group__DBusProtocol.html#ge4b22a74b9edb0ec0ff6e0294794d3f9">DBUS_TYPE_STRUCT</a>:
<a name="l00182"></a>00182         <span class="keywordflow">case</span> <a class="code" href="group__DBusProtocol.html#gd2fc8e6c50e0ad927f4249fb9e53ca97">DBUS_TYPE_DICT_ENTRY</a>:
<a name="l00183"></a>00183           {
<a name="l00184"></a>00184             <a class="code" href="structDBusTypeReader.html">DBusTypeReader</a> sub;
<a name="l00185"></a>00185 
<a name="l00186"></a>00186             p = _DBUS_ALIGN_ADDRESS (p, 8);
<a name="l00187"></a>00187             
<a name="l00188"></a>00188             <a class="code" href="group__DBusMarshal.html#g082b410820c74b2a6ca816a8e0c91803">_dbus_type_reader_recurse</a> (reader, &amp;sub);
<a name="l00189"></a>00189             
<a name="l00190"></a>00190             byteswap_body_helper (&amp;sub, <a class="code" href="group__DBusMacros.html#ga8cecfc5c5c054d2875c03e77b7be15d">TRUE</a>, old_byte_order, new_byte_order, p, &amp;p);
<a name="l00191"></a>00191           }
<a name="l00192"></a>00192           <span class="keywordflow">break</span>;
<a name="l00193"></a>00193 
<a name="l00194"></a>00194         <span class="keywordflow">default</span>:
<a name="l00195"></a>00195           <a class="code" href="group__DBusInternalsUtils.html#g0c4961ec784874f1b1f3aeccea8d3da1">_dbus_assert_not_reached</a> (<span class="stringliteral">"invalid typecode in supposedly-validated signature"</span>);
<a name="l00196"></a>00196           <span class="keywordflow">break</span>;
<a name="l00197"></a>00197         }
<a name="l00198"></a>00198 
<a name="l00199"></a>00199       <span class="keywordflow">if</span> (walk_reader_to_end)
<a name="l00200"></a>00200         <a class="code" href="group__DBusMarshal.html#g746c09512d4905f2d2fac7ed4c3c63c2">_dbus_type_reader_next</a> (reader);
<a name="l00201"></a>00201       <span class="keywordflow">else</span>
<a name="l00202"></a>00202         <span class="keywordflow">break</span>;
<a name="l00203"></a>00203     }
<a name="l00204"></a>00204 
<a name="l00205"></a>00205   <span class="keywordflow">if</span> (new_p)
<a name="l00206"></a>00206     *new_p = p;
<a name="l00207"></a>00207 }
<a name="l00208"></a>00208 
<a name="l00219"></a>00219 <span class="keywordtype">void</span>
<a name="l00220"></a><a class="code" href="group__DBusMarshal.html#g609a4b8c0b65096890766fda73a4c40f">00220</a> <a class="code" href="group__DBusMarshal.html#g609a4b8c0b65096890766fda73a4c40f">_dbus_marshal_byteswap</a> (<span class="keyword">const</span> <a class="code" href="structDBusString.html">DBusString</a> *signature,
<a name="l00221"></a>00221                         <span class="keywordtype">int</span>               signature_start,
<a name="l00222"></a>00222                         <span class="keywordtype">int</span>               old_byte_order,
<a name="l00223"></a>00223                         <span class="keywordtype">int</span>               new_byte_order,
<a name="l00224"></a>00224                         <a class="code" href="structDBusString.html">DBusString</a>       *value_str,
<a name="l00225"></a>00225                         <span class="keywordtype">int</span>               value_pos)
<a name="l00226"></a>00226 {
<a name="l00227"></a>00227   <a class="code" href="structDBusTypeReader.html">DBusTypeReader</a> reader;
<a name="l00228"></a>00228 
<a name="l00229"></a>00229   <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (value_pos &gt;= 0);
<a name="l00230"></a>00230   <a class="code" href="group__DBusInternalsUtils.html#g129c6c03f011cdc171934d5d386cc797">_dbus_assert</a> (value_pos &lt;= _dbus_string_get_length (value_str));
<a name="l00231"></a>00231 
<a name="l00232"></a>00232   <span class="keywordflow">if</span> (old_byte_order == new_byte_order)
<a name="l00233"></a>00233     <span class="keywordflow">return</span>;
<a name="l00234"></a>00234   
<a name="l00235"></a>00235   <a class="code" href="group__DBusMarshal.html#g3a5845f555f11c33ebaa71a75abff661">_dbus_type_reader_init_types_only</a> (&amp;reader,
<a name="l00236"></a>00236                                      signature, signature_start);
<a name="l00237"></a>00237 
<a name="l00238"></a>00238   byteswap_body_helper (&amp;reader, <a class="code" href="group__DBusMacros.html#ga8cecfc5c5c054d2875c03e77b7be15d">TRUE</a>,
<a name="l00239"></a>00239                         old_byte_order, new_byte_order,
<a name="l00240"></a>00240                         <a class="code" href="group__DBusString.html#g7a73fb373398606e6e1d0a86c4587a3c">_dbus_string_get_data_len</a> (value_str, value_pos, 0),
<a name="l00241"></a>00241                         <a class="code" href="group__DBusMacros.html#g070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>);
<a name="l00242"></a>00242 }
<a name="l00243"></a>00243 
<a name="l00246"></a>00246 <span class="comment">/* Tests in dbus-marshal-byteswap-util.c */</span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 14 22:26:11 2009 for D-Bus by&nbsp;
<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>

Anon7 - 2021