2017-12-21 00:45:38 +01:00
|
|
|
/*
|
2019-03-26 11:59:46 +01:00
|
|
|
* Copyright (C) 2017-2019 Intel Corporation
|
2017-12-21 00:45:38 +01:00
|
|
|
*
|
2018-09-18 09:11:08 +02:00
|
|
|
* SPDX-License-Identifier: MIT
|
2017-12-21 00:45:38 +01:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
#include "runtime/os_interface/os_library.h"
|
|
|
|
|
2019-03-26 11:59:46 +01:00
|
|
|
namespace NEO {
|
2017-12-21 00:45:38 +01:00
|
|
|
namespace Linux {
|
|
|
|
|
2019-03-26 11:59:46 +01:00
|
|
|
class OsLibrary : public NEO::OsLibrary {
|
2017-12-21 00:45:38 +01:00
|
|
|
private:
|
|
|
|
void *handle;
|
|
|
|
|
|
|
|
public:
|
|
|
|
OsLibrary(const std::string &name);
|
|
|
|
~OsLibrary() override;
|
|
|
|
|
|
|
|
bool isLoaded() override;
|
|
|
|
void *getProcAddress(const std::string &procName) override;
|
|
|
|
};
|
2018-06-12 21:54:39 +02:00
|
|
|
} // namespace Linux
|
2019-03-26 11:59:46 +01:00
|
|
|
} // namespace NEO
|