Global: don't expose internal functions

This commit is contained in:
李通洲
2023-10-23 13:32:18 +08:00
parent 824ada49b6
commit 44632e9bf6
115 changed files with 709 additions and 930 deletions
+11 -11
View File
@@ -50,12 +50,6 @@ void ffPrintCursor(FFCursorOptions* options)
ffStrbufDestroy(&result.size);
}
void ffInitCursorOptions(FFCursorOptions* options)
{
ffOptionInitModuleBaseInfo(&options->moduleInfo, FF_CURSOR_MODULE_NAME, ffParseCursorCommandOptions, ffParseCursorJsonObject, ffPrintCursor, ffGenerateCursorJsonResult, ffPrintCursorHelpFormat);
ffOptionInitModuleArg(&options->moduleArgs);
}
bool ffParseCursorCommandOptions(FFCursorOptions* options, const char* key, const char* value)
{
const char* subKey = ffOptionTestPrefix(key, FF_CURSOR_MODULE_NAME);
@@ -66,11 +60,6 @@ bool ffParseCursorCommandOptions(FFCursorOptions* options, const char* key, cons
return false;
}
void ffDestroyCursorOptions(FFCursorOptions* options)
{
ffOptionDestroyModuleArg(&options->moduleArgs);
}
void ffParseCursorJsonObject(FFCursorOptions* options, yyjson_val* module)
{
yyjson_val *key_, *val;
@@ -119,3 +108,14 @@ void ffPrintCursorHelpFormat(void)
"Cursor size"
});
}
void ffInitCursorOptions(FFCursorOptions* options)
{
ffOptionInitModuleBaseInfo(&options->moduleInfo, FF_CURSOR_MODULE_NAME, ffParseCursorCommandOptions, ffParseCursorJsonObject, ffPrintCursor, ffGenerateCursorJsonResult, ffPrintCursorHelpFormat);
ffOptionInitModuleArg(&options->moduleArgs);
}
void ffDestroyCursorOptions(FFCursorOptions* options)
{
ffOptionDestroyModuleArg(&options->moduleArgs);
}
-4
View File
@@ -6,8 +6,4 @@
void ffPrintCursor(FFCursorOptions* options);
void ffInitCursorOptions(FFCursorOptions* options);
bool ffParseCursorCommandOptions(FFCursorOptions* options, const char* key, const char* value);
void ffDestroyCursorOptions(FFCursorOptions* options);
void ffParseCursorJsonObject(FFCursorOptions* options, yyjson_val* module);
void ffGenerateCursorJsonResult(FFCursorOptions* options, yyjson_mut_doc* doc, yyjson_mut_val* module);
void ffPrintCursorHelpFormat(void);