Added "type" to the value_list_t struct.
authorSebastian Harl <sh@tokkee.org>
Sun, 20 Apr 2008 21:19:28 +0000 (23:19 +0200)
committerFlorian Forster <octo@huhu.verplant.org>
Wed, 23 Apr 2008 13:39:21 +0000 (15:39 +0200)
commit2354eda94fa44c8bcb8e39b24b117e7937110224
tree697398bd55a138b097b99a803c52bdc92f15eb25
parent409d90064967451241f5fcc672a26269142e1735
Added "type" to the value_list_t struct.

This way, the complete tuple (host, plugin, plugin instance, type, type
instance) is stored in a single data-type which is more straight forward
and allows a more flexible use of that data-type. As a consequence, there
is no longer a need to explicitly pass the type to some functions, most
notably plugin_dispatch_values(), which have been updated in that respect.

The "perl" plugin has also been updated to reflect this change. For
backwards compatibility, plugin_dispatch_values() still accepts a second
argument - however, a warning will be submitted to the daemon in that
case.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
55 files changed:
src/apache.c
src/apcups.c
src/apple_sensors.c
src/ascent.c
src/battery.c
src/collectd-perl.pod
src/cpu.c
src/cpufreq.c
src/csv.c
src/df.c
src/disk.c
src/dns.c
src/email.c
src/entropy.c
src/hddtemp.c
src/interface.c
src/ipmi.c
src/iptables.c
src/ipvs.c
src/irq.c
src/libvirt.c
src/load.c
src/mbmon.c
src/memcached.c
src/memory.c
src/multimeter.c
src/mysql.c
src/netlink.c
src/network.c
src/nfs.c
src/nginx.c
src/ntpd.c
src/nut.c
src/perl.c
src/ping.c
src/plugin.c
src/plugin.h
src/powerdns.c
src/processes.c
src/rrdtool.c
src/sensors.c
src/serial.c
src/snmp.c
src/swap.c
src/tape.c
src/tcpconns.c
src/teamspeak2.c
src/users.c
src/utils_cmd_putval.c
src/utils_tail_match.c
src/utils_threshold.c
src/vmem.c
src/vserver.c
src/wireless.c
src/xmms.c