| Top |
GObject ╰── NMObject ├── NMAccessPoint ├── NMActiveConnection ├── NMCheckpoint ├── NMDevice ├── NMDhcpConfig ├── NMIPConfig ├── NMRemoteConnection ├── NMWifiP2PPeer ╰── NMWimaxNsp
const char *
nm_object_get_path (NMObject *object);
Gets the DBus path of the NMObject.
the object's path. This is the internal string used by the object, and must not be modified.
Note that the D-Bus path of an NMObject never changes, even
if the instance gets removed from the cache. To find out
whether the object is still alive/cached, check nm_object_get_client().
struct _NMClient *
nm_object_get_client (NMObject *object);
Returns the NMClient instance in which object is cached.
Also, if the object got removed from the client cached,
this returns NULL. So it can be used to check whether the
object is still alive.
the NMClient cache in which the
object can be found, or NULL if the object is no longer
cached.
[transfer none]
Since: 1.24
“client” property“client” NMClient *
The NMClient instance as returned by nm_object_get_client().
When an NMObject gets removed from the NMClient cache,
the NMObject:path property stays unchanged, but this client
instance gets reset to NULL. You can use this property to
track removal of the object from the cache.
Owner: NMObject
Flags: Read
Since: 1.34