mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-18 18:38:09 +02:00
It is useful from inside a function to know the command that it belongs to. Currently we have do_networking_on() and do_networking_off() as separate functions. However, these are basically the same with a minor difference. If the func callback could know the "cmd" that it was called for, these function can be combined. Of course, without passing the NMCCommand instance, you still can achieve the same results, especially as the NMCCommand instances are static and known at compile time: just have separate func implementations. But by passing the command to the function, they *can* be combined, which is a useful thing to do. |
||
|---|---|---|
| .. | ||
| cli | ||
| cloud-setup | ||
| common | ||
| tests | ||
| tui | ||
| meson.build | ||
| nm-online.c | ||