| 951 | } |
| 952 | |
| 953 | void DLApi::selectApiVersion(int apiVersion) { |
| 954 | // External clients must support at least this version |
| 955 | // Versions newer than what we understand are rejected in the C bindings |
| 956 | headerVersion = std::max(apiVersion, 400); |
| 957 | |
| 958 | init(); |
| 959 | throwIfError(api->selectApiVersion(apiVersion, headerVersion)); |
| 960 | throwIfError(api->setNetworkOption(static_cast<FDBNetworkOption>(FDBNetworkOptions::EXTERNAL_CLIENT), nullptr, 0)); |
| 961 | } |
| 962 | |
| 963 | const char* DLApi::getClientVersion() { |
| 964 | if (!api->getClientVersion) { |
no test coverage detected