Thanks for the help guys, <div>sorry if my code is a bit tedious, I'm new to glib and dbus.<div><br></div><div>Mikkel - I looked into the dbus-monitor tool you mentioned, am I right in assuming that you used dbus-monitor with arguments like this:<div>
<br></div><div> dbus-monitor </div><div>"type='method_return', </div><div>sender='org.freedesktop.NetworkManager', </div><div>interface='org.freedesktop.NetworkManager', </div><div>path='/org/freedesktop/NetworkManager', </div>
<div>member='GetDevices'"</div><div><br></div><div>to monitor the result for the call "GetDevices" from the code? I can't seem to get it to work for me.</div><div><br></div><div>Also, with regards to what you said about the error message</div>
<div><br></div><div>** ERROR **: Error calling GetDevices: Unregistered object at path '/org/freedesktop/NetworkManager/Devices/0'</div><div><br></div><div>and your comment on it, I'm not familiar with the concept "registering an object", do you know of any documentation that talks about it?</div>
<div><br></div><div><br><div class="gmail_quote">On Thu, Oct 6, 2011 at 8:28 AM, Mikkel Kamstrup Erlandsen <span dir="ltr"><<a href="mailto:mikkel.kamstrup@canonical.com">mikkel.kamstrup@canonical.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">On 10/06/2011 09:25 AM, Mikkel Kamstrup Erlandsen wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<snip><br>
<br>
I applied these fixes to your code and attached it, ...<br>
</blockquote>
<br>
Ahem. Even though Thunderbird gently reminded me that I wanted to add an attachment I forgot it anyway :-) Second time's a charm.<div><div></div><div class="h5"><br>
<br>
Cheers,<br>
Mikkel<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Wed, Oct 5, 2011 at 7:10 PM, Thiago Macieira<<a href="mailto:thiago@kde.org" target="_blank">thiago@kde.org</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Wednesday, 5 de October de 2011 18:45:52 Iraq Ja wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
In my program attached, the method call (line 50):<br>
<br>
<br>
if (dbus_g_proxy_call(proxy, "GetDevices",&error, G_TYPE_INVALID,<br>
DBUS_TYPE_G_OBJECT_ARRAY, name_list_ptr, G_TYPE_INVALID))<br>
{<br>
printf("Success\n");<br>
g_printerr("List: %S \n", name_list_ptr);<br>
}<br>
else<br>
{<br>
printf("Fail\n");<br>
g_printerr(" 1 %S\n", error->message);<br>
g_printerr(" 1 %S\n", name_list_ptr);<br>
exit(1);<br>
}<br>
<br>
does not return true, I think I've done everything correct as far as<br>
the parameters to dbus_g_proxy_call(), and setting everything up, but<br>
for whatever reason it won't return true.<br>
</blockquote>
If it doesn't return true, it prints an error message. What was it?<br>
<br>
-- <br>
Thiago Macieira - thiago (AT) <a href="http://macieira.info" target="_blank">macieira.info</a> - thiago (AT) <a href="http://kde.org" target="_blank">kde.org</a><br>
Software Architect - Intel Open Source Technology Center<br>
PGP/GPG: 0x6EF45358; fingerprint:<br>
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358<br>
<br>
______________________________<u></u>_________________<br>
dbus mailing list<br>
<a href="mailto:dbus@lists.freedesktop.org" target="_blank">dbus@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/dbus" target="_blank">http://lists.freedesktop.org/<u></u>mailman/listinfo/dbus</a><br>
<br>
<br>
</blockquote>
______________________________<u></u>_________________<br>
dbus mailing list<br>
<a href="mailto:dbus@lists.freedesktop.org" target="_blank">dbus@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/dbus" target="_blank">http://lists.freedesktop.org/<u></u>mailman/listinfo/dbus</a><br>
</blockquote>
<br>
______________________________<u></u>_________________<br>
dbus mailing list<br>
<a href="mailto:dbus@lists.freedesktop.org" target="_blank">dbus@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/dbus" target="_blank">http://lists.freedesktop.org/<u></u>mailman/listinfo/dbus</a><br>
</blockquote>
<br>
</div></div><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></div></div></div>