Rename WUHBUtils_Init to WUHBUtils_InitLibrary

This commit is contained in:
Maschell 2022-09-03 13:12:46 +02:00
parent f7276eb7f9
commit b07815fc42
2 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ typedef enum {
* WUHB_UTILS_RESULT_MODULE_MISSING_EXPORT: The module is missing an expected export. * WUHB_UTILS_RESULT_MODULE_MISSING_EXPORT: The module is missing an expected export.
* WUHB_UTILS_RESULT_UNSUPPORTED_VERSION: The version of the loaded module is not compatible with this version of the lib. * WUHB_UTILS_RESULT_UNSUPPORTED_VERSION: The version of the loaded module is not compatible with this version of the lib.
*/ */
WUHBUtilsStatus WUHBUtils_Init(); WUHBUtilsStatus WUHBUtils_InitLibrary();
/** /**
* Returns the API Version of the WUHBUtils Module. * Returns the API Version of the WUHBUtils Module.

View File

@ -15,7 +15,7 @@ static WUHBUtilsApiErrorType (*sWUUFileClose)(WUHBFileHandle)
static WUHBUtilsApiErrorType (*sWUUFileExists)(const char *, int32_t *) = nullptr; static WUHBUtilsApiErrorType (*sWUUFileExists)(const char *, int32_t *) = nullptr;
static WUHBUtilsApiErrorType (*sWUUGetRPXInfo)(const char *, BundleSource, WUHBRPXInfo *) = nullptr; static WUHBUtilsApiErrorType (*sWUUGetRPXInfo)(const char *, BundleSource, WUHBRPXInfo *) = nullptr;
WUHBUtilsStatus WUHBUtils_Init() { WUHBUtilsStatus WUHBUtils_InitLibrary() {
if (OSDynLoad_Acquire("homebrew_wuhb_utils", &sModuleHandle) != OS_DYNLOAD_OK) { if (OSDynLoad_Acquire("homebrew_wuhb_utils", &sModuleHandle) != OS_DYNLOAD_OK) {
OSReport("WUHBUtils_Init: OSDynLoad_Acquire failed.\n"); OSReport("WUHBUtils_Init: OSDynLoad_Acquire failed.\n");
return WUHB_UTILS_RESULT_MODULE_NOT_FOUND; return WUHB_UTILS_RESULT_MODULE_NOT_FOUND;