summaryrefslogtreecommitdiff
path: root/content/urldb.c
Commit message (Collapse)AuthorAgeFilesLines
* fix urldb numerical v6 address handlingVincent Sanders2017-03-131-4/+12
|
* make the urldb content type setting API return an errorVincent Sanders2017-03-131-3/+6
|
* make urldb persistance setting API return an errorVincent Sanders2017-03-131-3/+6
|
* change urldb_set_title API to return an error statusVincent Sanders2017-03-131-13/+22
|
* actually check the generated database files against reference test dataVincent Sanders2017-03-081-1/+0
|
* remove urldb_add_host and path from public APIVincent Sanders2017-03-081-155/+174
| | | | | | | | | | 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.
* make update data api return an resultVincent Sanders2017-03-081-3/+6
|
* use robust handling of time_t value (de)serialisationVincent Sanders2017-03-081-6/+35
| | | | | | The previous implementation was wrong on systems where time_t was not an int type. This changes urldb to use the portable implementation netsurf has available.
* clean up url database documentation comments and formattingVincent Sanders2017-03-061-334/+467
|
* Revert "make urldb internal parse macros less prone to control flow errors"Vincent Sanders2017-03-051-4/+4
| | | | | This reverts commit 718da3ffffd1181a0b5b2d590214bc408ca44117. These macros are used in a way that causes safe macros to break
* make urldb internal parse macros less prone to control flow errorsVincent Sanders2017-03-051-4/+4
| | | | fixes issue highlighted by coverity (CID 1361696)
* fix some doxygen errorsVincent Sanders2017-02-241-1/+1
|
* fix unused variable warning on non public suffix library buildsVincent Sanders2017-02-231-1/+3
|
* enable use of netsurf public suffix library to prevent supercookiesVincent Sanders2016-09-201-0/+18
|
* if the cookie is a session cookie indicate itVincent Sanders2016-09-131-0/+6
| | | | | previously session cookies were simply displayed as having an expiry in 1970 which was unhelpful.
* make urldb parsing of ascii data explicitVincent Sanders2016-09-101-7/+10
|
* ensure url database destructor cleans up correctlyVincent Sanders2016-08-091-2/+7
|
* extend url database unit testing to cover more APIVincent Sanders2016-08-091-10/+24
|
* fix urldb warning and test buildVincent Sanders2016-08-081-3/+4
|
* update urldb dump to use LOG rather than writing to stderr directlyVincent Sanders2016-08-081-8/+19
|
* msplit public url database API out for frontendsVincent Sanders2016-06-131-3/+5
|
* move bitmap API header to core include directoryVincent Sanders2016-05-261-1/+1
|
* move image content handlers to accomodate core build changesVincent Sanders2016-05-231-1/+1
|
* Reduce unecessary use of networking headersVincent Sanders2016-04-171-1/+1
| | | | | | | | The utility configuration header dragged in a number of bsd sockets and related API as a side effect of setting up the configuration. By splitting the header and API setup into a separate header only the small number of places that need the functionality explitly include it.
* urldb no longer uses curl directly but it does need correct network includesVincent Sanders2016-04-171-0/+1
| | | | | | The update to remove curl usage from urldb must pull in the utility config header instead to get inet_aton and such or compoles on some platforms fail.
* create date and time to seconds since epoch processing utility functionVincent Sanders2016-04-161-12/+11
| | | | | | | currently NetSurf uses curl_getdate to convert textural date and time strings into seconds since epoch. It is betetr to move this functionality to a utility function so curl_getdate can easily be replaced if required.
* revert urldb include fixes as tehy cause build issues elsewhere and failed ↵Vincent Sanders2016-02-121-4/+0
| | | | to fix the warning
* fix more freebsd warningsVincent Sanders2016-02-121-0/+4
|
* URLdb doesn't store 'mailto' urls, so add early exit to lookup.Michael Drake2016-01-081-0/+6
|
* Fix crazy indentation.Michael Drake2016-01-081-3/+2
|
* fixup all the remaining logging macro callsitesVincent Sanders2015-05-281-2/+2
| | | | | The semantic patch tool appears to have missed some difficult to reason about callsites which have now been manually cleaned up
* Change LOG() macro to be varadicVincent Sanders2015-05-281-21/+20
| | | | | | | | | | | | This changes the LOG macro to be varadic removing the need for all callsites to have double bracketing and allows for future improvement on how we use the logging macros. The callsites were changed with coccinelle and the changes checked by hand. Compile tested for several frontends but not all. A formatting annotation has also been added which allows the compiler to check the parameters and types passed to the logging.
* Move bitmap operations into an operation table.Vincent Sanders2015-04-131-9/+12
| | | | | | | The generic bitmap handlers provided by each frontend are called back from the core and therefore should be in an operation table. This was one of the very few remaining interfaces stopping the core code from being split into a library.
* Remove url from content thumbnailers APIVincent Sanders2015-03-151-5/+7
| | | | | | | | | | | | | | | | The content thumbnailers for each frontend were being provided the contents url. This was only ever used to call the urldb thumbnail setting API. This changes it so the single callsite that passed a valid url adds the bitmap to that url itself in desktop_history.c instead of forcing every frontend to require the urldb API. Additionally the old API could pass the url as NULL which was causing asserts where this was not an expected parameter value. Because of this this fixes bug #2286 which was also present in the monkey frontend as both called nsurl_access() on the url without the NULL check and caused an assertion.
* Doxygen fixesVincent Sanders2014-11-091-2/+2
|
* restructure urldb sourceVincent Sanders2014-11-011-2478/+2322
| | | | | remove forward declarations and restructure. exported functions are also now documented in the urldb.h header.
* Move host_is_ip_address into urldb, as that's the only thing that cares.Michael Drake2014-10-311-7/+100
|
* remove the die API from the core.Vincent Sanders2014-10-261-12/+15
| | | | | | | | The die() API for abnormal termination does not belong within the core of netsurf and instead errors are propogated back to the callers. This is the final part of this change and the API is now only used within some parts of the frontends
* Remove unused #includeMichael Drake2014-05-151-1/+0
| | | | Persistent thumbnail code was ripped out of urldb ages ago.
* make nsurl_defragment() API more obvious and remove duplicated parameter ↵Vincent Sanders2014-03-091-14/+5
| | | | checking
* Get referer host from referer url.Michael Drake2013-11-181-1/+1
|
* Fix leak of path_query, when there is no host and scheme isn't file.Michael Drake2013-10-231-2/+6
|
* Remove old hotlist, cookies, and history_global_core modules.Michael Drake2013-09-021-1/+0
| | | | New versions of expand/collapse node functions for these modules aren't yet implemented.
* Use new cookie manager.Michael Drake2013-09-021-39/+8
|
* Make the parasitic hack of the old tree code more robust. Now if the ↵Michael Drake2013-07-261-11/+48
| | | | temp_treeview_test option is set, the global history and cookie manager will be replaced with their respective new implementations.
* Don't call cookies delete here, the cookie manager has already deleted it. ↵Michael Drake2013-07-241-1/+0
| | | | (Calling it only added the cookie again, cos the old cookie manager was braindead.)
* Fix up for cookies_old rename.Michael Drake2013-07-221-1/+1
|
* move options includeVincent Sanders2013-05-281-1/+1
|
* Use hash generated by nsurl rather than doing it ourselvesRob Kendrick (humdrum)2013-05-201-15/+15
|
* Add explanitory comment and make bloom size be a #defineRob Kendrick (humdrum)2013-05-171-2/+11
|