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