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:
@@ -107,6 +107,8 @@ void ffGenerateEditorJsonResult(FF_MAYBE_UNUSED FFEditorOptions* options, yyjson
|
||||
static FFModuleBaseInfo ffModuleInfo = {
|
||||
.name = FF_EDITOR_MODULE_NAME,
|
||||
.description = "Print information of the default editor ($VISUAL or $EDITOR)",
|
||||
.initOptions = (void*) ffInitEditorOptions,
|
||||
.destroyOptions = (void*) ffDestroyEditorOptions,
|
||||
.parseJsonObject = (void*) ffParseEditorJsonObject,
|
||||
.printModule = (void*) ffPrintEditor,
|
||||
.generateJsonResult = (void*) ffGenerateEditorJsonResult,
|
||||
|
||||
Reference in New Issue
Block a user