mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-08 06:00:08 +01:00
Modules: add init and destroy option callbacks to module info
This commit is contained in:
@@ -94,6 +94,8 @@ void ffGenerateWeatherJsonResult(FFWeatherOptions* options, yyjson_mut_doc* doc,
|
||||
static FFModuleBaseInfo ffModuleInfo = {
|
||||
.name = FF_WEATHER_MODULE_NAME,
|
||||
.description = "Print weather information",
|
||||
.initOptions = (void*) ffInitWeatherOptions,
|
||||
.destroyOptions = (void*) ffDestroyWeatherOptions,
|
||||
.parseJsonObject = (void*) ffParseWeatherJsonObject,
|
||||
.printModule = (void*) ffPrintWeather,
|
||||
.generateJsonResult = (void*) ffGenerateWeatherJsonResult,
|
||||
|
||||
Reference in New Issue
Block a user