mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-12 02:10:19 +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-util.c | ||
| c-list-util.h | ||
| gsystem-local-alloc.h | ||
| nm-c-list.h | ||
| nm-compat.c | ||
| nm-compat.h | ||
| nm-dedup-multi.c | ||
| nm-dedup-multi.h | ||
| nm-enum-utils.c | ||
| nm-enum-utils.h | ||
| nm-glib.h | ||
| nm-hash-utils.c | ||
| nm-hash-utils.h | ||
| nm-jansson.h | ||
| nm-macros-internal.h | ||
| nm-obj.h | ||
| nm-random-utils.c | ||
| nm-random-utils.h | ||
| nm-shared-utils.c | ||
| nm-shared-utils.h | ||
| nm-test-utils.h | ||
| nm-udev-utils.c | ||
| nm-udev-utils.h | ||
| nm-vpn-editor-plugin-call.h | ||
| nm-vpn-plugin-macros.h | ||
| nm-vpn-plugin-utils.c | ||
| nm-vpn-plugin-utils.h | ||
| unaligned.h | ||