Device Info with vala



Hi,
I can't read the info of a device with vala.


private static void on_device_proxy_available (ControlPoint cp, DeviceProxy  proxy) {
        print (" Device available:");
        print (" type: %s", proxy.device_type);  
        print (" location: %s\n", proxy.location);
        print (" get_friendly_name: %s\n", proxy.get_friendly_name);

}

valac browsing-test.vala --pkg=gupnp-1.0

browsing-test.vala:56.44-56.66: error: Argument 2: Cannot convert from `GUPnP.DeviceInfo.get_friendly_name' to `string'
        print (" get_friendly_name: %s\n", proxy.get_friendly_name);
                                           ^^^^^^^^^^^^^^^^^^^^^^^
Compilation failed: 1 error(s), 0 warning(s)



Tip?
Thank you.



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