cmake/Source/cmDynamicLoader.h

34 lines
957 B
C
Raw Normal View History

2016-10-30 18:24:19 +01:00
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
// .NAME cmDynamicLoader - class interface to system dynamic libraries
// .SECTION Description
// cmDynamicLoader provides a portable interface to loading dynamic
// libraries into a process.
2015-04-27 22:25:09 +02:00
#ifndef cmDynamicLoader_h
#define cmDynamicLoader_h
2018-01-26 17:06:56 +01:00
#include "cmConfigure.h" // IWYU pragma: keep
2017-07-20 19:35:53 +02:00
#include "cmsys/DynamicLoader.hxx" // IWYU pragma: export
class cmDynamicLoader
{
public:
// Description:
// Load a dynamic library into the current process.
// The returned cmsys::DynamicLoader::LibraryHandle can be used to access
// the symbols in the library.
static cmsys::DynamicLoader::LibraryHandle OpenLibrary(const char*);
// Description:
// Flush the cache of dynamic loader.
static void FlushCache();
protected:
2019-11-11 23:01:05 +01:00
cmDynamicLoader() = default;
~cmDynamicLoader() = default;
};
#endif