Modules: export module info

This commit is contained in:
李通洲
2025-08-03 22:50:56 +08:00
parent 6f8d276545
commit 559082806b
146 changed files with 295 additions and 147 deletions
+2 -2
View File
@@ -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, "󰆿");
}
+2
View File
@@ -7,3 +7,5 @@
void ffPrintCursor(FFCursorOptions* options);
void ffInitCursorOptions(FFCursorOptions* options);
void ffDestroyCursorOptions(FFCursorOptions* options);
extern FFModuleBaseInfo ffCursorModuleInfo;