Rename ContentRedirection_Init to ContentRedirection_InitLibrary

This commit is contained in:
Maschell 2022-09-03 16:37:52 +02:00
parent ad926f03f1
commit 166df0731e
2 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ typedef enum ContentRedirectionApiErrorType {
* CONTENT_REDIRECTION_RESULT_MODULE_MISSING_EXPORT: The module is missing an expected export. * CONTENT_REDIRECTION_RESULT_MODULE_MISSING_EXPORT: The module is missing an expected export.
* CONTENT_REDIRECTION_RESULT_UNSUPPORTED_VERSION: The version of the loaded module is not compatible with this version of the lib. * CONTENT_REDIRECTION_RESULT_UNSUPPORTED_VERSION: The version of the loaded module is not compatible with this version of the lib.
*/ */
ContentRedirectionStatus ContentRedirection_Init(); ContentRedirectionStatus ContentRedirection_InitLibrary();
/** /**
* Returns the API Version of the Content Redirection Module. * Returns the API Version of the Content Redirection Module.

View File

@ -12,7 +12,7 @@ static ContentRedirectionVersion (*sCRGetVersion)()
static ContentRedirectionStatus (*sCRAddDevice)(const devoptab_t *, int *) = nullptr; static ContentRedirectionStatus (*sCRAddDevice)(const devoptab_t *, int *) = nullptr;
static ContentRedirectionStatus (*sCRRemoveDevice)(const char *) = nullptr; static ContentRedirectionStatus (*sCRRemoveDevice)(const char *) = nullptr;
ContentRedirectionStatus ContentRedirection_Init() { ContentRedirectionStatus ContentRedirection_InitLibrary() {
if (OSDynLoad_Acquire("homebrew_content_redirection", &sModuleHandle) != OS_DYNLOAD_OK) { if (OSDynLoad_Acquire("homebrew_content_redirection", &sModuleHandle) != OS_DYNLOAD_OK) {
OSReport("ContentRedirection_Init: OSDynLoad_Acquire failed.\n"); OSReport("ContentRedirection_Init: OSDynLoad_Acquire failed.\n");
return CONTENT_REDIRECTION_RESULT_MODULE_NOT_FOUND; return CONTENT_REDIRECTION_RESULT_MODULE_NOT_FOUND;