* @param d The decoder to use. Must not be NULL.
*
* @return The API version of the decoder, or 0 upon errors.
+ *
+ * @private
*/
SRD_PRIV long srd_decoder_apiver(const struct srd_decoder *d)
{
* PDs of different API versions are incompatible and cannot work.
*/
apiver = srd_decoder_apiver(d);
- if (apiver != 2 && apiver != 3) {
- srd_exception_catch("Only PD API version 2/3 is supported, "
+ if (apiver != 3) {
+ srd_exception_catch("Only PD API version 3 is supported, "
"decoder %s has version %ld", module_name, apiver);
fail_txt = "API version mismatch";
goto err_out;