mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-07 21:50:08 +01:00
Global: don't expose internal functions
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user