return 0;
}
-static struct cfg_kw_list dacfg_kws = {{ }, {
- { CFG_GLOBAL, "deviceatlas-json-file", da_json_file },
- { CFG_GLOBAL, "deviceatlas-log-level", da_log_level },
- { CFG_GLOBAL, "deviceatlas-property-separator", da_property_separator },
- { 0, NULL, NULL },
-}};
-
static size_t da_haproxy_read(void *ctx, size_t len, char *buf)
{
return fread(buf, 1, len, ctx);
}
}
-void da_register_cfgkeywords(void)
-{
- cfg_register_keywords(&dacfg_kws);
-}
-
int init_deviceatlas(void)
{
da_status_t status = DA_SYS;
return 1;
}
+static struct cfg_kw_list dacfg_kws = {{ }, {
+ { CFG_GLOBAL, "deviceatlas-json-file", da_json_file },
+ { CFG_GLOBAL, "deviceatlas-log-level", da_log_level },
+ { CFG_GLOBAL, "deviceatlas-property-separator", da_property_separator },
+ { 0, NULL, NULL },
+}};
+
/* Note: must not be declared <const> as its list will be overwritten */
static struct sample_conv_kw_list conv_kws = {ILH, {
{ "da-csv", da_haproxy, ARG5(1,STR,STR,STR,STR,STR), NULL, SMP_T_STR, SMP_T_STR },
{
/* register sample fetch and format conversion keywords */
sample_register_convs(&conv_kws);
+ cfg_register_keywords(&dacfg_kws);
}
#endif