2016-12-05 14:41:00 -05:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "common.hpp"
|
2022-10-16 15:09:32 -04:00
|
|
|
#include "components/logger.hpp"
|
|
|
|
#include "components/types.hpp"
|
2016-12-05 14:41:00 -05:00
|
|
|
#include "modules/meta/base.hpp"
|
|
|
|
|
|
|
|
POLYBAR_NS
|
|
|
|
|
2022-10-16 15:09:32 -04:00
|
|
|
namespace modules {
|
|
|
|
using module_t = shared_ptr<module_interface>;
|
2016-12-05 14:41:00 -05:00
|
|
|
|
2022-10-16 15:09:32 -04: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 08:58:52 -04:00
|
|
|
* @param config A @ref config instance
|
2022-10-16 15:09:32 -04:00
|
|
|
*/
|
2023-05-01 08:58:52 -04:00
|
|
|
module_t make_module(string&& type, const bar_settings& bar, string module_name, const logger& log, const config& config);
|
2022-10-16 15:09:32 -04:00
|
|
|
} // namespace modules
|
2016-12-05 14:41:00 -05:00
|
|
|
|
|
|
|
POLYBAR_NS_END
|