aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ports/SkOSLibrary_posix.cpp
blob: 1571e20085889d1ad431db0a35208c3922aa608c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

/*
 * Copyright 2015 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */
#include "SkTypes.h"
#if !defined(SK_BUILD_FOR_WIN32)

#include "SkOSLibrary.h"

#include <dlfcn.h>

void* DynamicLoadLibrary(const char* libraryName) {
    return dlopen(libraryName, RTLD_LAZY);
}

void* GetProcedureAddress(void* library, const char* functionName) {
    return dlsym(library, functionName);
}
#endif//!defined(SK_BUILD_FOR_WIN32)