You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
// This is generated file. Do not modify directly.
|
|
|
|
// Path to the code generator: /home/crz/git/MangoHud/generate_library_loader.py .
|
|
|
|
|
|
|
|
#ifndef LIBRARY_LOADER_NVCTRL_H
|
|
|
|
#define LIBRARY_LOADER_NVCTRL_H
|
|
|
|
#define Bool bool
|
|
|
|
#include <X11/Xlib.h>
|
|
|
|
#include "NVCtrl/NVCtrlLib.h"
|
|
|
|
#define LIBRARY_LOADER_NVCTRL_H_DLOPEN
|
|
|
|
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <dlfcn.h>
|
|
|
|
|
|
|
|
class libnvctrl_loader {
|
|
|
|
public:
|
|
|
|
libnvctrl_loader();
|
|
|
|
libnvctrl_loader(const std::string& library_name) : libnvctrl_loader() {
|
|
|
|
Load(library_name);
|
|
|
|
}
|
|
|
|
~libnvctrl_loader();
|
|
|
|
|
|
|
|
bool Load(const std::string& library_name);
|
|
|
|
bool IsLoaded() { return loaded_; }
|
|
|
|
|
|
|
|
decltype(&::XNVCTRLIsNvScreen) XNVCTRLIsNvScreen;
|
|
|
|
decltype(&::XNVCTRLQueryVersion) XNVCTRLQueryVersion;
|
|
|
|
decltype(&::XNVCTRLQueryAttribute) XNVCTRLQueryAttribute;
|
|
|
|
decltype(&::XNVCTRLQueryTargetStringAttribute) XNVCTRLQueryTargetStringAttribute;
|
|
|
|
decltype(&::XNVCTRLQueryTargetAttribute64) XNVCTRLQueryTargetAttribute64;
|
|
|
|
|
|
|
|
private:
|
|
|
|
void CleanUp(bool unload);
|
|
|
|
|
|
|
|
#if defined(LIBRARY_LOADER_NVCTRL_H_DLOPEN)
|
|
|
|
void* library_;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
bool loaded_;
|
|
|
|
|
|
|
|
// Disallow copy constructor and assignment operator.
|
|
|
|
libnvctrl_loader(const libnvctrl_loader&);
|
|
|
|
void operator=(const libnvctrl_loader&);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // LIBRARY_LOADER_NVCTRL_H
|