mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-07 21:50:08 +01:00
Modules: add init and destroy option callbacks to module info
This commit is contained in:
@@ -192,6 +192,8 @@ void ffGenerateSwapJsonResult(FF_MAYBE_UNUSED FFSwapOptions* options, yyjson_mut
|
||||
static FFModuleBaseInfo ffModuleInfo = {
|
||||
.name = FF_SWAP_MODULE_NAME,
|
||||
.description = "Print swap (paging file) space usage",
|
||||
.initOptions = (void*) ffInitSwapOptions,
|
||||
.destroyOptions = (void*) ffDestroySwapOptions,
|
||||
.parseJsonObject = (void*) ffParseSwapJsonObject,
|
||||
.printModule = (void*) ffPrintSwap,
|
||||
.generateJsonResult = (void*) ffGenerateSwapJsonResult,
|
||||
|
||||
Reference in New Issue
Block a user