kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit a6e662a8055ce69728274ae6e531e7e2529206fa
parent 7f820c96e8f833906032cd38f9a347a02da97c0e
Author: Joris Vink <joris@coders.se>
Date:   Mon, 23 Jul 2018 06:14:17 +0200

Add KORE_HTTP_STATE() helper macro.

defines as KORE_HTTP_STATE(f) (#f, f) so we can get a literal representing
the name of the state function which makes debugging a little easier.

Diffstat:
include/kore/http.h | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/include/kore/http.h b/include/kore/http.h @@ -263,6 +263,8 @@ struct http_request { TAILQ_ENTRY(http_request) olist; }; +#define KORE_HTTP_STATE(f) { #f, f } + struct http_state { const char *name; int (*cb)(struct http_request *);