Commit b1d68a20 authored by Remi Denis-Courmont's avatar Remi Denis-Courmont

msrps:// URL scheme

darcs-hash:20060831101905-9301c-a8cdadf615405b1a143e5ea6010e9808b013412d.gz
parent 31c0acf2
......@@ -55,6 +55,7 @@ enum url_type_e {
url_pres, /**< @c "pres:" (simple presence) */
url_cid, /**< @c "cid:" (Content-ID) */
url_msrp, /**< @c "msrp:" (message session relay) */
url_msrps, /**< @c "msrps:" */
url_wv, /**< @c "wv:" (Wireless village) */
_url_none
};
......
......@@ -170,6 +170,7 @@ int test_any(void)
TEST_S(url_scheme(url_im), "im");
TEST_S(url_scheme(url_cid), "cid");
TEST_S(url_scheme(url_msrp), "msrp");
TEST_S(url_scheme(url_msrps), "msrps");
TEST_1(tst = su_strdup(home, "*"));
TEST(url_d(url, tst), 0);
......
......@@ -427,6 +427,7 @@ char const* url_scheme(enum url_type_e url_type)
case url_pres: return "pres";
case url_cid: return "cid";
case url_msrp: return "msrp";
case url_msrps: return "msrps";
case url_wv: return "wv";
default:
assert(url_type == url_unknown);
......@@ -476,7 +477,7 @@ enum url_type_e url_get_type(char const *scheme, int len)
test_scheme(im); break;
case 'm': case 'M':
test_scheme(mailto); test_scheme(modem);
test_scheme(msrp); break;
test_scheme(msrp); test_scheme(msrps); break;
case 'p': case 'P':
test_scheme(pres); break;
case 'r': case 'R':
......@@ -1651,6 +1652,7 @@ char const *url_port_default(enum url_type_e url_type)
return "*";
case url_msrp:
case url_msrps:
return "9999"; /* XXXX */
case url_tel:
......@@ -1689,6 +1691,8 @@ char const *url_tport_default(enum url_type_e url_type)
return "tcp";
case url_msrp:
return "tcp";
case url_msrps:
return "tls";
case url_any: /* "*" */
case url_tel:
......
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