diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2024-01-06 10:42:22 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2024-02-01 21:38:49 +0100 |
commit | 8971fc069a1c1a9e8c3f6fa1f83e64a50b2876c1 (patch) | |
tree | 55ee948cd5bdb0ec24dfedc6db7a8b7cdc841eec /src/core/wee-debug.c | |
parent | 179d53a12e45f316902fd83c6d00bd2272a8dc17 (diff) | |
download | weechat-8971fc069a1c1a9e8c3f6fa1f83e64a50b2876c1.zip |
relay: add "api" protocol (HTTP REST API) (issue #2066)
Diffstat (limited to 'src/core/wee-debug.c')
-rw-r--r-- | src/core/wee-debug.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/core/wee-debug.c b/src/core/wee-debug.c index 167870078..abf39e278 100644 --- a/src/core/wee-debug.c +++ b/src/core/wee-debug.c @@ -36,6 +36,9 @@ #ifdef HAVE_ZSTD #include <zstd.h> #endif +#ifdef HAVE_CJSON +#include <cjson/cJSON.h> +#endif #include <gnutls/gnutls.h> @@ -702,6 +705,16 @@ debug_libs_cb (const void *pointer, void *data, gui_chat_printf (NULL, " zstd: %s", _("not available")); #endif /* HAVE_ZSTD */ + /* display cJSON version */ +#ifdef HAVE_CJSON + gui_chat_printf (NULL, " cJSON: %d.%d.%d", + CJSON_VERSION_MAJOR, + CJSON_VERSION_MINOR, + CJSON_VERSION_PATCH); +#else + gui_chat_printf (NULL, " cJSON: %s", _("not available")); +#endif /* HAVE_CJSON */ + return WEECHAT_RC_OK; } |