Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
third_party
skia
src
ports
SkOSLibrary_posix.cpp
Go to the documentation of this file.
1
/*
2
* Copyright 2015 Google Inc.
3
*
4
* Use of this source code is governed by a BSD-style license that can be
5
* found in the LICENSE file.
6
*/
7
#include "
include/core/SkTypes.h
"
8
#if !defined(SK_BUILD_FOR_WIN)
9
10
#include "
src/ports/SkOSLibrary.h
"
11
12
#include <dlfcn.h>
13
14
void
*
SkLoadDynamicLibrary
(
const
char
* libraryName) {
15
return
dlopen(libraryName, RTLD_LAZY);
16
}
17
18
void
*
SkGetProcedureAddress
(
void
* library,
const
char
* functionName) {
19
return
dlsym(library, functionName);
20
}
21
22
bool
SkFreeDynamicLibrary
(
void
* library) {
23
return
dlclose(library) == 0;
24
}
25
26
#endif
//!defined(SK_BUILD_FOR_WIN)
SkOSLibrary.h
SkGetProcedureAddress
void * SkGetProcedureAddress(void *library, const char *functionName)
Definition
SkOSLibrary_posix.cpp:18
SkLoadDynamicLibrary
void * SkLoadDynamicLibrary(const char *libraryName)
Definition
SkOSLibrary_posix.cpp:14
SkFreeDynamicLibrary
bool SkFreeDynamicLibrary(void *library)
Definition
SkOSLibrary_posix.cpp:22
SkTypes.h
Generated on Fri Apr 26 2024 06:17:26 for Flutter Engine by
1.9.8