mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-06 05:04:17 +01:00
Modules: add init and destroy option callbacks to module info
This commit is contained in:
@@ -114,6 +114,8 @@ void ffGeneratePowerAdapterJsonResult(FF_MAYBE_UNUSED FFPowerAdapterOptions* opt
|
||||
static FFModuleBaseInfo ffModuleInfo = {
|
||||
.name = FF_POWERADAPTER_MODULE_NAME,
|
||||
.description = "Print power adapter name and charging watts",
|
||||
.initOptions = (void*) ffInitPowerAdapterOptions,
|
||||
.destroyOptions = (void*) ffDestroyPowerAdapterOptions,
|
||||
.parseJsonObject = (void*) ffParsePowerAdapterJsonObject,
|
||||
.printModule = (void*) ffPrintPowerAdapter,
|
||||
.generateJsonResult = (void*) ffGeneratePowerAdapterJsonResult,
|
||||
|
||||
Reference in New Issue
Block a user