mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-28 07:44:06 +01:00
Modules: add init and destroy option callbacks to module info
This commit is contained in:
@@ -188,6 +188,8 @@ void ffGenerateUsersJsonResult(FFUsersOptions* options, yyjson_mut_doc* doc, yyj
|
||||
static FFModuleBaseInfo ffModuleInfo = {
|
||||
.name = FF_USERS_MODULE_NAME,
|
||||
.description = "Print users currently logged in",
|
||||
.initOptions = (void*) ffInitUsersOptions,
|
||||
.destroyOptions = (void*) ffDestroyUsersOptions,
|
||||
.parseJsonObject = (void*) ffParseUsersJsonObject,
|
||||
.printModule = (void*) ffPrintUsers,
|
||||
.generateJsonResult = (void*) ffGenerateUsersJsonResult,
|
||||
|
||||
Reference in New Issue
Block a user