NetworkManager/src/ppp
Thomas Haller eae69e33dd 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.
2019-09-22 16:05:50 +02:00
..
meson.build build/meson: rename "nm_core_dep" to "libnm_core_dep" 2019-04-18 20:13:49 +02:00
nm-ppp-manager-call.c all: SPDX header conversion 2019-09-10 11:19:56 +02:00
nm-ppp-manager-call.h all: SPDX header conversion 2019-09-10 11:19:56 +02:00
nm-ppp-manager.c core: extend nm_shutdown_wait_obj_*() to support notification via a GCancellable 2019-09-22 16:05:50 +02:00
nm-ppp-manager.h all: SPDX header conversion 2019-09-10 11:19:56 +02:00
nm-ppp-plugin-api.h all: SPDX header conversion 2019-09-10 11:19:56 +02:00
nm-ppp-plugin.ver ppp: split ppp manager into a plugin 2016-12-06 11:08:11 +01:00
nm-ppp-status.h all: SPDX header conversion 2019-09-10 11:19:56 +02:00
nm-pppd-plugin.c all: SPDX header conversion 2019-09-10 11:19:56 +02:00
nm-pppd-plugin.h all: SPDX header conversion 2019-09-10 11:19:56 +02:00