There was no way to access the SPOE filter configuration from the agent
object. However it could be handy to have it. And in fact, this will be
required to fix a bug.
} timeout;
/* Config info */
+ struct spoe_config *spoe_conf; /* SPOE filter config */
char *var_pfx; /* Prefix used for vars set by the agent */
char *var_on_error; /* Variable to set when an error occurred, in the TXN scope */
char *var_t_process; /* Variable to set to report the processing time of the last event/group, in the TXN scope */
conf->id = strdup(engine ? engine : curagent->id);
conf->agent = curagent;
+ curagent->spoe_conf = conf;
/* Start agent's proxy initialization here. It will be finished during
* the filter init. */