From 8971fc069a1c1a9e8c3f6fa1f83e64a50b2876c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sat, 6 Jan 2024 10:42:22 +0100 Subject: relay: add "api" protocol (HTTP REST API) (issue #2066) --- src/core/wee-debug.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/core/wee-debug.c') 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 #endif +#ifdef HAVE_CJSON +#include +#endif #include @@ -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; } -- cgit v1.2.3