int processDataRecord(SourceID sourceID, TemplateInfo* ti, uint16_t length, FieldData* data) {
int processDataRecord(Rules *rules, SourceID sourceID, TemplateInfo* ti, uint16_t length, FieldData* data) {
int processDataRecord(SourceID sourceID, TemplateInfo* ti, uint16_t length, FieldData* data) {	int i;	debug("Got a Data Record");	if (!rules) {		fatal("Aggregator not started");		return -1;		}	for (i = 0; i < rules->count; i++) {		if (templateDataMatchesRule(ti, data, rules->rule[i])) {			debugf("rule %d matches", i);						aggregateTemplateData(rules->rule[i]->hashtable, ti, data);			}		}		return 0;	}