Cannot get GetDevices ( ) method to work.

Thiago Macieira thiago at kde.org
Wed Oct 5 11:10:01 PDT 2011


On Wednesday, 5 de October de 2011 18:45:52 Iraq Ja wrote:
> Hi,
> 
> In my program attached, the method call (line 50):
> 
> 
>     if (dbus_g_proxy_call(proxy, "GetDevices", &error, G_TYPE_INVALID,
> DBUS_TYPE_G_OBJECT_ARRAY, name_list_ptr, G_TYPE_INVALID))
>     {
> 		printf("Success\n");
> 		g_printerr("List: %S \n", name_list_ptr);
>     }
>     else
>     {
>       printf("Fail\n");
> 		g_printerr(" 1 %S\n", error->message);
> 		g_printerr(" 1 %S\n", name_list_ptr);
> 	exit(1);
>     }
> 
> does not return true, I think I've done everything correct as far as
> the parameters to dbus_g_proxy_call(), and setting everything up, but
> for whatever reason it won't return true.

If it doesn't return true, it prints an error message. What was it?

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20111005/3ad614ba/attachment.pgp>


More information about the dbus mailing list