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
@@ -39,12 +39,6 @@ void ffPrintOpenCL(FFOpenCLOptions* options)
ffStrbufDestroy(&opencl.vendor);
}
void ffInitOpenCLOptions(FFOpenCLOptions* options)
{
ffOptionInitModuleBaseInfo(&options->moduleInfo, FF_OPENCL_MODULE_NAME, ffParseOpenCLCommandOptions, ffParseOpenCLJsonObject, ffPrintOpenCL, ffGenerateOpenCLJsonResult, ffPrintOpenCLHelpFormat);
ffOptionInitModuleArg(&options->moduleArgs);
}
bool ffParseOpenCLCommandOptions(FFOpenCLOptions* options, const char* key, const char* value)
{
const char* subKey = ffOptionTestPrefix(key, FF_OPENCL_MODULE_NAME);
@@ -55,11 +49,6 @@ bool ffParseOpenCLCommandOptions(FFOpenCLOptions* options, const char* key, cons
return false;
}
void ffDestroyOpenCLOptions(FFOpenCLOptions* options)
{
ffOptionDestroyModuleArg(&options->moduleArgs);
}
void ffParseOpenCLJsonObject(FFOpenCLOptions* options, yyjson_val* module)
{
yyjson_val *key_, *val;
@@ -111,3 +100,14 @@ void ffPrintOpenCLHelpFormat(void)
"vendor"
});
}
void ffInitOpenCLOptions(FFOpenCLOptions* options)
{
ffOptionInitModuleBaseInfo(&options->moduleInfo, FF_OPENCL_MODULE_NAME, ffParseOpenCLCommandOptions, ffParseOpenCLJsonObject, ffPrintOpenCL, ffGenerateOpenCLJsonResult, ffPrintOpenCLHelpFormat);
ffOptionInitModuleArg(&options->moduleArgs);
}
void ffDestroyOpenCLOptions(FFOpenCLOptions* options)
{
ffOptionDestroyModuleArg(&options->moduleArgs);
}
-4
View File
@@ -6,8 +6,4 @@
void ffPrintOpenCL(FFOpenCLOptions* options);
void ffInitOpenCLOptions(FFOpenCLOptions* options);
bool ffParseOpenCLCommandOptions(FFOpenCLOptions* options, const char* key, const char* value);
void ffDestroyOpenCLOptions(FFOpenCLOptions* options);
void ffParseOpenCLJsonObject(FFOpenCLOptions* options, yyjson_val* module);
void ffGenerateOpenCLJsonResult(FFOpenCLOptions* options, yyjson_mut_doc* doc, yyjson_mut_val* module);
void ffPrintOpenCLHelpFormat(void);