mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-10 04:40:20 +01:00
These cleanup macros are unused by NetworkManager code. Note that since "shared/nm-utils" is used by applet and VPN plugins, theoretically, they could be used there. I didn't check that, but breaking API of "shared/nm-utils" is fine (as long as we catch it with a compilation error). Historically, we use libgsystem's gsystem-local-alloc header and their "gs_*" macros. However, they are not really our style and don't have a nm-prefix (like the rest of our code). We keep the gs_ names, because they are wildly used and because we wanted to keep gsystem-local-alloc in sync with upstream (which is no longer the case). Our own cleanup macros are always called "nm_auto_*". So, at least for the unused "gs_*" macros, rename them to "nm_auto_*". Don't drop them, despite they being unused. The reason is, that we should make use of cleanup functions more eagerly. Dropping them now -- because they are momentarily unused -- hampers using them in the future. We often don't use the cleanup macros at places where I think we should, so by dropping them, we hamper future use. |
||
|---|---|---|
| .. | ||
| c-list | ||
| c-siphash | ||
| n-acd | ||
| nm-utils | ||
| meson.build | ||
| nm-common-macros.h | ||
| nm-dbus-compat.h | ||
| nm-default.h | ||
| nm-dispatcher-api.h | ||
| nm-meta-setting.c | ||
| nm-meta-setting.h | ||
| nm-test-libnm-utils.h | ||
| nm-test-utils-impl.c | ||
| nm-version-macros.h.in | ||