Function gdal_sys::GDALCheckVersion

source ·
pub unsafe extern "C" fn GDALCheckVersion(
    nVersionMajor: c_int,
    nVersionMinor: c_int,
    pszCallingComponentName: *const c_char
) -> c_int
Expand description

Return TRUE if GDAL library version at runtime matches nVersionMajor.nVersionMinor.

The purpose of this method is to ensure that calling code will run with the GDAL version it is compiled for. It is primarily indented for external plugins.

@param nVersionMajor Major version to be tested against @param nVersionMinor Minor version to be tested against @param pszCallingComponentName If not NULL, in case of version mismatch, the method will issue a failure mentioning the name of the calling component.