]> git.ipfire.org Git - thirdparty/collectd.git/commit
lua: Add functions to register some missing callbacks 3779/head
authorKentaro Hayashi <hayashi@clear-code.com>
Tue, 10 Nov 2020 01:29:38 +0000 (10:29 +0900)
committerKentaro Hayashi <hayashi@clear-code.com>
Sun, 7 Jan 2024 14:49:01 +0000 (23:49 +0900)
commit4daf780897232aa0527ae490d2821cf5fe44d097
tree152850ceab588615476553778ef35faa3e0e6e29
parent275edc29a5a5417c8ce9697fe3a9c5e33950fa33
lua: Add functions to register some missing callbacks

* register_init
* register_shutdown
* register_config

In this version, the configuration for each Script is
supported.

  Script "foo.lua"
  Script "bar.lua"
  <Module "foo.lua">
    Key1 Value1
  </Module>
  <Module "bar.lua">
    Key2 Value2
  </Module>

The scope of accessible key-value pair is limited to under <Module>
This feature is similar to collectd-python.

  ref. https://www.collectd.org/documentation/manpages/collectd-python.html

Signed-off-by: Kentaro Hayashi <hayashi@clear-code.com>
src/collectd-lua.pod
src/lua.c
src/utils_lua.c
src/utils_lua.h