Update SDUtilsGetVersion function

This commit is contained in:
Maschell 2022-09-03 21:45:21 +02:00
parent f18b7f6ed9
commit 6ae91cce9d

View File

@ -92,8 +92,12 @@ bool SDUtilsRemoveCleanUpHandlesHandler(SDCleanUpHandlesHandlerFn fn) {
return false;
}
SDUtilsVersion SDUtilsGetVersion() {
return SDUTILS_MODULE_VERSION;
SDUtilsStatus SDUtilsGetVersion(SDUtilsVersion *outVersion) {
if (outVersion == nullptr) {
return SDUTILS_RESULT_INVALID_ARGUMENT;
}
*outVersion = 1;
return SDUTILS_RESULT_SUCCESS;
}
WUMS_EXPORT_FUNCTION(SDUtilsGetVersion);