File: factory.hpp

package info (click to toggle)
polybar 3.7.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,108 kB
  • sloc: cpp: 30,424; python: 3,750; sh: 284; makefile: 83
file content (25 lines) | stat: -rw-r--r-- 702 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#pragma once

#include "common.hpp"
#include "components/logger.hpp"
#include "components/types.hpp"
#include "modules/meta/base.hpp"

POLYBAR_NS

namespace modules {
  using module_t = shared_ptr<module_interface>;

  /**
   * 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
   * @param config A @ref config instance
   */
  module_t make_module(string&& type, const bar_settings& bar, string module_name, const logger& log, const config& config);
} // namespace modules

POLYBAR_NS_END