[telepathy-doc/master] Not all arrays are stored as GPtrArray

Will Thompson will.thompson at collabora.co.uk
Tue Jun 16 02:05:30 PDT 2009


---
 docs/book/C/basics.xml |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/docs/book/C/basics.xml b/docs/book/C/basics.xml
index 057998b..d87bf1e 100644
--- a/docs/book/C/basics.xml
+++ b/docs/book/C/basics.xml
@@ -944,8 +944,17 @@ get_channels_cb (TpProxy        *proxy,
        </para>
        <itemizedlist>
         <listitem><para>
-         Arrays (e.g. <literal>as</literal>) are stored as a
-         <classname>GPtrArray</classname>;
+         Arrays of complex types (e.g. <literal>a(suv)</literal>) and of object
+         paths (<literal>ao</literal>) are stored as a
+         <classname>GPtrArray</classname>.
+        </para></listitem>
+        <listitem><para>
+         Arrays of strings (<literal>as</literal>), which are stored as a
+         <literal>NULL</literal>-terminated <literal>gchar **</literal>.
+        </para></listitem>
+        <listitem><para>
+         Arrays of all other simple types (e.g. <literal>au</literal>) are
+         stored as a <classname>GArray</classname>.
         </para></listitem>
         <listitem><para>
          Structures (e.g. <literal>(oa{sv})</literal>) are stored as a
-- 
1.5.6.5



More information about the telepathy-commits mailing list