Networking: move files to a sub folder

This commit is contained in:
李通洲
2025-03-15 23:40:40 +08:00
parent 244625d26a
commit 99415a3841
8 changed files with 20 additions and 21 deletions
@@ -1,6 +1,6 @@
#include "fastfetch.h"
#include "common/library.h"
#include "common/networking.h"
#include "common/networking/networking.h"
#include "util/stringUtils.h"
#include "util/debug.h"
@@ -1,5 +1,5 @@
#include "fastfetch.h"
#include "common/networking.h"
#include "common/networking/networking.h"
#include "common/time.h"
#include "common/library.h"
#include "util/stringUtils.h"
@@ -331,9 +331,8 @@ const char* ffNetworkingRecvHttpResponse(FFNetworkingState* state, FFstrbuf* buf
char* headerEnd = NULL;
do {
size_t availSpace = ffStrbufGetFree(buffer);
FF_DEBUG("Data reception loop #%d, current buffer size: %u, available space: %zu",
++recvCount, buffer->length, availSpace);
FF_DEBUG("Data reception loop #%d, current buffer size: %u, available space: %u",
++recvCount, buffer->length, ffStrbufGetFree(buffer));
ssize_t received = recv(state->sockfd, buffer->chars + buffer->length, ffStrbufGetFree(buffer), 0);
@@ -3,7 +3,7 @@
//Must be included after <mswsock.h>
#include "fastfetch.h"
#include "common/networking.h"
#include "common/networking/networking.h"
#include "util/stringUtils.h"
#include "util/debug.h"
@@ -225,9 +225,8 @@ const char* ffNetworkingRecvHttpResponse(FFNetworkingState* state, FFstrbuf* buf
char* headerEnd = NULL;
do {
size_t availSpace = ffStrbufGetFree(buffer);
FF_DEBUG("Data reception loop #%d, current buffer size: %u, available space: %zu",
++recvCount, buffer->length, availSpace);
FF_DEBUG("Data reception loop #%d, current buffer size: %u, available space: %u",
++recvCount, buffer->length, ffStrbufGetFree(buffer));
ssize_t received = recv(state->sockfd, buffer->chars + buffer->length, (int)ffStrbufGetFree(buffer), 0);
+1 -1
View File
@@ -1,5 +1,5 @@
#include "publicip.h"
#include "common/networking.h"
#include "common/networking/networking.h"
#define FF_UNITIALIZED ((const char*)(uintptr_t) -1)
static FFNetworkingState states[2];
+1
View File
@@ -1,4 +1,5 @@
#include "weather.h"
#include "common/networking/networking.h"
#define FF_UNITIALIZED ((const char*)(uintptr_t) -1)
static FFNetworkingState state;
+1 -1
View File
@@ -1,6 +1,6 @@
#pragma once
#include "common/networking.h"
#include "fastfetch.h"
void ffPrepareWeather(FFWeatherOptions* options);
const char* ffDetectWeather(FFWeatherOptions* options, FFstrbuf* result);