diff options
| author | grunfink <grunfink@comam.es> | 2025-10-13 13:07:06 +0200 |
|---|---|---|
| committer | grunfink <grunfink@comam.es> | 2025-10-13 13:07:06 +0200 |
| commit | 212284c792c86fca52e0172a4d097abc5bb45252 (patch) | |
| tree | 4fe9ebc3859eec9edb46388a606cb6d54898c64a /snac.h | |
| parent | 4f0b97ecf6ee157c56aa4fba781a8b6b5ea36174 (diff) | |
xs_http.h: new file.
Diffstat (limited to 'snac.h')
| -rw-r--r-- | snac.h | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -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; |