blob: cca55f16a1c9787a13a4c10c453b470bc82107e0 [file] [log] [blame]
hendrikwb1ac52f2015-10-01 18:29:34 -07001
2/*
3 * Copyright 2015 Google Inc.
4 *
5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file.
7 */
8#include "SkOSLibrary.h"
9
10#include <dlfcn.h>
11
12void* DynamicLoadLibrary(const char* libraryName) {
13 return dlopen(libraryName, RTLD_LAZY);
14}
15
16void* GetProcedureAddress(void* library, const char* functionName) {
17 return dlsym(library, functionName);
18}