Lines Matching refs:vhost
3348 struct evhttp *vhost; in evhttp_find_alias() local
3361 TAILQ_FOREACH(vhost, &http->virtualhosts, next_vhost) { in evhttp_find_alias()
3362 if (evhttp_find_alias(vhost, outhttp, hostname)) in evhttp_find_alias()
3384 struct evhttp *vhost; in evhttp_find_vhost() local
3393 TAILQ_FOREACH(vhost, &http->virtualhosts, next_vhost) { in evhttp_find_vhost()
3394 if (prefix_suffix_match(vhost->vhost_pattern, in evhttp_find_vhost()
3396 http = vhost; in evhttp_find_vhost()
3676 struct evhttp* vhost; in evhttp_free() local
3699 while ((vhost = TAILQ_FIRST(&http->virtualhosts)) != NULL) { in evhttp_free()
3700 TAILQ_REMOVE(&http->virtualhosts, vhost, next_vhost); in evhttp_free()
3702 evhttp_free(vhost); in evhttp_free()
3719 struct evhttp* vhost) in evhttp_add_virtual_host() argument
3722 if (vhost->vhost_pattern != NULL || in evhttp_add_virtual_host()
3723 TAILQ_FIRST(&vhost->sockets) != NULL) in evhttp_add_virtual_host()
3726 vhost->vhost_pattern = mm_strdup(pattern); in evhttp_add_virtual_host()
3727 if (vhost->vhost_pattern == NULL) in evhttp_add_virtual_host()
3730 TAILQ_INSERT_TAIL(&http->virtualhosts, vhost, next_vhost); in evhttp_add_virtual_host()
3736 evhttp_remove_virtual_host(struct evhttp* http, struct evhttp* vhost) in evhttp_remove_virtual_host() argument
3738 if (vhost->vhost_pattern == NULL) in evhttp_remove_virtual_host()
3741 TAILQ_REMOVE(&http->virtualhosts, vhost, next_vhost); in evhttp_remove_virtual_host()
3743 mm_free(vhost->vhost_pattern); in evhttp_remove_virtual_host()
3744 vhost->vhost_pattern = NULL; in evhttp_remove_virtual_host()