@cryptotaxi247 / netdata-1 / commits / 3c6bc51c8

add brotli and libyaml to buildinfo (#16830)

Costa Tsaousis committed Jan 24, 2024 at 02:50 UTC 3c6bc51c8c969a8d7c95334905ec675b8effb35c
1 file changed +27 -3
daemon/buildinfo.c
+27 -3
@@ -67,12 +67,14 @@ typedef enum __attribute__((packed)) {
67 BIB_LIB_LZ4,
68 BIB_LIB_ZSTD,
69 BIB_LIB_ZLIB,
70 + BIB_LIB_BROTLI,
71 BIB_LIB_PROTOBUF,
72 BIB_LIB_OPENSSL,
73 BIB_LIB_LIBDATACHANNEL,
74 BIB_LIB_JSONC,
75 BIB_LIB_LIBCAP,
76 BIB_LIB_LIBCRYPTO,
77 + BIB_LIB_LIBYAML,
78 BIB_PLUGIN_APPS,
79 BIB_PLUGIN_LINUX_CGROUPS,
80 BIB_PLUGIN_LINUX_CGROUP_NETWORK,
@@ -632,6 +634,14 @@ static struct {
634 .json = "zlib",
635 .value = NULL,
636 },
637 + [BIB_LIB_BROTLI] = {
638 + .category = BIC_LIBS,
639 + .type = BIT_BOOLEAN,
640 + .analytics = NULL,
641 + .print = "Brotli (generic-purpose lossless compression algorithm)",
642 + .json = "brotli",
643 + .value = NULL,
644 + },
645 [BIB_LIB_PROTOBUF] = {
646 .category = BIC_LIBS,
647 .type = BIT_BOOLEAN,
@@ -680,6 +690,14 @@ static struct {
690 .json = "libcrypto",
691 .value = NULL,
692 },
693 + [BIB_LIB_LIBYAML] = {
694 + .category = BIC_LIBS,
695 + .type = BIT_BOOLEAN,
696 + .analytics = "libyaml",
697 + .print = "libyaml (library for parsing and emitting YAML)",
698 + .json = "libyaml",
699 + .value = NULL,
700 + },
701 [BIB_PLUGIN_APPS] = {
702 .category = BIC_PLUGINS,
703 .type = BIT_BOOLEAN,
@@ -1060,9 +1078,6 @@ __attribute__((constructor)) void initialize_build_info(void) {
1078
1079 build_info_set_status(BIB_FEATURE_STREAMING_COMPRESSION, true);
1080
1063 -#ifdef ENABLE_BROTLI
1064 - build_info_append_value(BIB_FEATURE_STREAMING_COMPRESSION, "brotli");
1065 -#endif
1081 #ifdef ENABLE_ZSTD
1082 build_info_append_value(BIB_FEATURE_STREAMING_COMPRESSION, "zstd");
1083 #endif
@@ -1070,6 +1085,9 @@ __attribute__((constructor)) void initialize_build_info(void) {
1085 build_info_append_value(BIB_FEATURE_STREAMING_COMPRESSION, "lz4");
1086 #endif
1087 build_info_append_value(BIB_FEATURE_STREAMING_COMPRESSION, "gzip");
1088 +#ifdef ENABLE_BROTLI
1089 + build_info_append_value(BIB_FEATURE_STREAMING_COMPRESSION, "brotli");
1090 +#endif
1091
1092 build_info_set_status(BIB_FEATURE_CONTEXTS, true);
1093 build_info_set_status(BIB_FEATURE_TIERING, true);
@@ -1105,6 +1123,9 @@ __attribute__((constructor)) void initialize_build_info(void) {
1123 #ifdef ENABLE_ZSTD
1124 build_info_set_status(BIB_LIB_ZSTD, true);
1125 #endif
1126 +#ifdef ENABLE_BROTLI
1127 + build_info_set_status(BIB_LIB_BROTLI, true);
1128 +#endif
1129
1130 build_info_set_status(BIB_LIB_ZLIB, true);
1131
@@ -1137,6 +1158,9 @@ __attribute__((constructor)) void initialize_build_info(void) {
1158 #ifdef HAVE_CRYPTO
1159 build_info_set_status(BIB_LIB_LIBCRYPTO, true);
1160 #endif
1161 +#ifdef HAVE_LIBYAML
1162 + build_info_set_status(BIB_LIB_LIBYAML, true);
1163 +#endif
1164
1165 #ifdef ENABLE_PLUGIN_APPS
1166 build_info_set_status(BIB_PLUGIN_APPS, true);