NetworkManager/src/libnm-glib-aux
Thomas Haller 6f277d8fa6
libnm: change NMVariantAttributeSpec.str_type to work for attributes of any type
First of all, all of NMVariantAttributeSpec is internal API. We only
expose the typedef itself as public API, but not its fields nor
their meaning. So we can change things.

Change "str_type" to "type_detail", so that it can work for any kind of
attribute, not only for strings. Usually, we want to avoid special
cases and treat all attributes the same, based on their GVariant type.
But sometimes, it is necessary to do something special with an
attribute. This is what the "type_detail" encodes, but it's not only
relevant for strings.
2022-02-09 19:13:02 +01:00
..
tests glib-aux/tests: add tests for nm_ref_string_equal_str() 2022-01-27 19:04:44 +01: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 build: move "shared/nm-{glib-aux,log-null,log-core}" to "src/libnm-{glib-aux,log-null,log-core}" 2021-02-24 12:48:20 +01:00
nm-default-glib-i18n-prog.h build: move "shared/nm-{glib-aux,log-null,log-core}" to "src/libnm-{glib-aux,log-null,log-core}" 2021-02-24 12:48:20 +01:00
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 build: move "shared/nm-{glib-aux,log-null,log-core}" to "src/libnm-{glib-aux,log-null,log-core}" 2021-02-24 12:48:20 +01:00
nm-gassert-patch.h clang-format: use "IndentPPDirectives:None" instead of "BeforeHash" 2021-07-09 08:49:06 +02:00
nm-glib.h format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00: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 format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00: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: add nm_strstrip_dup() helper 2022-01-18 16:22:11 +01:00
nm-obj.h build: move "shared/nm-{glib-aux,log-null,log-core}" to "src/libnm-{glib-aux,log-null,log-core}" 2021-02-24 12:48:20 +01:00
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 build: move "shared/nm-{glib-aux,log-null,log-core}" to "src/libnm-{glib-aux,log-null,log-core}" 2021-02-24 12:48:20 +01:00
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 build: move "shared/nm-{glib-aux,log-null,log-core}" to "src/libnm-{glib-aux,log-null,log-core}" 2021-02-24 12:48:20 +01:00
nm-secret-utils.h glib-aux: add nm_strdup_reset_secret() helper 2022-01-18 16:22:11 +01:00
nm-shared-utils.c glib-aux: use atomic operation in _nm_assert_on_main_thread() instead of taking GMutex 2022-01-17 13:46:55 +01:00
nm-shared-utils.h libnm: change NMVariantAttributeSpec.str_type to work for attributes of any type 2022-02-09 19:13:02 +01: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 glib-aux/tests: add nmtst_test_skip_slow() helper 2022-01-21 12:08:00 +01:00
nm-time-utils.c build: move "shared/nm-{glib-aux,log-null,log-core}" to "src/libnm-{glib-aux,log-null,log-core}" 2021-02-24 12:48:20 +01:00
nm-time-utils.h build: move "shared/nm-{glib-aux,log-null,log-core}" to "src/libnm-{glib-aux,log-null,log-core}" 2021-02-24 12:48:20 +01:00
nm-uuid.c glib-aux: workaround maybe-uninitialized warning with LTO in nm_uuid_generate_from_string_str() 2022-01-21 11:38:08 +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 format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00: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.