MCPcopy Index your code
hub / github.com/MapServer/MapServer / msOWSCommonNegotiateVersion

Function msOWSCommonNegotiateVersion

mapowscommon.c:708–723  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

706 */
707
708int msOWSCommonNegotiateVersion(int requested_version, int supported_versions[], int num_supported_versions) {
709 int i;
710
711 /* if version is not set return error */
712 if (! requested_version)
713 return -1;
714
715 /* return the first entry that's equal to the requested version */
716 for (i = 0; i < num_supported_versions; i++) {
717 if (supported_versions[i] == requested_version)
718 return supported_versions[i];
719 }
720
721 /* no match; calling code should throw an exception */
722 return -1;
723}

Callers 2

msWFSGetCapabilitiesFunction · 0.85
msSOSGetCapabilitiesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected