app-layer-register: add GetTxIterator

Add a field to set the GetTxIterator function to the AppLayerParser
registration struct.
pull/3394/head
Jason Ish 7 years ago
parent 9fc1250ca8
commit 14843a7b43

@ -162,6 +162,11 @@ int AppLayerRegisterParser(const struct AppLayerParser *p, AppProto alproto)
p->StateGetFiles);
}
if (p->GetTxIterator) {
AppLayerParserRegisterGetTxIterator(p->ip_proto, alproto,
p->GetTxIterator);
}
return 0;
}

@ -65,6 +65,10 @@ typedef struct AppLayerParser {
int (*SetTxMpmIDs)(void *tx, uint64_t);
FileContainer *(*StateGetFiles)(void *, uint8_t);
AppLayerGetTxIterTuple (*GetTxIterator)(const uint8_t ipproto,
const AppProto alproto, void *alstate, uint64_t min_tx_id,
uint64_t max_tx_id, AppLayerGetTxIterState *istate);
} AppLayerParser;
/**

Loading…
Cancel
Save