mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-24 11:20:07 +01:00
PrintDataCol contains a reference to the parent structure, for which it was created. Previously, that was expressed via the "parent_idx" field, which is an index into the list of all PrintDataCol entries. That is inconvenient. Resolve the index to the actual pointer. Note that during _output_selection_append() we still need to use the index instead of resolving the pointer right away. That is because _output_selection_append() grows the GArray into which the parent_idx pointers to. So, obtaining the real pointer at that point would result in using a dangling pointer later on. Introduce a new step _output_selection_complete() which converts the index into the actual pointer. |
||
|---|---|---|
| .. | ||
| agent.c | ||
| agent.h | ||
| common.c | ||
| common.h | ||
| connections.c | ||
| connections.h | ||
| devices.c | ||
| devices.h | ||
| general.c | ||
| general.h | ||
| meson.build | ||
| nmcli-completion | ||
| nmcli.c | ||
| nmcli.h | ||
| polkit-agent.c | ||
| polkit-agent.h | ||
| settings.c | ||
| settings.h | ||
| utils.c | ||
| utils.h | ||