diff options
author | Vincent Sanders <vince@kyllikki.org> | 2017-03-08 13:27:00 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2017-03-08 13:27:00 +0000 |
commit | 0da0dcc342f3c3078b73449c2ead95fee39ec4b8 (patch) | |
tree | 07f92cfabf6a60b14bec9fbcb33a0a84d687a350 /content/urldb.h | |
parent | b78887c7c8324178f1dd22faf7a3b818b6682a5d (diff) | |
download | netsurf-0da0dcc342f3c3078b73449c2ead95fee39ec4b8.tar.gz netsurf-0da0dcc342f3c3078b73449c2ead95fee39ec4b8.tar.bz2 |
remove urldb_add_host and path from public API
The urldb_add_host and urldb_add_path API were only public for the
urldb test code which was calling them incorrectly in any case as the
url bloom filters were not updated so serialising and adding data to
entries was inconsistent.
This also changes the tests to use the urldb_add_url API which is less
buggy and results in a smaller, cleaner urldb API.
Diffstat (limited to 'content/urldb.h')
-rw-r--r-- | content/urldb.h | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/content/urldb.h b/content/urldb.h index daa54d6cd..7230d0bb9 100644 --- a/content/urldb.h +++ b/content/urldb.h @@ -138,29 +138,4 @@ bool urldb_set_cookie(const char *header, struct nsurl *url, struct nsurl *refer char *urldb_get_cookie(struct nsurl *url, bool include_http_only); -/** - * Add a host to the database, creating any intermediate entries - * - * \param host Hostname to add - * \return Pointer to leaf node, or NULL on memory exhaustion - */ -struct host_part *urldb_add_host(const char *host); - - -/** - * Add a path to the database, creating any intermediate entries - * - * \param scheme URL scheme associated with path - * \param port Port number on host associated with path - * \param host Host tree node to attach to - * \param path_query Absolute path plus query to add (freed) - * \param fragment URL fragment, or NULL - * \param url URL (fragment ignored) - * \return Pointer to leaf node, or NULL on memory exhaustion - */ -struct path_data *urldb_add_path(lwc_string *scheme, unsigned int port, - const struct host_part *host, char *path_query, - lwc_string *fragment, struct nsurl *url); - - #endif |