From 212284c792c86fca52e0172a4d097abc5bb45252 Mon Sep 17 00:00:00 2001 From: grunfink Date: Mon, 13 Oct 2025 13:07:06 +0200 Subject: xs_http.h: new file. --- snac.h | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'snac.h') diff --git a/snac.h b/snac.h index 245f477..038aa40 100644 --- a/snac.h +++ b/snac.h @@ -44,7 +44,7 @@ extern int dbglevel; int mkdirx(const char *pathname); -int valid_status(int status); +#define valid_status(status) xs_http_valid_status(status) xs_str *tid(int offset); double ftime(void); @@ -464,14 +464,6 @@ void import_list_csv(snac *user, const char *fn); void import_csv(snac *user); int parse_port(const char *url, const char **errstr); -typedef enum { -#define HTTP_STATUS(code, name, text) HTTP_STATUS_ ## name = code, -#include "http_codes.h" -#undef HTTP_STATUS -} http_status; - -const char *http_status_text(int status); - typedef struct { double timestamp; char *text; -- cgit v1.2.3