Re: Problems with returning Default Adapter in C-Glib-DBus code
Marcel Holtmann <[email protected]>
| Newsgroups | gmane.linux.bluez.devel |
|---|---|
| Message-ID | <[email protected]> |
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/