move about fetcher into its own directory

This commit is contained in:
Vincent Sanders 2020-09-20 10:54:48 +01:00
parent 7997182cc0
commit c74509cdf5
5 changed files with 15 additions and 8 deletions

View File

@ -53,7 +53,7 @@
#include "content/fetch.h"
#include "content/fetchers.h"
#include "content/fetchers/resource.h"
#include "content/fetchers/about.h"
#include "content/fetchers/about/about.h"
#include "content/fetchers/curl.h"
#include "content/fetchers/data.h"
#include "content/fetchers/file/file.h"

View File

@ -1,15 +1,15 @@
# Content fetchers sources
S_FETCHERS_YES := data.c about.c resource.c
S_FETCHERS_YES := data.c resource.c
S_FETCHERS_NO :=
S_FETCHERS_$(NETSURF_USE_CURL) += curl.c
S_FETCHERS := $(addprefix fetchers/,$(S_FETCHERS_YES))
# File fetcher
# about fetcher
include content/fetchers/about/Makefile
S_FETCHERS += $(addprefix fetchers/about/,$(S_FETCHER_ABOUT))
# 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,6 @@
# about fetcher sources
S_FETCHER_ABOUT := about.c
# The following files depend on the testament
content/fetchers/about/about.c: testament $(OBJROOT)/testament.h

View File

@ -45,11 +45,12 @@
#include "content/fetch.h"
#include "content/fetchers.h"
#include "content/fetchers/about.h"
#include "image/image_cache.h"
#include "desktop/system_colour.h"
#include "about.h"
struct fetch_about_context;
typedef bool (*fetch_about_handler)(struct fetch_about_context *);