move the file fetcher sources into a single directory

This commit is contained in:
Vincent Sanders 2020-07-03 18:07:21 +01:00
parent 1697118e22
commit 0908925ca6
8 changed files with 23 additions and 13 deletions

View File

@ -3,7 +3,6 @@
S_CONTENT := \
content.c \
content_factory.c \
dirlist.c \
fetch.c \
hlcache.c \
llcache.c \
@ -18,10 +17,12 @@ ifeq ($(NETSURF_FS_BACKING_STORE),YES)
endif
# Content fetchers sources
# Content fetcher sources
include content/fetchers/Makefile
# Content handlers
S_FETCHERS := $(addprefix content/,$(S_FETCHERS))
# Content handler sources
include content/handlers/Makefile
S_CONTENT := $(addprefix content/,$(S_CONTENT))

View File

@ -56,7 +56,7 @@
#include "content/fetchers/about.h"
#include "content/fetchers/curl.h"
#include "content/fetchers/data.h"
#include "content/fetchers/file.h"
#include "content/fetchers/file/file.h"
#include "javascript/fetcher.h"
#include "content/urldb.h"

View File

@ -1,10 +1,15 @@
# Content fetchers sources
S_FETCHERS_YES := data.c file.c about.c resource.c
S_FETCHERS_YES := data.c about.c resource.c
S_FETCHERS_NO :=
S_FETCHERS_$(NETSURF_USE_CURL) += curl.c
S_FETCHERS := $(addprefix content/fetchers/,$(S_FETCHERS_YES))
S_FETCHERS := $(addprefix fetchers/,$(S_FETCHERS_YES))
# File fetcher
include content/fetchers/file/Makefile
S_FETCHERS += $(addprefix fetchers/file/,$(S_FETCHER_FILE))
# The following files depend on the testament
content/fetchers/about.c: testament $(OBJROOT)/testament.h

View File

@ -0,0 +1,3 @@
# File fetcher sources
S_FETCHER_FILE := dirlist.c file.c

View File

@ -32,7 +32,7 @@
#include "netsurf/types.h"
#include "netsurf/plot_style.h"
#include "content/dirlist.h"
#include "dirlist.h"
#include "desktop/system_colour.h"
static int dirlist_filesize_calculate(unsigned long *bytesize);

View File

@ -16,14 +16,15 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/** \file
* Generate HTML content for displaying directory listings (interface).
/**
* \file
* interface to generate HTML content for displaying directory listings.
*
* These functions should in general be called via the content interface.
*/
#ifndef _NETSURF_CONTENT_DIRLIST_H_
#define _NETSURF_CONTENT_DIRLIST_H_
#ifndef NETSURF_CONTENT_DIRLIST_H_
#define NETSURF_CONTENT_DIRLIST_H_
#include <stdbool.h>

View File

@ -57,10 +57,10 @@
#include "netsurf/fetch.h"
#include "desktop/gui_internal.h"
#include "content/dirlist.h"
#include "content/fetch.h"
#include "content/fetchers.h"
#include "content/fetchers/file.h"
#include "dirlist.h"
#include "file.h"
/* Maximum size of read buffer */
#define FETCH_FILE_MAX_BUF_SIZE (1024 * 1024)