提交 7f8cc54c authored 作者: Seven Du's avatar Seven Du

add basic http virtual host support and fix some leaks

上级 76b093a0
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
* Contributor(s): * Contributor(s):
* *
* Anthony Minessale II <anthm@freeswitch.org> * Anthony Minessale II <anthm@freeswitch.org>
* Seven Du <dujinfang@gmail.com>
* *
* mod_html.h -- HTML 5 interface * mod_html.h -- HTML 5 interface
* *
...@@ -166,6 +167,20 @@ typedef struct verto_pvt_s { ...@@ -166,6 +167,20 @@ typedef struct verto_pvt_s {
struct verto_pvt_s *next; struct verto_pvt_s *next;
} verto_pvt_t; } verto_pvt_t;
typedef struct verto_vhost_s {
char *domain;
char *alias;
char *root;
char *script_root;
char *index;
char *auth_realm;
char *auth_user;
char *auth_pass;
switch_event_t *rewrites;
switch_memory_pool_t *pool;
struct verto_vhost_s *next;
} verto_vhost_t;
struct verto_profile_s { struct verto_profile_s {
char *name; char *name;
switch_mutex_t *mutex; switch_mutex_t *mutex;
...@@ -220,7 +235,7 @@ struct verto_profile_s { ...@@ -220,7 +235,7 @@ struct verto_profile_s {
char *timer_name; char *timer_name;
char *local_network; char *local_network;
char *htdocs; verto_vhost_t *vhosts;
struct verto_profile_s *next; struct verto_profile_s *next;
}; };
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论