mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-04 20:24:19 +01:00
Modules: add init and destroy option callbacks to module info
This commit is contained in:
@@ -153,6 +153,8 @@ void ffGenerateLoadavgJsonResult(FF_MAYBE_UNUSED FFLoadavgOptions* options, yyjs
|
||||
static FFModuleBaseInfo ffModuleInfo = {
|
||||
.name = FF_LOADAVG_MODULE_NAME,
|
||||
.description = "Print system load averages",
|
||||
.initOptions = (void*) ffInitLoadavgOptions,
|
||||
.destroyOptions = (void*) ffDestroyLoadavgOptions,
|
||||
.parseJsonObject = (void*) ffParseLoadavgJsonObject,
|
||||
.printModule = (void*) ffPrintLoadavg,
|
||||
.generateJsonResult = (void*) ffGenerateLoadavgJsonResult,
|
||||
|
||||
Reference in New Issue
Block a user