MCPcopy Create free account
hub / github.com/MusicPlayerDaemon/MPD / LoadStickerDatabase

Function LoadStickerDatabase

src/Main.cxx:239–247  ·  view source on GitHub ↗

* Configure and initialize the sticker subsystem. */

Source from the content-addressed store, hash-verified

237 * Configure and initialize the sticker subsystem.
238 */
239static std::unique_ptr<StickerDatabase>
240LoadStickerDatabase(const ConfigData &config)
241{
242 auto sticker_file = config.GetPath(ConfigOption::STICKER_FILE);
243 if (sticker_file.IsNull())
244 return nullptr;
245
246 return std::make_unique<StickerDatabase>(std::move(sticker_file));
247}
248
249#endif
250

Callers 1

MainConfiguredFunction · 0.85

Calls 1

GetPathMethod · 0.45

Tested by

no test coverage detected