Hi
I'm new to NetworkManager development, dbus and glib stuff, I am trying to
learn by writting an interface to NetworkManager using dbus.
Currently I am trying call thew org,freedesktop.NetworkManager.getDevices
method
i think i have got a correct code to do so, however i get an error saying
that there is an unregistered path and it says about the path to my fisrt
Device, to be clear I can call this method throghu dbus-send and get the
info with no problem
my question is is there something wrong with this code ?? :
GError *error = NULL;
GArray *arr;
if(!dbus_g_proxy_call(proxy,"GetDevices",&error,G_TYPE_INVALID,DBUS_TYPE_G_OBJECT_ARRAY,&arr,G_TYPE_INVALID))
{
printf("Call failed: %s",error->message);
g_error_free(error);
}
//printf("paths: %u\n",array->len);
above code produces this output:
Call failed: Unregistered object at path
'/org/freedesktop/NetworkManager/Devices/0
WTF ? can annyone help ?
_______________________________________________
networkmanager-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/networkmanager-list