Factor out srd_decoder_apiver().