NetworkManager/shared/nm-std-aux
Thomas Haller 6feab75447
shared: add nm_steal_pointer()/nm_clear_free() to "nm-std-aux.h"
There is the team of nm_auto*, nm_clear_pointer() and nm_steal_pointer().
These goes nicely together so that an autovariable owns a resource,
to free it (clear) and to transfer ownership (steal).

We have these also in glib, but we certainly also need it if we don't
have glib because that very much goes together with nm_auto*. Add it.
2020-07-07 22:32:35 +02:00
..
c-list-util.c all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
c-list-util.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nm-dbus-compat.h license: relicense "shared/nm-std-aux/nm-dbus-compat.h" under LGPL-2.1+ 2020-01-14 16:54:43 +01:00
nm-std-aux.h shared: add nm_steal_pointer()/nm_clear_free() to "nm-std-aux.h" 2020-07-07 22:32:35 +02:00
nm-std-utils.c shared: move nm_utils_get_next_realloc_size() to nm-std-aux 2020-07-06 14:11:22 +02:00
nm-std-utils.h shared: move nm_utils_get_next_realloc_size() to nm-std-aux 2020-07-06 14:11:22 +02:00
unaligned.h shared: split C-only helper "shared/nm-std-aux" utils out of "shared/nm-utils" 2019-04-18 19:17:23 +02:00