Re: Problems with returning Default Adapter in C-Glib-DBus code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi David,

> Actually, I did that...I think.
>
> Please review the following call:
>
> if (dbus_g_proxy_call(dMgrObj, "DefaultAdapter", &dError,  
> G_TYPE_INVALID, G_TYPE_OBJECT, &servicePath, G_TYPE_INVALID)) {
>  cout << "DefaultAdapter is " << servicePath << endl;
> } else {
>  if (dError!=NULL) {
>   cout << "Failed to get DefaultAdapter: " << dError->message << endl;
>   g_error_free(dError);
>   return EXIT_FAILURE;
>  }
> }
>
> The G_TYPE_OBJECT should mark the return value (stuffed into a char  
> * servicePath) as an Object Path. Or am I mistaken?

the type is an DBUS_G_OBJECT_PATH or similar.

Regards

Marcel


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/bluez-devel

[Index of Archives]     [Linux Bluetooth Devel]     [Linux USB Devel]     [Network Devel]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux