Code

perl plugin: Made global variables available to Perl plugins.
authorSebastian Harl <sh@tokkee.org>
Wed, 21 Nov 2007 21:00:42 +0000 (22:00 +0100)
committerSebastian Harl <sh@tokkee.org>
Wed, 21 Nov 2007 21:00:42 +0000 (22:00 +0100)
commiteea5bae24542d5f1248630284df6f11eb8274bbf
treeaad62e08b2713928b9f981a7283af3c8d30070c1
parent32f2cf21cec6246e0f76d07790c95159700e451f
perl plugin: Made global variables available to Perl plugins.

The "let's become magical" commit.

Each global variable (currently hostname_g and interval_g) will be exported by
introducing an equally named Perl variable. Perl's concept of "magic" is used
to create a read/write interface to the C variables (think of the variables as
being tied). This way any changes to the C variables will be immediately
accessible from the Perl plugin and vice versa.
bindings/perl/Collectd.pm
src/collectd-perl.pod
src/perl.c