NetworkManager/src/libnm-glib-aux
Thomas Haller d1d91a91f4
glib-aux/tests: fix and extend static assertions for NMIPAddr alignment
On m68k, integers are 2-byte aligned. Hence the assertion was wrong.

What we really want to check, is that NMIPAddr has not a smaller
alignment than in_addr_t and similar.

While at it, also assert the alignment for NMEtherAddr.

(cherry picked from commit 835554a4db)
2022-05-19 16:14:35 +02:00
..
tests glib-aux/tests: fix and extend static assertions for NMIPAddr alignment 2022-05-19 16:14:35 +02:00
meson.build glib-aux: add "nm-uuid.[ch]" sources 2021-05-04 15:51:41 +02:00
nm-c-list.h format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nm-dbus-aux.c format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nm-dbus-aux.h format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nm-dedup-multi.c format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nm-dedup-multi.h format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nm-default-glib-i18n-lib.h
nm-default-glib-i18n-prog.h
nm-default-glib.h clang-format: use "IndentPPDirectives:None" instead of "BeforeHash" 2021-07-09 08:49:06 +02:00
nm-enum-utils.c format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nm-enum-utils.h format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nm-errno.c format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nm-errno.h
nm-gassert-patch.h clang-format: use "IndentPPDirectives:None" instead of "BeforeHash" 2021-07-09 08:49:06 +02:00
nm-glib.h glib-aux: hide API g_alloca0() and g_newa0() 2022-03-04 10:05:06 +01:00
nm-hash-utils.c glib-aux: define nm_direct_hash/nm_str_hash as macros 2022-01-18 14:36:31 +01:00
nm-hash-utils.h glib-aux: define nm_direct_hash/nm_str_hash as macros 2022-01-18 14:36:31 +01:00
nm-io-utils.c format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nm-io-utils.h format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nm-jansson.h clang-format: use "IndentPPDirectives:None" instead of "BeforeHash" 2021-07-09 08:49:06 +02:00
nm-json-aux.c format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nm-json-aux.h libnm: add direct strv type for NMSetting and use it for "match.interface-name" 2022-02-10 22:30:27 +01:00
nm-keyfile-aux.c format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nm-keyfile-aux.h format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nm-logging-base.c format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nm-logging-base.h glib-aux,cloud-setup: add _nm_logging_enabled*() helper API 2021-07-23 16:43:37 +02:00
nm-logging-fwd.h all: drop /*<skip>*/ annotations for enums 2022-02-08 11:14:01 +01:00
nm-logging-syslog.h shared: split and move "nm-vpn-plugin-macros.h" 2021-02-24 12:48:56 +01:00
nm-macros-internal.h glib-aux: make nm_gobject_notify_together_full() macro more robust 2022-03-28 18:27:35 +02:00
nm-obj.h
nm-random-utils.c format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nm-random-utils.h
nm-ref-string.c glib-aux: add nmtst_ref_string_find() helper 2022-01-18 16:22:36 +01:00
nm-ref-string.h glib-aux/trival: add code comment to nm_ref_string_equal_str() 2022-01-27 14:35:38 +01:00
nm-secret-utils.c crypto: move nm_crypto_read_file() to "libnm-glib-aux" 2022-03-29 11:56:04 +02:00
nm-secret-utils.h crypto: move nm_crypto_read_file() to "libnm-glib-aux" 2022-03-29 11:56:04 +02:00
nm-shared-utils.c glib-aux/tests: fix and extend static assertions for NMIPAddr alignment 2022-05-19 16:14:35 +02:00
nm-shared-utils.h platform: use flexible array members for "NMPlatformIPAddress.address_ptr"/"NMPlatformIPRoute.network_ptr" 2022-05-19 11:42:22 +02:00
nm-str-buf.h format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nm-test-utils.h all: suppress wrong gcc-12 warning "-Wdangling-pointer" 2022-02-21 19:50:52 +01:00
nm-time-utils.c
nm-time-utils.h glib-aux: add nm_utils_get_monotonic_timestamp_sec_cached() helper 2022-04-28 12:03:25 +02:00
nm-uuid.c glib-aux: avoid nm_crypto_md5_hash() in nm_uuid_generate_from_string() 2022-03-02 22:19:00 +01:00
nm-uuid.h format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nm-value-type.h libnm: add direct strv type for NMSetting and use it for "match.interface-name" 2022-02-10 22:30:27 +01:00
README.md all: add some README.md files describing the purpose of our sources 2021-08-19 17:51:11 +02:00

libnm-glib-aux

A static helper library with general purpose helpers on top of glib.

This is similar to libnm-std-aux (on which this library depends). The difference is that libnm-std-aux only requires standard C (C11), while this has a dependency on glib.

As this has no additional dependencies, we should have all our glib code use this internal helper library. It contains helpers that should be available (and used) in all our C/glib applications/libraries.

Parts of this library are usually already included via the nm-default*.h headers.