summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_main_process.c
diff options
context:
space:
mode:
authorAndrew Clayton <a.clayton@nginx.com>2024-07-04 15:52:56 +0100
committerAndrew Clayton <a.clayton@nginx.com>2024-07-12 16:44:54 +0100
commit55041ef9607c073bc5e1b431ec271e9c23200cb1 (patch)
tree2ca8b1d28289672497fd961818dcfaf2129ccd14 /src/nxt_main_process.c
parentc8d70c3ff28bcf18dfbcfa1332ce0f0d869c0d5f (diff)
downloadunit-55041ef9607c073bc5e1b431ec271e9c23200cb1.tar.gz
unit-55041ef9607c073bc5e1b431ec271e9c23200cb1.tar.bz2
Flow the language module name into nxt_app_lang_module_t
The nxt_app_lang_module_t structure contains various bits of information as obtained from the nxt_app_module_t structure that language modules define. One bit of information that is in the nxt_app_module_t but not in the nxt_app_lang_module_t is the language module name. Having this name flowed through will be useful for displaying the loaded language modules in the /status endpoint. Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to '')
-rw-r--r--src/nxt_main_process.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nxt_main_process.c b/src/nxt_main_process.c
index c302cb02..00318226 100644
--- a/src/nxt_main_process.c
+++ b/src/nxt_main_process.c
@@ -1355,6 +1355,12 @@ static nxt_conf_map_t nxt_app_lang_module_map[] = {
},
{
+ nxt_string("name"),
+ NXT_CONF_MAP_CSTRZ,
+ offsetof(nxt_app_lang_module_t, name),
+ },
+
+ {
nxt_string("version"),
NXT_CONF_MAP_CSTRZ,
offsetof(nxt_app_lang_module_t, version),