Commit 7d83ca46 authored by Pekka Pessi's avatar Pekka Pessi

nth: added nth_site_url()

darcs-hash:20061123201926-65a35-393317b916f4cb8ab9e6a386912e53902704978a.gz
parent 66b44ac6
......@@ -463,6 +463,13 @@ void nth_site_bind(nth_site_t *site,
}
/** Get the site URL. */
url_t const *nth_site_url(nth_site_t const *site)
{
return site ? site->site_url : NULL;
}
/** Return server name and version */
char const *nth_site_server_version(void)
{
return "nth/" NTH_VERSION;
......
......@@ -177,6 +177,7 @@ NTH_DLL int nth_site_get_params(nth_site_t const *site,
NTH_DLL int nth_site_get_stats(nth_site_t const *site,
tag_type_t tag, tag_value_t value, ...);
NTH_DLL url_t const *nth_site_url(nth_site_t const *site);
/* ----------------------------------------------------------------------
* 6) Prototypes for server transactions
......
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