reload
Description:
[ Version ( since = "1.22" ) ]
public async bool reload (ManagerReloadFlags flags, Cancellable? cancellable) throws Error
public async bool reload (ManagerReloadFlags flags, Cancellable? cancellable) throws Error
Reload NetworkManager's configuration and perform certain updates, like flushing caches or rewriting external state to disk.
This is similar to sending SIGHUP to NetworkManager but it allows for more fine-grained control over what to reload (see flags
).
It also allows non-root access via PolicyKit and contrary to signals it is synchronous.
Parameters:
this |
the nmclient |
flags |
flags indicating what to reload. |
cancellable |
a Cancellable, or null |
callback |
callback to be called when the add operation completes |
user_data |
caller-specific data passed to |