mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-05 04:34:19 +01:00
Modules: export module info
This commit is contained in:
@@ -86,7 +86,7 @@ void ffGenerateThemeJsonResult(FF_MAYBE_UNUSED FFThemeOptions* options, yyjson_m
|
||||
ffStrbufDestroy(&result.theme2);
|
||||
}
|
||||
|
||||
static FFModuleBaseInfo ffModuleInfo = {
|
||||
FFModuleBaseInfo ffThemeModuleInfo = {
|
||||
.name = FF_THEME_MODULE_NAME,
|
||||
.description = "Print current theme of desktop environment",
|
||||
.initOptions = (void*) ffInitThemeOptions,
|
||||
@@ -103,7 +103,7 @@ static FFModuleBaseInfo ffModuleInfo = {
|
||||
|
||||
void ffInitThemeOptions(FFThemeOptions* options)
|
||||
{
|
||||
options->moduleInfo = ffModuleInfo;
|
||||
options->moduleInfo = ffThemeModuleInfo;
|
||||
ffOptionInitModuleArg(&options->moduleArgs, "");
|
||||
}
|
||||
|
||||
|
||||
@@ -7,3 +7,5 @@
|
||||
void ffPrintTheme(FFThemeOptions* options);
|
||||
void ffInitThemeOptions(FFThemeOptions* options);
|
||||
void ffDestroyThemeOptions(FFThemeOptions* options);
|
||||
|
||||
extern FFModuleBaseInfo ffThemeModuleInfo;
|
||||
|
||||
Reference in New Issue
Block a user