NetworkManager/src/libnm-core-impl/tests
Thomas Haller 563fad718c
glib-aux: refactor nm_strvarray_get_strv*() and nm_strvarray_set_strv*() helpers
Unfortunately, there are several possibilities how to handle NULL and
empty arrays. Therefore we have different variants.

Clean this up, and add a way to preserve whether the array is empty
(previous variants could not distinguish that).

Functions are also renamed, so that if you backport a user of the new
API, you'll get a compiler error if this patch is missing.

Also, nm_strvarray_get_strv_notnull() no longer takes a pointer to a
"GArray*". Previously, it used that to fake an empty strv array. Now
this returns NM_STRV_EMPTY_CC().
2023-11-23 17:17:52 +01:00
..
certs crypto: support EC private keys 2022-08-04 09:46:06 +02:00
meson.build build: fix linking libnm-log-null into different test programs 2021-07-05 14:51:27 +02:00
nm-core-tests-enum-types.c.template build: move "libnm-core/" to "src/" and split it 2021-02-18 19:46:51 +01:00
nm-core-tests-enum-types.h.template build: move "libnm-core/" to "src/" and split it 2021-02-18 19:46:51 +01:00
test-compare.c format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
test-crypto.c crypto: support EC private keys 2022-08-04 09:46:06 +02:00
test-general-enums.h all: adjust glib-mkenums annotations for automated formatting 2022-02-08 11:14:01 +01:00
test-general.c libnm: refactor "ipv6" argument of _nm_utils_dns_option_validate() 2023-11-23 17:17:51 +01:00
test-keyfile.c libnm/tests: avoid uninitialized variable warning in _invalid_option_write_handler() 2023-03-31 18:15:50 +02:00
test-secrets.c format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
test-setting.c glib-aux: refactor nm_strvarray_get_strv*() and nm_strvarray_set_strv*() helpers 2023-11-23 17:17:52 +01:00
test-settings-defaults.c format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00