Hi,<br>I have written a program that implement a method call.<br>I want to get an integer as the return value. <br>when I run the program the remote method is invocate and no error returned. But the returned integer remain zero(0).<br>
I have included the core code fragment below. <br><br>my xml is <br><br>  &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br><br>&lt;node name=&quot;/org/dalesa/ProxyAdmin&quot;&gt;<br>        &lt;interface name=&quot;org.dalesa.ProxyAdmin&quot;&gt;<br>
                &lt;!-- Add more methods/signals if you want --&gt;<br>                &lt;method name=&quot;GetProxyAdmin&quot;&gt;<br>                        &lt;arg type=&quot;av&quot; name=&quot;pa&quot; direction=&quot;out&quot;/&gt;<br>
                &lt;/method&gt;<br>                &lt;method name=&quot;SetProxyAdmin&quot;&gt;<br>                        &lt;arg type=&quot;av&quot; name=&quot;pa&quot; direction=&quot;in&quot;/&gt;<br>                &lt;/method&gt;<br>
                &lt;method name=&quot;ProxyAdminStop&quot;/&gt;<br>                &lt;method name=&quot;ProxyAdminStart&quot;/&gt;<br>                &lt;method name=&quot;ProxyAdminSearch&quot;&gt;<br>                        &lt;arg type=&quot;s&quot; name=&quot;pas&quot; direction =&quot;in&quot;/&gt;<br>
                        &lt;arg type=&quot;i&quot; name=&quot;offset&quot; direction =&quot;in&quot;/&gt;<br>                        &lt;!--&lt;arg type=&quot;a(ssuu)&quot; name=&quot;pas&quot; direction =&quot;out&quot;/&gt; --&gt;<br>
                        &lt;arg type=&quot;i&quot; name=&quot;ret_offset&quot; direction =&quot;out&quot;/&gt;<br>                &lt;/method&gt;<br>                &lt;signal name=&quot;sig_0&quot;&gt;<br>                &lt;arg type=&quot;(ss)&quot; name=&quot;dalesa_value_changed&quot; direction=&quot;out&quot;/&gt;<br>
                &lt;/signal&gt;<br>        &lt;/interface&gt;<br>&lt;/node&gt;<br>=========================================<br><br><b><u>server.c</u></b><br><br>//some code goes here<br>gboolean server_proxy_admin_search(ProxyAdmin *pa, char *search_str, int offset,  gint *os, GError *err)<br>
{<br>  g_type_init();<br>  os = 100;<br>}<br><br>==============================================<br><b><u>client.c<br><br></u></b>  gint ofst;<br>  printf(&quot;ofst %i \n&quot;, ofst);<br>  if (org_dalesa_ProxyAdmin_proxy_admin_search(driver_proxy, search_str, offset, &amp;ofst,  &amp;error)) <br>
  {<br>    *err = DALESA_DBUS_OK;<br>    printf(&quot;ofst %i \n&quot;, ofst);<br>    return 0;<br>  }<br><br>The printf prints zero. Can anybody guess what im doing wrong here.<br><br>My next auestion is can I return both GPtArray and integer in a single method?<br>
<br>for an example an xml is like <br><br><br>                &lt;method name=&quot;ProxyAdminSearch&quot;&gt;<br>
                        &lt;arg type=&quot;s&quot; name=&quot;pas&quot; direction =&quot;in&quot;/&gt;<br>
                        &lt;arg type=&quot;i&quot; name=&quot;offset&quot; direction =&quot;in&quot;/&gt;<br>
                        &lt;arg type=&quot;a(ssuu)&quot; name=&quot;pas&quot; direction =&quot;out&quot;/&gt; <br>
                        &lt;arg type=&quot;i&quot; name=&quot;ret_offset&quot; direction =&quot;out&quot;/&gt;<br>
                &lt;/method&gt;<br><br><br>Thanks <br>--Nuwan gunarathna<br>