New interface for composing URLs from parts.
* include/mailutils/url.h (mu_url_sget_name) (mu_url_aget_name,mu_url_get_name) (mu_url_invalidate,mu_url_create_null) (mu_url_set_user,mu_url_set_path,mu_url_set_scheme) (mu_url_set_host,mu_url_set_port,mu_url_set_service) (mu_url_set_auth,mu_url_set_secret,mu_url_add_param) (mu_url_clear_param,mu_url_add_query,mu_url_clear_query): New prototypes. * libmailutils/tests/url-comp.at: New test case. * libmailutils/tests/url-comp.c: New test program. * libmailutils/tests/.gitignore: Update. * libmailutils/tests/Makefile.am: Add new files. * libmailutils/tests/testsuite.at: Add new tests. * libmailutils/url/Makefile.am: Add new files. * libmailutils/url/add-param.c: New file. * libmailutils/url/add-query.c: New file. * libmailutils/url/clr-param.c: New file. * libmailutils/url/clr-query.c: New file. * libmailutils/url/null.c: New file. * libmailutils/url/set-auth.c: New file. * libmailutils/url/set-host.c: New file. * libmailutils/url/set-path.c: New file. * libmailutils/url/set-port.c: New file. * libmailutils/url/set-scheme.c: New file. * libmailutils/url/set-secret.c: New file. * libmailutils/url/set-service.c: New file. * libmailutils/url/set-user.c: New file. * libmailutils/url/urlinv.c: New file. * libmailutils/url/create.c (mu_url_create_hint): Return EINVAL if purl is NULL. * libmailutils/url/scheme.c (mu_url_set_scheme): Remove. See set-scheme.c * libmailutils/url/urlstr.c (mu_url_sget_name) (mu_url_aget_name,mu_url_get_name): New functions. (mu_url_to_string): Rewrite using the above. * libmailutils/base/Makefile.am: Add fscompose.c * libmailutils/base/fscompose.c: New file.
Showing
27 changed files
with
1298 additions
and
19 deletions
libmailutils/base/fscompose.c
0 → 100644
libmailutils/tests/url-comp.at
0 → 100644
libmailutils/tests/url-comp.c
0 → 100644
libmailutils/url/add-param.c
0 → 100644
libmailutils/url/add-query.c
0 → 100644
libmailutils/url/clr-param.c
0 → 100644
libmailutils/url/clr-query.c
0 → 100644
libmailutils/url/null.c
0 → 100644
libmailutils/url/set-auth.c
0 → 100644
libmailutils/url/set-host.c
0 → 100644
libmailutils/url/set-path.c
0 → 100644
libmailutils/url/set-port.c
0 → 100644
libmailutils/url/set-scheme.c
0 → 100644
libmailutils/url/set-secret.c
0 → 100644
libmailutils/url/set-service.c
0 → 100644
libmailutils/url/set-user.c
0 → 100644
libmailutils/url/urlinv.c
0 → 100644
-
Please register or sign in to post a comment