mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-07 21:50:08 +01:00
Modules: add init and destroy option callbacks to module info
This commit is contained in:
@@ -154,6 +154,8 @@ void ffGenerateMediaJsonResult(FF_MAYBE_UNUSED FFMediaOptions* options, yyjson_m
|
||||
static FFModuleBaseInfo ffModuleInfo = {
|
||||
.name = FF_MEDIA_MODULE_NAME,
|
||||
.description = "Print playing song name",
|
||||
.initOptions = (void*) ffInitMediaOptions,
|
||||
.destroyOptions = (void*) ffDestroyMediaOptions,
|
||||
.parseJsonObject = (void*) ffParseMediaJsonObject,
|
||||
.printModule = (void*) ffPrintMedia,
|
||||
.generateJsonResult = (void*) ffGenerateMediaJsonResult,
|
||||
|
||||
Reference in New Issue
Block a user