author | Sebastian Harl <sh@tokkee.org> | |
Wed, 21 Nov 2007 21:00:42 +0000 (22:00 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Wed, 21 Nov 2007 21:00:42 +0000 (22:00 +0100) | ||
commit | eea5bae24542d5f1248630284df6f11eb8274bbf | |
tree | aad62e08b2713928b9f981a7283af3c8d30070c1 | tree | snapshot |
parent | 32f2cf21cec6246e0f76d07790c95159700e451f | commit | diff |
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.
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 | diff | blob | history | |
src/collectd-perl.pod | diff | blob | history | |
src/perl.c | diff | blob | history |