perl plugin: Added Collectd::call_by_name().
authorSebastian Harl <sh@tokkee.org>
Sat, 17 Nov 2007 17:38:45 +0000 (18:38 +0100)
committerFlorian Forster <octo@huhu.verplant.org>
Tue, 20 Nov 2007 08:04:43 +0000 (09:04 +0100)
commite08d6907db8ad7d9b411e35b499ff82ce3cd9e01
tree9eac8eedae4df450ad2bbad663ec1803ee59667b
parent6e269bda08f843de13e162894ce332259390e2ea
perl plugin: Added Collectd::call_by_name().

This XSUB passes on a function call to a subroutine identified by its name
passed through $Collectd::cb_name. Collectd::call_by_name does not touch the
stack (unless in case of an error), thus any arguments and return values are
kept in place.

This function is meant to be used inside Collectd.pm only.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/perl.c