NetworkManager/src/platform
Thomas Haller cd5157a0c3 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.
2020-04-24 13:58:46 +02:00
..
linux all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
tests meson: merge branch 'inigomartinez/meson-license' 2020-03-28 12:45:19 +01:00
wifi all: use nm_clear_g_free() instead of g_clear_pointer() 2020-03-23 11:05:34 +01:00
wpan all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nm-fake-platform.c all: use nm_clear_pointer() instead of g_clear_pointer() 2020-03-23 11:22:38 +01:00
nm-fake-platform.h all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nm-linux-platform.c shared: add nm_utils_invoke_on_timeout() 2020-04-24 13:58:46 +02:00
nm-linux-platform.h all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nm-netlink.c all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nm-netlink.h platform: simplify static assert in _nl_static_assert_tb() 2020-04-24 13:58:46 +02:00
nm-platform-private.h all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nm-platform-utils.c all: use nm_utils_ifname_valid_kernel() instead of nm_utils_is_valid_iface_name() 2020-02-17 15:27:35 +01:00
nm-platform-utils.h all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nm-platform.c platform: improve IPv6 address synchronization 2020-03-26 21:28:56 +01:00
nm-platform.h platform: use C99 static array index in parameter of nm_platform_if_indextoname() 2020-02-10 19:11:50 +01:00
nmp-netns.c shared: drop _STATIC variant of macros that define functions 2020-02-13 17:17:07 +01:00
nmp-netns.h all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nmp-object.c platform: avoid undefined behavior comparing unrelated pointers in nmp_object_id_cmp() 2020-04-22 09:49:45 +02:00
nmp-object.h platform: avoid compiler warning in _NMP_OBJECT_TYPE_IS_OBJ_WITH_IFINDEX() 2020-02-22 12:09:56 +01:00
nmp-rules-manager.c all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nmp-rules-manager.h all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00