diff options
| author | 2025-10-13 13:07:06 +0200 | |
|---|---|---|
| committer | 2025-10-13 13:07:06 +0200 | |
| commit | 212284c792c86fca52e0172a4d097abc5bb45252 (patch) | |
| tree | 4fe9ebc3859eec9edb46388a606cb6d54898c64a /snac.h | |
| parent | Updated RELEASE_NOTES. (diff) | |
| download | penes-snac2-212284c792c86fca52e0172a4d097abc5bb45252.tar.gz penes-snac2-212284c792c86fca52e0172a4d097abc5bb45252.tar.xz penes-snac2-212284c792c86fca52e0172a4d097abc5bb45252.zip | |
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; | |||
| 44 | 44 | ||
| 45 | int mkdirx(const char *pathname); | 45 | int mkdirx(const char *pathname); |
| 46 | 46 | ||
| 47 | int valid_status(int status); | 47 | #define valid_status(status) xs_http_valid_status(status) |
| 48 | xs_str *tid(int offset); | 48 | xs_str *tid(int offset); |
| 49 | double ftime(void); | 49 | double ftime(void); |
| 50 | 50 | ||
| @@ -464,14 +464,6 @@ void import_list_csv(snac *user, const char *fn); | |||
| 464 | void import_csv(snac *user); | 464 | void import_csv(snac *user); |
| 465 | int parse_port(const char *url, const char **errstr); | 465 | int parse_port(const char *url, const char **errstr); |
| 466 | 466 | ||
| 467 | typedef enum { | ||
| 468 | #define HTTP_STATUS(code, name, text) HTTP_STATUS_ ## name = code, | ||
| 469 | #include "http_codes.h" | ||
| 470 | #undef HTTP_STATUS | ||
| 471 | } http_status; | ||
| 472 | |||
| 473 | const char *http_status_text(int status); | ||
| 474 | |||
| 475 | typedef struct { | 467 | typedef struct { |
| 476 | double timestamp; | 468 | double timestamp; |
| 477 | char *text; | 469 | char *text; |