1
0
Fork 0
mirror of https://github.com/polybar/polybar.git synced 2025-04-14 17:33:17 -04:00
polybar/include/utils/plugin.hpp
2018-09-20 15:50:54 -05:00

25 lines
464 B
C++

#pragma once
#include "common.hpp"
#include "components/logger.hpp"
POLYBAR_NS
class plugin_handle {
public:
plugin_handle(const char* libname);
~plugin_handle();
plugin_handle(const plugin_handle&) = delete;
plugin_handle& operator=(const plugin_handle&) = delete;
plugin_handle(plugin_handle&&);
plugin_handle& operator=(plugin_handle&&);
private:
void* m_handle = nullptr;
};
extern std::vector<const char*> plugin_names;
POLYBAR_NS_END