mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-09 06:30:10 +01:00
Modules: return bool to indicate whether the detection is succeeded
This commit is contained in:
@@ -2,10 +2,11 @@
|
||||
#include "logo/logo.h"
|
||||
#include "modules/break/break.h"
|
||||
|
||||
void ffPrintBreak(FF_MAYBE_UNUSED FFBreakOptions* options)
|
||||
bool ffPrintBreak(FF_MAYBE_UNUSED FFBreakOptions* options)
|
||||
{
|
||||
ffLogoPrintLine();
|
||||
putchar('\n');
|
||||
return true;
|
||||
}
|
||||
|
||||
void ffParseBreakJsonObject(FF_MAYBE_UNUSED FFBreakOptions* options, FF_MAYBE_UNUSED yyjson_val* module)
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
#define FF_BREAK_MODULE_NAME "Break"
|
||||
|
||||
void ffPrintBreak(FFBreakOptions* options);
|
||||
bool ffPrintBreak(FFBreakOptions* options);
|
||||
void ffInitBreakOptions(FFBreakOptions* options);
|
||||
void ffDestroyBreakOptions(FFBreakOptions* options);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user