diff options
author | José Bollo <jose.bollo@iot.bzh> | 2016-08-29 23:31:47 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2016-08-29 23:31:47 +0200 |
commit | 540ece2baf7de59565b42d427e206769ec4da56a (patch) | |
tree | 211d4030ea22dbf32fffe6fd6f9619c63d74242c /src/afb-hsrv.h | |
parent | 399d235e33b55922f15570f0ee0076529c518efc (diff) |
afb-hsrv: expose locale root for alias
This prepare further use of locale_root
here and ther in the code.
Change-Id: I473e8de79db1cbd69b507f6e0e70733f0f02badc
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-hsrv.h')
-rw-r--r-- | src/afb-hsrv.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/afb-hsrv.h b/src/afb-hsrv.h index 913de80c..0f469a89 100644 --- a/src/afb-hsrv.h +++ b/src/afb-hsrv.h @@ -20,6 +20,7 @@ struct afb_hsrv; struct afb_hreq; +struct locale_root; extern struct afb_hsrv *afb_hsrv_create(); extern void afb_hsrv_put(struct afb_hsrv *hsrv); @@ -28,5 +29,6 @@ extern void afb_hsrv_stop(struct afb_hsrv *hsrv); extern int afb_hsrv_start(struct afb_hsrv *hsrv, uint16_t port, unsigned int connection_timeout); extern int afb_hsrv_set_cache_timeout(struct afb_hsrv *hsrv, int duration); extern int afb_hsrv_add_alias(struct afb_hsrv *hsrv, const char *prefix, const char *alias, int priority, int relax); +extern int afb_hsrv_add_alias_root(struct afb_hsrv *hsrv, const char *prefix, struct locale_root *root, int priority, int relax); extern int afb_hsrv_add_handler(struct afb_hsrv *hsrv, const char *prefix, int (*handler) (struct afb_hreq *, void *), void *data, int priority); |