summaryrefslogtreecommitdiff
path: root/src/devices/wwan/libnm-wwan.ver
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2019-08-23 07:45:41 +0200
committerThomas Haller <thaller@redhat.com>2019-09-22 16:05:50 +0200
commiteae69e33dd1865f24544c135b366eb343c5a46e6 (patch)
tree8c6cbf9aa248fc92b7b4427307e4e4128d7b7a6d /src/devices/wwan/libnm-wwan.ver
parent5131cc42455f0de7bb7538ecd2b9d811fb246d2c (diff)
downloadNetworkManager-eae69e33dd1865f24544c135b366eb343c5a46e6.tar.gz
core: extend nm_shutdown_wait_obj_*() to support notification via a GCancellable
Now nm_shutdown_wait_obj_*() supports two styles: - NM_SHUTDOWN_WAIT_TYPE_OBJECT: this just registers a weak pointer on a source GObject. As long as the object is not destroyed (and the object is not unregistered), the shutdown gets blocked. - now new is NM_SHUTDOWN_WAIT_TYPE_CANCELLABLE: this source object is a GCancellable, and during shutdown, the system will cancel the instances to notify about the shutdown. That aside, the GCancellable is tracked exactly like a regular NM_SHUTDOWN_WAIT_TYPE_OBJECT (meaning: a weak pointer is registered and shutdown gets delayed as long as the instance lives). As the rest of the shutdown, it's not yet implemented on the shutdown-side. What is now possible is to register such cancellables, so that users can make use of this API before we fix shutdown. We cannot fix it all at the same time, so first users must be ready for this approach.
Diffstat (limited to 'src/devices/wwan/libnm-wwan.ver')
0 files changed, 0 insertions, 0 deletions