mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-08 22:20:17 +01:00
Modules: export module info
This commit is contained in:
@@ -104,7 +104,7 @@ void ffGenerateEditorJsonResult(FF_MAYBE_UNUSED FFEditorOptions* options, yyjson
|
||||
ffStrbufDestroy(&result.version);
|
||||
}
|
||||
|
||||
static FFModuleBaseInfo ffModuleInfo = {
|
||||
FFModuleBaseInfo ffEditorModuleInfo = {
|
||||
.name = FF_EDITOR_MODULE_NAME,
|
||||
.description = "Print information of the default editor ($VISUAL or $EDITOR)",
|
||||
.initOptions = (void*) ffInitEditorOptions,
|
||||
@@ -124,7 +124,7 @@ static FFModuleBaseInfo ffModuleInfo = {
|
||||
|
||||
void ffInitEditorOptions(FFEditorOptions* options)
|
||||
{
|
||||
options->moduleInfo = ffModuleInfo;
|
||||
options->moduleInfo = ffEditorModuleInfo;
|
||||
ffOptionInitModuleArg(&options->moduleArgs, "");
|
||||
}
|
||||
|
||||
|
||||
@@ -7,3 +7,5 @@
|
||||
void ffPrintEditor(FFEditorOptions* options);
|
||||
void ffInitEditorOptions(FFEditorOptions* options);
|
||||
void ffDestroyEditorOptions(FFEditorOptions* options);
|
||||
|
||||
extern FFModuleBaseInfo ffEditorModuleInfo;
|
||||
|
||||
Reference in New Issue
Block a user