- 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];
+ 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}};