mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-29 16:26:39 +01:00
Modules: add init and destroy option callbacks to module info
This commit is contained in:
@@ -177,6 +177,8 @@ void ffGenerateCPUUsageJsonResult(FFCPUUsageOptions* options, yyjson_mut_doc* do
|
||||
static FFModuleBaseInfo ffModuleInfo = {
|
||||
.name = FF_CPUUSAGE_MODULE_NAME,
|
||||
.description = "Print CPU usage. Costs some time to collect data",
|
||||
.initOptions = (void*) ffInitCPUUsageOptions,
|
||||
.destroyOptions = (void*) ffDestroyCPUUsageOptions,
|
||||
.parseJsonObject = (void*) ffParseCPUUsageJsonObject,
|
||||
.printModule = (void*) ffPrintCPUUsage,
|
||||
.generateJsonResult = (void*) ffGenerateCPUUsageJsonResult,
|
||||
|
||||
Reference in New Issue
Block a user