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
@@ -42,12 +42,6 @@ void ffPrintShell(FFShellOptions* options)
}
}
void ffInitShellOptions(FFShellOptions* options)
{
ffOptionInitModuleBaseInfo(&options->moduleInfo, FF_SHELL_MODULE_NAME, ffParseShellCommandOptions, ffParseShellJsonObject, ffPrintShell, ffGenerateShellJsonResult, ffPrintShellHelpFormat);
ffOptionInitModuleArg(&options->moduleArgs);
}
bool ffParseShellCommandOptions(FFShellOptions* options, const char* key, const char* value)
{
const char* subKey = ffOptionTestPrefix(key, FF_SHELL_MODULE_NAME);
@@ -58,11 +52,6 @@ bool ffParseShellCommandOptions(FFShellOptions* options, const char* key, const
return false;
}
void ffDestroyShellOptions(FFShellOptions* options)
{
ffOptionDestroyModuleArg(&options->moduleArgs);
}
void ffParseShellJsonObject(FFShellOptions* options, yyjson_val* module)
{
yyjson_val *key_, *val;
@@ -109,3 +98,14 @@ void ffPrintShellHelpFormat(void)
"Shell pretty name"
});
}
void ffInitShellOptions(FFShellOptions* options)
{
ffOptionInitModuleBaseInfo(&options->moduleInfo, FF_SHELL_MODULE_NAME, ffParseShellCommandOptions, ffParseShellJsonObject, ffPrintShell, ffGenerateShellJsonResult, ffPrintShellHelpFormat);
ffOptionInitModuleArg(&options->moduleArgs);
}
void ffDestroyShellOptions(FFShellOptions* options)
{
ffOptionDestroyModuleArg(&options->moduleArgs);
}
-4
View File
@@ -6,8 +6,4 @@
void ffPrintShell(FFShellOptions* options);
void ffInitShellOptions(FFShellOptions* options);
bool ffParseShellCommandOptions(FFShellOptions* options, const char* key, const char* value);
void ffDestroyShellOptions(FFShellOptions* options);
void ffParseShellJsonObject(FFShellOptions* options, yyjson_val* module);
void ffGenerateShellJsonResult(FFShellOptions* options, yyjson_mut_doc* doc, yyjson_mut_val* module);
void ffPrintShellHelpFormat(void);