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 ffPrintWMTheme(FFWMThemeOptions* options)
}
}
void ffInitWMThemeOptions(FFWMThemeOptions* options)
{
ffOptionInitModuleBaseInfo(&options->moduleInfo, FF_WMTHEME_MODULE_NAME, ffParseWMThemeCommandOptions, ffParseWMThemeJsonObject, ffPrintWMTheme, ffGenerateWMThemeJsonResult, ffPrintWMthemeHelpFormat);
ffOptionInitModuleArg(&options->moduleArgs);
}
bool ffParseWMThemeCommandOptions(FFWMThemeOptions* options, const char* key, const char* value)
{
const char* subKey = ffOptionTestPrefix(key, FF_WMTHEME_MODULE_NAME);
@@ -46,11 +40,6 @@ bool ffParseWMThemeCommandOptions(FFWMThemeOptions* options, const char* key, co
return false;
}
void ffDestroyWMThemeOptions(FFWMThemeOptions* options)
{
ffOptionDestroyModuleArg(&options->moduleArgs);
}
void ffParseWMThemeJsonObject(FFWMThemeOptions* options, yyjson_val* module)
{
yyjson_val *key_, *val;
@@ -86,3 +75,14 @@ void ffPrintWMthemeHelpFormat(void)
"WM theme"
});
}
void ffInitWMThemeOptions(FFWMThemeOptions* options)
{
ffOptionInitModuleBaseInfo(&options->moduleInfo, FF_WMTHEME_MODULE_NAME, ffParseWMThemeCommandOptions, ffParseWMThemeJsonObject, ffPrintWMTheme, ffGenerateWMThemeJsonResult, ffPrintWMthemeHelpFormat);
ffOptionInitModuleArg(&options->moduleArgs);
}
void ffDestroyWMThemeOptions(FFWMThemeOptions* options)
{
ffOptionDestroyModuleArg(&options->moduleArgs);
}
-4
View File
@@ -6,8 +6,4 @@
void ffPrintWMTheme(FFWMThemeOptions* options);
void ffInitWMThemeOptions(FFWMThemeOptions* options);
bool ffParseWMThemeCommandOptions(FFWMThemeOptions* options, const char* key, const char* value);
void ffDestroyWMThemeOptions(FFWMThemeOptions* options);
void ffParseWMThemeJsonObject(FFWMThemeOptions* options, yyjson_val* module);
void ffGenerateWMThemeJsonResult(FFWMThemeOptions* options, yyjson_mut_doc* doc, yyjson_mut_val* module);
void ffPrintWMthemeHelpFormat(void);