Rename resp.{c,h} to data.{c,h}

The methods in data.h only deal with the actual response data, not
the request handling itself, which has been formalized a bit more
in http.h. To avoid confusion, we rename it to data.h.

Signed-off-by: Laslo Hunhold <dev@frign.de>
This commit is contained in:
Laslo Hunhold 2020-08-28 23:29:54 +02:00
parent 9a95d9183c
commit a94b15814c
No known key found for this signature in database
GPG key ID: 69576BD24CFCB980
5 changed files with 7 additions and 8 deletions

View file

@ -4,15 +4,15 @@
include config.mk
COMPONENTS = util sock http resp
COMPONENTS = data http sock util
all: quark
util.o: util.c util.h config.mk
sock.o: sock.c sock.h util.h config.mk
http.o: http.c http.h util.h http.h resp.h config.h config.mk
resp.o: resp.c resp.h util.h http.h config.mk
data.o: data.c data.h util.h http.h config.mk
http.o: http.c http.h util.h http.h data.h config.h config.mk
main.o: main.c util.h sock.h http.h arg.h config.h config.mk
sock.o: sock.c sock.h util.h config.mk
util.o: util.c util.h config.mk
quark: $(COMPONENTS:=.o) $(COMPONENTS:=.h) main.o config.mk
$(CC) -o $@ $(CPPFLAGS) $(CFLAGS) $(COMPONENTS:=.o) main.o $(LDFLAGS)

View file

@ -8,7 +8,7 @@
#include <unistd.h>
#include "http.h"
#include "resp.h"
#include "data.h"
#include "util.h"
static int

View file

1
http.c
View file

@ -18,7 +18,6 @@
#include "config.h"
#include "http.h"
#include "resp.h"
#include "util.h"
const char *req_field_str[] = {

2
main.c
View file

@ -16,7 +16,7 @@
#include <time.h>
#include <unistd.h>
#include "resp.h"
#include "data.h"
#include "http.h"
#include "sock.h"
#include "util.h"