Lines Matching refs:vhost

3403 	struct evhttp *vhost;  in evhttp_find_alias()  local
3416 TAILQ_FOREACH(vhost, &http->virtualhosts, next_vhost) { in evhttp_find_alias()
3417 if (evhttp_find_alias(vhost, outhttp, hostname)) in evhttp_find_alias()
3439 struct evhttp *vhost; in evhttp_find_vhost() local
3448 TAILQ_FOREACH(vhost, &http->virtualhosts, next_vhost) { in evhttp_find_vhost()
3449 if (prefix_suffix_match(vhost->vhost_pattern, in evhttp_find_vhost()
3451 http = vhost; in evhttp_find_vhost()
3736 struct evhttp* vhost; in evhttp_free() local
3759 while ((vhost = TAILQ_FIRST(&http->virtualhosts)) != NULL) { in evhttp_free()
3760 TAILQ_REMOVE(&http->virtualhosts, vhost, next_vhost); in evhttp_free()
3762 evhttp_free(vhost); in evhttp_free()
3779 struct evhttp* vhost) in evhttp_add_virtual_host() argument
3782 if (vhost->vhost_pattern != NULL || in evhttp_add_virtual_host()
3783 TAILQ_FIRST(&vhost->sockets) != NULL) in evhttp_add_virtual_host()
3786 vhost->vhost_pattern = mm_strdup(pattern); in evhttp_add_virtual_host()
3787 if (vhost->vhost_pattern == NULL) in evhttp_add_virtual_host()
3790 TAILQ_INSERT_TAIL(&http->virtualhosts, vhost, next_vhost); in evhttp_add_virtual_host()
3796 evhttp_remove_virtual_host(struct evhttp* http, struct evhttp* vhost) in evhttp_remove_virtual_host() argument
3798 if (vhost->vhost_pattern == NULL) in evhttp_remove_virtual_host()
3801 TAILQ_REMOVE(&http->virtualhosts, vhost, next_vhost); in evhttp_remove_virtual_host()
3803 mm_free(vhost->vhost_pattern); in evhttp_remove_virtual_host()
3804 vhost->vhost_pattern = NULL; in evhttp_remove_virtual_host()