From ac96cfc7485d4c457d69e297eaaf8fb2d6b91596 Mon Sep 17 00:00:00 2001 From: Linus Dierheimer Date: Mon, 25 Jul 2022 11:24:50 +0200 Subject: [PATCH] Refactor: move FFInitState to settings.c --- src/common/settings.c | 7 +++++++ src/fastfetch.h | 7 ------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/common/settings.c b/src/common/settings.c index a4c652cf2..0beb97bca 100644 --- a/src/common/settings.c +++ b/src/common/settings.c @@ -4,6 +4,13 @@ #include #include +typedef enum FFInitState +{ + FF_INITSTATE_UNINITIALIZED = 0, + FF_INITSTATE_SUCCESSFUL = 1, + FF_INITSTATE_FAILED = 2 +} FFInitState; + #define FF_LIBRARY_DATA_LOAD_INIT(dataObject, userLibraryName, ...) \ static dataObject data; \ static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; \ diff --git a/src/fastfetch.h b/src/fastfetch.h index e7c35342c..2606d337e 100644 --- a/src/fastfetch.h +++ b/src/fastfetch.h @@ -378,13 +378,6 @@ typedef struct FFpropquery FFstrbuf* buffer; } FFpropquery; -typedef enum FFInitState -{ - FF_INITSTATE_UNINITIALIZED = 0, - FF_INITSTATE_SUCCESSFUL = 1, - FF_INITSTATE_FAILED = 2 -} FFInitState; - ////////////////////// // Common functions // //////////////////////