library.h 465 B

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