diff options
author | Jose Bollo <jose.bollo@iot.bzh> | 2019-02-21 14:39:59 +0100 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2019-03-22 12:21:54 +0100 |
commit | 0e2b5f5b7fa3a09abf61c8253efce7c7f2b4c444 (patch) | |
tree | 85f54ba7b0301245553e86704d28dfccaa031013 /src/afb-hsrv.h | |
parent | f2f086fa99e47ca8b3001831ea3548f8758e1222 (diff) |
Allow to remove libmicrohttpd (HTTP server)
This allows to remove the dependency to libmicrohttpd.
At the end, this will allow either to replace it with
an other HTTP library or to fully remove the HTTP server.
It also makes a tiny improvement of the conditionnal compilation.
Change-Id: I24106659af04453b6693f2cda0939a601391202f
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-hsrv.h')
-rw-r--r-- | src/afb-hsrv.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/afb-hsrv.h b/src/afb-hsrv.h index 7d496bc6..c99d0264 100644 --- a/src/afb-hsrv.h +++ b/src/afb-hsrv.h @@ -18,6 +18,8 @@ #pragma once +#if WITH_LIBMICROHTTPD + struct afb_hsrv; struct afb_hreq; struct locale_root; @@ -35,3 +37,5 @@ extern int afb_hsrv_add_interface(struct afb_hsrv *hsrv, const char *uri); extern int afb_hsrv_add_interface_tcp(struct afb_hsrv *hsrv, const char *itf, uint16_t port); extern void afb_hsrv_run(struct afb_hsrv *hsrv); + +#endif |