aboutsummaryrefslogtreecommitdiffstats
path: root/src/afb-hreq.h
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2016-04-07 15:22:59 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2016-04-07 15:22:59 +0200
commit94014f46d4751492133f65b12f1dea1cfa36d021 (patch)
tree07ecd1b3825071c14e1b55c3beca044e8872a848 /src/afb-hreq.h
parent8449480d29d2e03d9094ddce82557b251deb6567 (diff)
more simplification
Change-Id: Iab4a9c38054a3e85542893735916aa11031dc4ff Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-hreq.h')
-rw-r--r--src/afb-hreq.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/afb-hreq.h b/src/afb-hreq.h
index 752d06ce..8fbc5634 100644
--- a/src/afb-hreq.h
+++ b/src/afb-hreq.h
@@ -21,7 +21,7 @@ struct AFB_clientCtx;
struct afb_hreq {
const char *cacheTimeout;
struct MHD_Connection *connection;
- enum afb_method method;
+ int method;
const char *version;
const char *url;
size_t lenurl;
@@ -60,3 +60,10 @@ extern int afb_hreq_post_add(struct afb_hreq *hreq, const char *name, const char
extern struct afb_req afb_hreq_to_req(struct afb_hreq *hreq);
extern struct AFB_clientCtx *afb_hreq_context(struct afb_hreq *hreq);
+
+extern int afb_hreq_one_page_api_redirect(struct afb_hreq *hreq, void *data);
+
+extern int afb_hreq_websocket_switch(struct afb_hreq *hreq, void *data);
+
+extern int afb_hreq_rest_api(struct afb_hreq *hreq, void *data);
+