]> git.ipfire.org Git - thirdparty/collectd.git/commit
lua: add missing notification callback
authorKentaro Hayashi <hayashi@clear-code.com>
Sat, 13 Jan 2024 08:27:32 +0000 (17:27 +0900)
committerKentaro Hayashi <hayashi@clear-code.com>
Sat, 13 Jan 2024 11:32:23 +0000 (20:32 +0900)
commit0f7e490cc0db52c4fe6d3b7b295dd8dbe86fb026
tree37ef6a925e3c4f6b2c8c65bbb43a55ebcb23f453
parentd6c85b3ca4b42566884ae66dbc17ee89d19f3b0d
lua: add missing notification callback

* register_notification

In this version, it support callback function something like:

  function notification(notif)
     print(inspect(notif))
     return 0
  end

  collectd.register_notification(notification)

It accepts PUTNOTIF event via plugin_dispatch_notification then you can
handle it.

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