mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-29 00:03:58 +01:00
Modules: add init and destroy option callbacks to module info
This commit is contained in:
@@ -215,6 +215,8 @@ void ffGenerateCPUJsonResult(FFCPUOptions* options, yyjson_mut_doc* doc, yyjson_
|
||||
static FFModuleBaseInfo ffModuleInfo = {
|
||||
.name = FF_CPU_MODULE_NAME,
|
||||
.description = "Print CPU name, frequency, etc",
|
||||
.initOptions = (void*) ffInitCPUOptions,
|
||||
.destroyOptions = (void*) ffDestroyCPUOptions,
|
||||
.parseJsonObject = (void*) ffParseCPUJsonObject,
|
||||
.printModule = (void*) ffPrintCPU,
|
||||
.generateJsonResult = (void*) ffGenerateCPUJsonResult,
|
||||
|
||||
Reference in New Issue
Block a user