NetworkManager/src/devices/bluetooth
Thomas Haller 0119fa8c3d shared: add nm_utils_invoke_on_timeout()
Add nm_utils_invoke_on_timeout() beside nm_utils_invoke_on_idle().
They are fundamentally similar, except one schedules an idle handler
and the other a timeout.

Also, use the current g_main_context_get_thread_default() as context
instead of the singleton instance. That is a change in behavior, but
the only caller of nm_utils_invoke_on_idle() is the daemon, which
doesn't use different main contexts. Anyway, to avoid anybody being
tripped up by this also change the order of arguments. It anyway
seems nicer to first pass the cancellable, and the callback and user
data as last arguments. It's more in line with glib's asynchronous
methods.

Also, in the unlikely case that the cancellable is already cancelled
from the start, always schedule an idle action to complete fast.

(cherry picked from commit cd5157a0c3)
2020-04-24 19:36:53 +02:00
..
tests meson: Remove devices tests' meson build files 2019-10-01 09:49:33 +02:00
meson.build license: Add license using SPDX identifiers to meson build files 2020-02-17 13:16:57 +01:00
nm-bluez-common.h all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nm-bluez-manager.c shared: add nm_utils_invoke_on_timeout() 2020-04-24 19:36:53 +02:00
nm-bluez-manager.h bluetooth: refactor BlueZ handling and let NMBluezManager cache ObjectManager data 2019-09-23 12:47:37 +02:00
nm-bluez5-dun.c all: add nm_utils_error_is_cancelled() and nm_utils_error_is_cancelled_or_disposing() 2020-02-10 19:11:50 +01:00
nm-bluez5-dun.h all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nm-bt-error.c all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nm-bt-error.h all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nm-device-bt.c bluetooth: disconnect signal on dispose 2020-04-22 09:22:45 +02:00
nm-device-bt.h all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00