<br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br><br>gboolean<br>downloadDaemonGetAllDownloads(DownloadDaemon* DaemonObject,<br>
GPtrArray** gptrAllDls,<br> GError** error)<br>{<br> GPtrArray* gptr_all_dls = g_ptr_array_sized_new(1);</blockquote><div>-- You should directly initialize *gptrAIIDIs here, then add the member in this, because the above gptr_all_dlls in stack and become out of scope after this function call.<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br> gptr_all_dls->len = numDls;</blockquote><div>-- You don't need to set the length its dynamic array. <br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br><br> g_ptr_array_add(gptr_all_dls,(gpointer)(1234567));</blockquote><div>-- you can use GUINT_TO_POINTER(123456) <br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br> *gptrAllDls = gptr_all_dls;<br><br> return TRUE;<br>}<br>-Br</blockquote><div>Naveen<br> <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>_______________________________________________<br>
dbus mailing list<br>
<a href="mailto:dbus@lists.freedesktop.org">dbus@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/dbus" target="_blank">http://lists.freedesktop.org/mailman/listinfo/dbus</a><br>
<br></blockquote></div><br>