Refactor: move processing functions to own header

This commit is contained in:
Linus Dierheimer
2022-07-25 14:45:41 +02:00
parent 4d34091573
commit 4c7b7e4a4d
7 changed files with 16 additions and 5 deletions
+10
View File
@@ -0,0 +1,10 @@
#pragma once
#ifndef FF_INCLUDED_common_processing
#define FF_INCLUDED_common_processing
#include "util/FFstrbuf.h"
void ffProcessAppendStdOut(FFstrbuf* buffer, char* const argv[]);
#endif
+2
View File
@@ -23,6 +23,8 @@ typedef union FFvariant
};
} FFvariant;
#define FF_VARIANT_NULL ((FFvariant){.strValue = NULL})
FFvariant ffSettingsGetDConf(FFinstance* instance, const char* key, FFvarianttype type);
FFvariant ffSettingsGetGSettings(FFinstance* instance, const char* schemaName, const char* path, const char* key, FFvarianttype type);
FFvariant ffSettingsGet(FFinstance* instance, const char* dconfKey, const char* gsettingsSchemaName, const char* gsettingsPath, const char* gsettingsKey, FFvarianttype type);
+1
View File
@@ -2,6 +2,7 @@
#include "common/io.h"
#include "common/properties.h"
#include "common/parsing.h"
#include "common/processing.h"
#include <stdlib.h>
#include <ctype.h>
+1
View File
@@ -1,6 +1,7 @@
#include "fastfetch.h"
#include "common/io.h"
#include "common/parsing.h"
#include "common/processing.h"
#include <ctype.h>
#include <string.h>
-5
View File
@@ -310,8 +310,6 @@ typedef struct FFDateTimeResult
FFstrbuf secondPretty; //37
} FFDateTimeResult;
#define FF_VARIANT_NULL ((FFvariant){.strValue = NULL})
//////////////////////
// Common functions //
//////////////////////
@@ -326,9 +324,6 @@ void ffListFeatures();
//common/threading.c
void ffStartDetectionThreads(FFinstance* instance);
//common/processing.c
void ffProcessAppendStdOut(FFstrbuf* buffer, char* const argv[]);
//common/networking.c
void ffNetworkingGetHttp(const char* host, const char* path, uint32_t timeout, FFstrbuf* buffer);
+1
View File
@@ -3,6 +3,7 @@
#include "common/properties.h"
#include "common/printing.h"
#include "common/settings.h"
#include "common/processing.h"
#include <stdlib.h>
#include <string.h>
+1
View File
@@ -3,6 +3,7 @@
#include "common/printing.h"
#include "common/font.h"
#include "common/settings.h"
#include "common/processing.h"
#define FF_TERMFONT_MODULE_NAME "Terminal Font"
#define FF_TERMFONT_NUM_FORMAT_ARGS 5