- char name[64];
- XS ((*f));
-} api[] =
-{
- { "Collectd::plugin_register_read", Collectd_plugin_register_read },
- { "Collectd::plugin_register_write", Collectd_plugin_register_write },
- { "Collectd::plugin_register_log", Collectd_plugin_register_log },
- { "Collectd::plugin_register_notification",
- Collectd_plugin_register_notification },
- { "Collectd::plugin_register_flush", Collectd_plugin_register_flush },
- { "Collectd::plugin_unregister_read", Collectd_plugin_unregister_read },
- { "Collectd::plugin_unregister_write", Collectd_plugin_unregister_write },
- { "Collectd::plugin_unregister_log", Collectd_plugin_unregister_log },
- { "Collectd::plugin_unregister_notification",
- Collectd_plugin_unregister_notification },
- { "Collectd::plugin_unregister_flush", Collectd_plugin_unregister_flush },
- { "Collectd::plugin_register_data_set", Collectd_plugin_register_ds },
- { "Collectd::plugin_unregister_data_set", Collectd_plugin_unregister_ds },
- { "Collectd::plugin_dispatch_values", Collectd_plugin_dispatch_values },
- { "Collectd::plugin_get_interval", Collectd_plugin_get_interval },
- { "Collectd::_plugin_write", Collectd__plugin_write },
- { "Collectd::_plugin_flush", Collectd__plugin_flush },
- { "Collectd::plugin_dispatch_notification",
- Collectd_plugin_dispatch_notification },
- { "Collectd::plugin_log", Collectd_plugin_log },
- { "Collectd::_fc_register", Collectd__fc_register },
- { "Collectd::call_by_name", Collectd_call_by_name },
- { "", NULL }
-};
-
-struct {
- char name[64];
- int value;
-} constants[] =
-{
- { "Collectd::TYPE_INIT", PLUGIN_INIT },
- { "Collectd::TYPE_READ", PLUGIN_READ },
- { "Collectd::TYPE_WRITE", PLUGIN_WRITE },
- { "Collectd::TYPE_SHUTDOWN", PLUGIN_SHUTDOWN },
- { "Collectd::TYPE_LOG", PLUGIN_LOG },
- { "Collectd::TYPE_NOTIF", PLUGIN_NOTIF },
- { "Collectd::TYPE_FLUSH", PLUGIN_FLUSH },
- { "Collectd::TYPE_CONFIG", PLUGIN_CONFIG },
- { "Collectd::TYPE_DATASET", PLUGIN_DATASET },
- { "Collectd::DS_TYPE_COUNTER", DS_TYPE_COUNTER },
- { "Collectd::DS_TYPE_GAUGE", DS_TYPE_GAUGE },
- { "Collectd::DS_TYPE_DERIVE", DS_TYPE_DERIVE },
- { "Collectd::DS_TYPE_ABSOLUTE", DS_TYPE_ABSOLUTE },
- { "Collectd::LOG_ERR", LOG_ERR },
- { "Collectd::LOG_WARNING", LOG_WARNING },
- { "Collectd::LOG_NOTICE", LOG_NOTICE },
- { "Collectd::LOG_INFO", LOG_INFO },
- { "Collectd::LOG_DEBUG", LOG_DEBUG },
- { "Collectd::FC_MATCH", FC_MATCH },
- { "Collectd::FC_TARGET", FC_TARGET },
- { "Collectd::FC_CB_CREATE", FC_CB_CREATE },
- { "Collectd::FC_CB_DESTROY", FC_CB_DESTROY },
- { "Collectd::FC_CB_EXEC", FC_CB_EXEC },
- { "Collectd::FC_MATCH_NO_MATCH", FC_MATCH_NO_MATCH },
- { "Collectd::FC_MATCH_MATCHES", FC_MATCH_MATCHES },
- { "Collectd::FC_TARGET_CONTINUE", FC_TARGET_CONTINUE },
- { "Collectd::FC_TARGET_STOP", FC_TARGET_STOP },
- { "Collectd::FC_TARGET_RETURN", FC_TARGET_RETURN },
- { "Collectd::NOTIF_FAILURE", NOTIF_FAILURE },
- { "Collectd::NOTIF_WARNING", NOTIF_WARNING },
- { "Collectd::NOTIF_OKAY", NOTIF_OKAY },
- { "", 0 }
-};
+ char name[64];
+ XS((*f));
+} api[] = {
+ {"Collectd::plugin_register_read", Collectd_plugin_register_read},
+ {"Collectd::plugin_register_write", Collectd_plugin_register_write},
+ {"Collectd::plugin_register_log", Collectd_plugin_register_log},
+ {"Collectd::plugin_register_notification",
+ Collectd_plugin_register_notification},
+ {"Collectd::plugin_register_flush", Collectd_plugin_register_flush},
+ {"Collectd::plugin_unregister_read", Collectd_plugin_unregister_read},
+ {"Collectd::plugin_unregister_write", Collectd_plugin_unregister_write},
+ {"Collectd::plugin_unregister_log", Collectd_plugin_unregister_log},
+ {"Collectd::plugin_unregister_notification",
+ Collectd_plugin_unregister_notification},
+ {"Collectd::plugin_unregister_flush", Collectd_plugin_unregister_flush},
+ {"Collectd::plugin_register_data_set", Collectd_plugin_register_ds},
+ {"Collectd::plugin_unregister_data_set", Collectd_plugin_unregister_ds},
+ {"Collectd::plugin_dispatch_values", Collectd_plugin_dispatch_values},
+ {"Collectd::plugin_get_interval", Collectd_plugin_get_interval},
+ {"Collectd::_plugin_write", Collectd__plugin_write},
+ {"Collectd::_plugin_flush", Collectd__plugin_flush},
+ {"Collectd::plugin_dispatch_notification",
+ Collectd_plugin_dispatch_notification},
+ {"Collectd::plugin_log", Collectd_plugin_log},
+ {"Collectd::_fc_register", Collectd__fc_register},
+ {"Collectd::call_by_name", Collectd_call_by_name},
+ {"", NULL}};