MCPcopy Create free account
hub / github.com/BlueAndi/Pixelix / PluginWithConfig

Method PluginWithConfig

lib/Plugin/src/PluginWithConfig.hpp:180–188  ·  view source on GitHub ↗

* Construct the base plugin. * * @param[in] name Plugin name (must exist over lifetime) * @param[in] uid Unique id * @param[in] fs The filesystem where to load and save the configuration file. */

Source from the content-addressed store, hash-verified

178 * @param[in] fs The filesystem where to load and save the configuration file.
179 */
180 PluginWithConfig(const char* name, uint16_t uid, FS& fs) :
181 Plugin(name, uid),
182 m_fs(fs),
183 m_timestampOfLastFileUpdate(0U),
184 m_cfgReloadTimer(),
185 m_storeConfigReq(false),
186 m_reloadConfigReq(false)
187 {
188 }
189
190 /**
191 * Get configuration in JSON.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected