mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-06-06 03:38:32 +02:00
Note that we should always set the source-tag of our GTask. This allows us to better assert that the user uses the right _finish() method for the task. The plain g_task_new() does not have a souce-tag argument. Hence, we would always need to explicitly call g_task_set_source_tag(). Likewise, to check the source tag, we would always need to write g_return_val_if_fail (g_task_is_valid (result, self), FALSE); g_return_val_if_fail (g_async_result_is_tagged (result, tag), FALSE); Actually, g_async_result_is_tagged() uses the GAsyncResultIface to call iface->is_tagged(). This has unnecessary overhead, so we should just call g_task_get_source_tag() directly. Add helper functions for that. |
||
|---|---|---|
| .. | ||
| c-list | ||
| c-rbtree | ||
| c-siphash | ||
| c-stdaux | ||
| n-acd | ||
| n-dhcp4 | ||
| nm-glib-aux | ||
| nm-libnm-core-aux | ||
| nm-libnm-core-intern | ||
| nm-std-aux | ||
| nm-udev-aux | ||
| nm-utils | ||
| systemd | ||
| meson.build | ||
| nm-default.h | ||
| nm-meta-setting.c | ||
| nm-meta-setting.h | ||
| nm-test-libnm-utils.h | ||
| nm-test-utils-impl.c | ||
| nm-version-macros.h.in | ||