@@ -38,7 +38,7 @@ executorch::runtime::Result<void*> load_library(const std::string& path) {
3838 void * lib_handle = dlopen (path.c_str (), RTLD_LAZY | RTLD_LOCAL);
3939 if (lib_handle == nullptr ) {
4040 ET_LOG (Error, " Failed to load %s with error: %s" , path.c_str (), dlerror ());
41- return Error::AccessFailed;
41+ return executorch::runtime:: Error::AccessFailed;
4242 }
4343#endif
4444 return (void *)lib_handle;
@@ -48,15 +48,15 @@ executorch::runtime::Error close_library(void* lib_handle) {
4848#ifdef _WIN32
4949 if (!FreeLibrary ((HMODULE)lib_handle)) {
5050 printf (" FreeLibrary failed with error %lu\n " , GetLastError ());
51- return Error::Internal;
51+ return executorch::runtime:: Error::Internal;
5252 }
5353#else
5454 if (dlclose (lib_handle) != 0 ) {
5555 ET_LOG (Error, " dlclose failed: %s\n " , dlerror ());
5656 return Error::Internal;
5757 }
5858#endif
59- return Error::Ok;
59+ return executorch::runtime:: Error::Ok;
6060}
6161
6262executorch::runtime::Result<void *> get_function (void * lib_handle, const std::string& fn_name) {
@@ -68,7 +68,7 @@ executorch::runtime::Result<void*> get_function(void* lib_handle, const std::str
6868 " Failed loading symbol %s with error %lu\n " ,
6969 fn_name.c_str (),
7070 GetLastError ());
71- return Error::Internal;
71+ return executorch::runtime:: Error::Internal;
7272 }
7373#else
7474 auto fn = dlsym (lib_handle, fn_name.c_str ());
0 commit comments