mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-30 00:37:23 +01:00
Modules: export module info
This commit is contained in:
@@ -113,7 +113,7 @@ void ffGenerateMemoryJsonResult(FF_MAYBE_UNUSED FFMemoryOptions* options, yyjson
|
||||
yyjson_mut_obj_add_uint(doc, obj, "used", storage.bytesUsed);
|
||||
}
|
||||
|
||||
static FFModuleBaseInfo ffModuleInfo = {
|
||||
FFModuleBaseInfo ffMemoryModuleInfo = {
|
||||
.name = FF_MEMORY_MODULE_NAME,
|
||||
.description = "Print system memory usage info",
|
||||
.initOptions = (void*) ffInitMemoryOptions,
|
||||
@@ -132,7 +132,7 @@ static FFModuleBaseInfo ffModuleInfo = {
|
||||
|
||||
void ffInitMemoryOptions(FFMemoryOptions* options)
|
||||
{
|
||||
options->moduleInfo = ffModuleInfo;
|
||||
options->moduleInfo = ffMemoryModuleInfo;
|
||||
ffOptionInitModuleArg(&options->moduleArgs, "");
|
||||
options->percent = (FFPercentageModuleConfig) { 50, 80, 0 };
|
||||
}
|
||||
|
||||
@@ -7,3 +7,5 @@
|
||||
void ffPrintMemory(FFMemoryOptions* options);
|
||||
void ffInitMemoryOptions(FFMemoryOptions* options);
|
||||
void ffDestroyMemoryOptions(FFMemoryOptions* options);
|
||||
|
||||
extern FFModuleBaseInfo ffMemoryModuleInfo;
|
||||
|
||||
Reference in New Issue
Block a user