mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-07 13:44:18 +01:00
Modules: export module info
This commit is contained in:
@@ -94,7 +94,7 @@ void ffGenerateCursorJsonResult(FF_MAYBE_UNUSED FFCursorOptions* options, yyjson
|
||||
ffStrbufDestroy(&result.size);
|
||||
}
|
||||
|
||||
static FFModuleBaseInfo ffModuleInfo = {
|
||||
FFModuleBaseInfo ffCursorModuleInfo = {
|
||||
.name = FF_CURSOR_MODULE_NAME,
|
||||
.description = "Print cursor style name",
|
||||
.initOptions = (void*) ffInitCursorOptions,
|
||||
@@ -111,7 +111,7 @@ static FFModuleBaseInfo ffModuleInfo = {
|
||||
|
||||
void ffInitCursorOptions(FFCursorOptions* options)
|
||||
{
|
||||
options->moduleInfo = ffModuleInfo;
|
||||
options->moduleInfo = ffCursorModuleInfo;
|
||||
ffOptionInitModuleArg(&options->moduleArgs, "");
|
||||
}
|
||||
|
||||
|
||||
@@ -7,3 +7,5 @@
|
||||
void ffPrintCursor(FFCursorOptions* options);
|
||||
void ffInitCursorOptions(FFCursorOptions* options);
|
||||
void ffDestroyCursorOptions(FFCursorOptions* options);
|
||||
|
||||
extern FFModuleBaseInfo ffCursorModuleInfo;
|
||||
|
||||
Reference in New Issue
Block a user