| 1 | // Copyright 2009-2021 Intel Corporation |
|---|---|
| 2 | // SPDX-License-Identifier: Apache-2.0 |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include "platform.h" |
| 7 | |
| 8 | namespace embree |
| 9 | { |
| 10 | /*! type for shared library */ |
| 11 | typedef struct opaque_lib_t* lib_t; |
| 12 | |
| 13 | /*! loads a shared library */ |
| 14 | lib_t openLibrary(const std::string& file); |
| 15 | |
| 16 | /*! returns address of a symbol from the library */ |
| 17 | void* getSymbol(lib_t lib, const std::string& sym); |
| 18 | |
| 19 | /*! unloads a shared library */ |
| 20 | void closeLibrary(lib_t lib); |
| 21 | } |
| 22 |