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:
parent
9a95d9183c
commit
a94b15814c
5 changed files with 7 additions and 8 deletions
10
Makefile
10
Makefile
|
@ -4,15 +4,15 @@
|
||||||
|
|
||||||
include config.mk
|
include config.mk
|
||||||
|
|
||||||
COMPONENTS = util sock http resp
|
COMPONENTS = data http sock util
|
||||||
|
|
||||||
all: quark
|
all: quark
|
||||||
|
|
||||||
util.o: util.c util.h config.mk
|
data.o: data.c data.h util.h http.h config.mk
|
||||||
sock.o: sock.c sock.h util.h config.mk
|
http.o: http.c http.h util.h http.h data.h config.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
|
|
||||||
main.o: main.c util.h sock.h http.h arg.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
|
quark: $(COMPONENTS:=.o) $(COMPONENTS:=.h) main.o config.mk
|
||||||
$(CC) -o $@ $(CPPFLAGS) $(CFLAGS) $(COMPONENTS:=.o) main.o $(LDFLAGS)
|
$(CC) -o $@ $(CPPFLAGS) $(CFLAGS) $(COMPONENTS:=.o) main.o $(LDFLAGS)
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#include "http.h"
|
#include "http.h"
|
||||||
#include "resp.h"
|
#include "data.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
||||||
static int
|
static int
|
1
http.c
1
http.c
|
@ -18,7 +18,6 @@
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "http.h"
|
#include "http.h"
|
||||||
#include "resp.h"
|
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
||||||
const char *req_field_str[] = {
|
const char *req_field_str[] = {
|
||||||
|
|
2
main.c
2
main.c
|
@ -16,7 +16,7 @@
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#include "resp.h"
|
#include "data.h"
|
||||||
#include "http.h"
|
#include "http.h"
|
||||||
#include "sock.h"
|
#include "sock.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
Loading…
Reference in a new issue