Skip to content

Commit

Permalink
add brotli and libyaml to buildinfo (netdata#16830)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktsaou authored Jan 24, 2024
1 parent 76efd29 commit 3c6bc51
Showing 1 changed file with 27 additions and 3 deletions.
30 changes: 27 additions & 3 deletions daemon/buildinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,14 @@ typedef enum __attribute__((packed)) {
BIB_LIB_LZ4,
BIB_LIB_ZSTD,
BIB_LIB_ZLIB,
BIB_LIB_BROTLI,
BIB_LIB_PROTOBUF,
BIB_LIB_OPENSSL,
BIB_LIB_LIBDATACHANNEL,
BIB_LIB_JSONC,
BIB_LIB_LIBCAP,
BIB_LIB_LIBCRYPTO,
BIB_LIB_LIBYAML,
BIB_PLUGIN_APPS,
BIB_PLUGIN_LINUX_CGROUPS,
BIB_PLUGIN_LINUX_CGROUP_NETWORK,
Expand Down Expand Up @@ -632,6 +634,14 @@ static struct {
.json = "zlib",
.value = NULL,
},
[BIB_LIB_BROTLI] = {
.category = BIC_LIBS,
.type = BIT_BOOLEAN,
.analytics = NULL,
.print = "Brotli (generic-purpose lossless compression algorithm)",
.json = "brotli",
.value = NULL,
},
[BIB_LIB_PROTOBUF] = {
.category = BIC_LIBS,
.type = BIT_BOOLEAN,
Expand Down Expand Up @@ -680,6 +690,14 @@ static struct {
.json = "libcrypto",
.value = NULL,
},
[BIB_LIB_LIBYAML] = {
.category = BIC_LIBS,
.type = BIT_BOOLEAN,
.analytics = "libyaml",
.print = "libyaml (library for parsing and emitting YAML)",
.json = "libyaml",
.value = NULL,
},
[BIB_PLUGIN_APPS] = {
.category = BIC_PLUGINS,
.type = BIT_BOOLEAN,
Expand Down Expand Up @@ -1060,16 +1078,16 @@ __attribute__((constructor)) void initialize_build_info(void) {

build_info_set_status(BIB_FEATURE_STREAMING_COMPRESSION, true);

#ifdef ENABLE_BROTLI
build_info_append_value(BIB_FEATURE_STREAMING_COMPRESSION, "brotli");
#endif
#ifdef ENABLE_ZSTD
build_info_append_value(BIB_FEATURE_STREAMING_COMPRESSION, "zstd");
#endif
#ifdef ENABLE_LZ4
build_info_append_value(BIB_FEATURE_STREAMING_COMPRESSION, "lz4");
#endif
build_info_append_value(BIB_FEATURE_STREAMING_COMPRESSION, "gzip");
#ifdef ENABLE_BROTLI
build_info_append_value(BIB_FEATURE_STREAMING_COMPRESSION, "brotli");
#endif

build_info_set_status(BIB_FEATURE_CONTEXTS, true);
build_info_set_status(BIB_FEATURE_TIERING, true);
Expand Down Expand Up @@ -1105,6 +1123,9 @@ __attribute__((constructor)) void initialize_build_info(void) {
#ifdef ENABLE_ZSTD
build_info_set_status(BIB_LIB_ZSTD, true);
#endif
#ifdef ENABLE_BROTLI
build_info_set_status(BIB_LIB_BROTLI, true);
#endif

build_info_set_status(BIB_LIB_ZLIB, true);

Expand Down Expand Up @@ -1137,6 +1158,9 @@ __attribute__((constructor)) void initialize_build_info(void) {
#ifdef HAVE_CRYPTO
build_info_set_status(BIB_LIB_LIBCRYPTO, true);
#endif
#ifdef HAVE_LIBYAML
build_info_set_status(BIB_LIB_LIBYAML, true);
#endif

#ifdef ENABLE_PLUGIN_APPS
build_info_set_status(BIB_PLUGIN_APPS, true);
Expand Down

0 comments on commit 3c6bc51

Please sign in to comment.