mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-07 21:50:08 +01:00
Modules: export module info
This commit is contained in:
@@ -128,7 +128,7 @@ void ffGenerateVulkanJsonResult(FF_MAYBE_UNUSED FFVulkanOptions* options, yyjson
|
||||
}
|
||||
}
|
||||
|
||||
static FFModuleBaseInfo ffModuleInfo = {
|
||||
FFModuleBaseInfo ffVulkanModuleInfo = {
|
||||
.name = FF_VULKAN_MODULE_NAME,
|
||||
.description = "Print highest Vulkan version supported by the GPU",
|
||||
.initOptions = (void*) ffInitVulkanOptions,
|
||||
@@ -147,7 +147,7 @@ static FFModuleBaseInfo ffModuleInfo = {
|
||||
|
||||
void ffInitVulkanOptions(FFVulkanOptions* options)
|
||||
{
|
||||
options->moduleInfo = ffModuleInfo;
|
||||
options->moduleInfo = ffVulkanModuleInfo;
|
||||
ffOptionInitModuleArg(&options->moduleArgs, "");
|
||||
}
|
||||
|
||||
|
||||
@@ -7,3 +7,5 @@
|
||||
void ffPrintVulkan(FFVulkanOptions* options);
|
||||
void ffInitVulkanOptions(FFVulkanOptions* options);
|
||||
void ffDestroyVulkanOptions(FFVulkanOptions* options);
|
||||
|
||||
extern FFModuleBaseInfo ffVulkanModuleInfo;
|
||||
|
||||
Reference in New Issue
Block a user