Flutter Engine
The Flutter Engine
Functions
SkOSLibrary_posix.cpp File Reference
#include "include/core/SkTypes.h"
#include "src/ports/SkOSLibrary.h"
#include <dlfcn.h>

Go to the source code of this file.

Functions

void * SkLoadDynamicLibrary (const char *libraryName)
 
void * SkGetProcedureAddress (void *library, const char *functionName)
 
bool SkFreeDynamicLibrary (void *library)
 

Function Documentation

◆ SkFreeDynamicLibrary()

bool SkFreeDynamicLibrary ( void *  library)

Definition at line 22 of file SkOSLibrary_posix.cpp.

22 {
23 return dlclose(library) == 0;
24}

◆ SkGetProcedureAddress()

void * SkGetProcedureAddress ( void *  library,
const char *  functionName 
)

Definition at line 18 of file SkOSLibrary_posix.cpp.

18 {
19 return dlsym(library, functionName);
20}

◆ SkLoadDynamicLibrary()

void * SkLoadDynamicLibrary ( const char *  libraryName)

Definition at line 14 of file SkOSLibrary_posix.cpp.

14 {
15 return dlopen(libraryName, RTLD_LAZY);
16}