summaryrefslogtreecommitdiffstats
path: root/pacredir.c
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2013-11-14 21:47:15 +0100
committerGravatar Christian Hesse <mail@eworm.de>2013-11-14 21:47:15 +0100
commit86dea85287ab34cf67e5b69a8d1af53c5fbc325b (patch)
treeb7e10645fded8ba0d8c4386c5af8e05c1f999c35 /pacredir.c
parentf14c35065b7d1d181c05f22b698fa14c78c1086b (diff)
downloadpaccache-86dea85287ab34cf67e5b69a8d1af53c5fbc325b.tar.gz
paccache-86dea85287ab34cf67e5b69a8d1af53c5fbc325b.tar.zst
introduce pacredir.h
Diffstat (limited to 'pacredir.c')
-rw-r--r--pacredir.c44
1 files changed, 2 insertions, 42 deletions
diff --git a/pacredir.c b/pacredir.c
index d382a75..62e3b04 100644
--- a/pacredir.c
+++ b/pacredir.c
@@ -32,48 +32,8 @@
/* compile time configuration */
#include "config.h"
-/* services */
-struct services {
- /* true if host/service is online */
- uint8_t online;
- /* unix timestamp of last bad request */
- __time_t bad;
-};
-
-/* hosts */
-struct hosts {
- /* host name */
- char * host;
- /* online status and bad time for services */
- struct services pacserve;
- struct services pacdbserve;
- /* pointer to next struct element */
- struct hosts * next;
-};
-
-/* ignore interfaces */
-struct ignore_interfaces {
- /* interface name */
- char * interface;
- /* pointer to next struct element */
- struct ignore_interfaces * next;
-};
-
-/* request */
-struct request {
- /* host name */
- const char * host;
- /* port */
- uint16_t port;
- /* pointer to bad */
- __time_t * bad;
- /* url */
- char * url;
- /* HTTP status code */
- long http_code;
- /* last modified timestamp */
- long last_modified;
-};
+/* define structs and functions */
+#include "pacredir.h"
/* global variables */
struct hosts * hosts = NULL;