2016-12-05 19:41:00 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "common.hpp"
|
2022-10-16 19:09:32 +00:00
|
|
|
#include "components/logger.hpp"
|
|
|
|
#include "components/types.hpp"
|
2016-12-05 19:41:00 +00:00
|
|
|
#include "modules/meta/base.hpp"
|
|
|
|
|
|
|
|
POLYBAR_NS
|
|
|
|
|
2022-10-16 19:09:32 +00:00
|
|
|
namespace modules {
|
|
|
|
using module_t = shared_ptr<module_interface>;
|
2016-12-05 19:41:00 +00:00
|
|
|
|
2022-10-16 19:09:32 +00:00
|
|
|
/**
|
|
|
|
* Creates a new module instance.
|
|
|
|
*
|
|
|
|
* @param type The type of the module (as given by each module's TYPE field)
|
|
|
|
* @param bar An instance of the @ref bar_settings
|
|
|
|
* @param module_name The user-specified module name
|
|
|
|
* @param log A @ref logger instance
|
2023-05-01 12:58:52 +00:00
|
|
|
* @param config A @ref config instance
|
2022-10-16 19:09:32 +00:00
|
|
|
*/
|
2023-05-01 12:58:52 +00:00
|
|
|
module_t make_module(string&& type, const bar_settings& bar, string module_name, const logger& log, const config& config);
|
2022-10-16 19:09:32 +00:00
|
|
|
} // namespace modules
|
2016-12-05 19:41:00 +00:00
|
|
|
|
|
|
|
POLYBAR_NS_END
|