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
@@ -30,12 +30,6 @@ void ffPrintKernel(FFKernelOptions* options)
}
}
void ffInitKernelOptions(FFKernelOptions* options)
{
ffOptionInitModuleBaseInfo(&options->moduleInfo, FF_KERNEL_MODULE_NAME, ffParseKernelCommandOptions, ffParseKernelJsonObject, ffPrintKernel, ffGenerateKernelJsonResult, ffPrintKernelHelpFormat);
ffOptionInitModuleArg(&options->moduleArgs);
}
bool ffParseKernelCommandOptions(FFKernelOptions* options, const char* key, const char* value)
{
const char* subKey = ffOptionTestPrefix(key, FF_KERNEL_MODULE_NAME);
@@ -46,11 +40,6 @@ bool ffParseKernelCommandOptions(FFKernelOptions* options, const char* key, cons
return false;
}
void ffDestroyKernelOptions(FFKernelOptions* options)
{
ffOptionDestroyModuleArg(&options->moduleArgs);
}
void ffParseKernelJsonObject(FFKernelOptions* options, yyjson_val* module)
{
yyjson_val *key_, *val;
@@ -86,3 +75,14 @@ void ffPrintKernelHelpFormat(void)
"Kernel version"
});
}
void ffInitKernelOptions(FFKernelOptions* options)
{
ffOptionInitModuleBaseInfo(&options->moduleInfo, FF_KERNEL_MODULE_NAME, ffParseKernelCommandOptions, ffParseKernelJsonObject, ffPrintKernel, ffGenerateKernelJsonResult, ffPrintKernelHelpFormat);
ffOptionInitModuleArg(&options->moduleArgs);
}
void ffDestroyKernelOptions(FFKernelOptions* options)
{
ffOptionDestroyModuleArg(&options->moduleArgs);
}
-4
View File
@@ -6,8 +6,4 @@
void ffPrintKernel(FFKernelOptions* options);
void ffInitKernelOptions(FFKernelOptions* options);
bool ffParseKernelCommandOptions(FFKernelOptions* options, const char* key, const char* value);
void ffDestroyKernelOptions(FFKernelOptions* options);
void ffParseKernelJsonObject(FFKernelOptions* options, yyjson_val* module);
void ffGenerateKernelJsonResult(FFKernelOptions* options, yyjson_mut_doc* doc, yyjson_mut_val* module);
void ffPrintKernelHelpFormat(void);