mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-31 10:02:49 +01:00
Modules: export module info
This commit is contained in:
@@ -414,7 +414,7 @@ void ffGenerateGPUJsonResult(FFGPUOptions* options, yyjson_mut_doc* doc, yyjson_
|
||||
}
|
||||
}
|
||||
|
||||
static FFModuleBaseInfo ffModuleInfo = {
|
||||
FFModuleBaseInfo ffGPUModuleInfo = {
|
||||
.name = FF_GPU_MODULE_NAME,
|
||||
.description = "Print GPU names, graphic memory size, type, etc",
|
||||
.initOptions = (void*) ffInitGPUOptions,
|
||||
@@ -449,7 +449,7 @@ static FFModuleBaseInfo ffModuleInfo = {
|
||||
|
||||
void ffInitGPUOptions(FFGPUOptions* options)
|
||||
{
|
||||
options->moduleInfo = ffModuleInfo;
|
||||
options->moduleInfo = ffGPUModuleInfo;
|
||||
ffOptionInitModuleArg(&options->moduleArgs, "");
|
||||
|
||||
options->driverSpecific = false;
|
||||
|
||||
@@ -7,3 +7,5 @@
|
||||
void ffPrintGPU(FFGPUOptions* options);
|
||||
void ffInitGPUOptions(FFGPUOptions* options);
|
||||
void ffDestroyGPUOptions(FFGPUOptions* options);
|
||||
|
||||
extern FFModuleBaseInfo ffGPUModuleInfo;
|
||||
|
||||
Reference in New Issue
Block a user