Commit f2712512 authored by Pekka Pessi's avatar Pekka Pessi
Browse files

nua/test_proxy.h, nua/test_proxy.c: added support for multiple domains

Each domain has its own registrar and authentication module.

parent 28395d37
This diff is collapsed.
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
struct proxy; struct proxy;
struct domain;
struct proxy *test_proxy_create(su_root_t *, tag_type_t, tag_value_t, ...); struct proxy *test_proxy_create(su_root_t *, tag_type_t, tag_value_t, ...);
...@@ -38,15 +39,19 @@ void test_proxy_destroy(struct proxy *); ...@@ -38,15 +39,19 @@ void test_proxy_destroy(struct proxy *);
url_t const *test_proxy_uri(struct proxy const *); url_t const *test_proxy_uri(struct proxy const *);
void test_proxy_set_expiration(struct proxy *, struct domain *test_proxy_add_domain(struct proxy *,
sip_time_t min_expires, url_t const *domain,
sip_time_t expires, tag_type_t, tag_value_t, ...);
sip_time_t max_expires);
void test_proxy_get_expiration(struct proxy *, void test_proxy_domain_set_expiration(struct domain *,
sip_time_t *return_min_expires, sip_time_t min_expires,
sip_time_t *return_expires, sip_time_t expires,
sip_time_t *return_max_expires); sip_time_t max_expires);
void test_proxy_domain_get_expiration(struct domain *,
sip_time_t *return_min_expires,
sip_time_t *return_expires,
sip_time_t *return_max_expires);
void test_proxy_set_session_timer(struct proxy *p, void test_proxy_set_session_timer(struct proxy *p,
sip_time_t session_expires, sip_time_t session_expires,
...@@ -56,6 +61,9 @@ void test_proxy_get_session_timer(struct proxy *p, ...@@ -56,6 +61,9 @@ void test_proxy_get_session_timer(struct proxy *p,
sip_time_t *return_session_expires, sip_time_t *return_session_expires,
sip_time_t *return_min_se); sip_time_t *return_min_se);
void test_proxy_domain_set_authorize(struct domain *d, int authorize);
void test_proxy_domain_get_authorize(struct domain *d, int *return_authorize);
int test_proxy_close_tports(struct proxy *p); int test_proxy_close_tports(struct proxy *p);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment