mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-29 08:13:44 +01:00
Modules: add init and destroy option callbacks to module info
This commit is contained in:
@@ -110,6 +110,8 @@ void ffGeneratePlayerJsonResult(FF_MAYBE_UNUSED FFMediaOptions* options, yyjson_
|
||||
static FFModuleBaseInfo ffModuleInfo = {
|
||||
.name = FF_PLAYER_MODULE_NAME,
|
||||
.description = "Print music player name",
|
||||
.initOptions = (void*) ffInitPlayerOptions,
|
||||
.destroyOptions = (void*) ffDestroyPlayerOptions,
|
||||
.parseJsonObject = (void*) ffParsePlayerJsonObject,
|
||||
.printModule = (void*) ffPrintPlayer,
|
||||
.generateJsonResult = (void*) ffGeneratePlayerJsonResult,
|
||||
|
||||
Reference in New Issue
Block a user