X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-hsrv.h;h=c22f57ee69089161164cc0e53d4d896df2399cfe;hb=fcef933b69ccc363ad10d9f7308f02c5dc474ff6;hp=da4fe09a88402ccd12e7c69113fe1ac1ef63ea55;hpb=f113d2b31333538f5784de5ee5f02bc19cc603e4;p=src%2Fapp-framework-binder.git diff --git a/src/afb-hsrv.h b/src/afb-hsrv.h index da4fe09a..c22f57ee 100644 --- a/src/afb-hsrv.h +++ b/src/afb-hsrv.h @@ -16,5 +16,16 @@ limitations under the License. */ -int afb_hsrv_start(AFB_session * session); -void afb_hsrv_stop(AFB_session * session); +struct afb_hsrv; +struct afb_hreq; + +extern struct afb_hsrv *afb_hsrv_create(); +extern void afb_hsrv_put(struct afb_hsrv *hsrv); + + +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); +extern int afb_hsrv_add_handler(struct afb_hsrv *hsrv, const char *prefix, int (*handler) (struct afb_hreq *, void *), void *data, int priority); +