[collectd] DNS plugin to ignore numeric qtypes [fixed]

Sebastian Harl sh at tokkee.org
Mon May 18 17:26:42 CEST 2009


Hi again,

On Mon, May 18, 2009 at 04:17:35PM +0200, Sebastian Harl wrote:
> However, I just realized that this macro is unneeded - this is already
> handled by liboconfig. You only need to handle the OCONFIG_TYPE_BOOLEAN
> case.

Oops, I'm sorry, this does not apply to the 'dns' plugin. This feature
is only available to plugins using "complex" config callbacks. "Complex"
config callbacks get a pointer to the appropriate subtree of the parsed
config file (represented as a tree of oconfig_item_t objects) instead of
(name, value) pairs passed on to the callback one by one. "Complex"
config callbacks have been introduced mainly for the purpose of being
able to parse nested blocks. At some point in the future this should be
unified (and possibly further abstracted to reduce code duplication).

Sorry for the noise!

Cheers,
Sebastian

-- 
Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/

Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety.         -- Benjamin Franklin

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20090518/17a2d001/attachment.pgp 


More information about the collectd mailing list