summaryrefslogtreecommitdiffstats
path: root/lua-squarkdb.c
Commit message (Collapse)AuthorAgeFilesLines
* db: rename squarkdb to filterdbTimo Teräs2010-08-221-1/+1
| | | | will need authentication db later too.
* db: smarter string pointer encoding (include length field)Timo Teräs2010-08-131-7/+14
| | | | | | So we don't need explicit null terminator in most cases saving space. It will also speed up comparisons as getting string blob is now constant time (no strlen needed).
* sqdb-build: write out category sectionTimo Teräs2010-08-111-0/+35
| | | | store the names of categories to database
* squarkdb: cmph based url database for squark filteringTimo Teräs2010-08-091-0/+301
Implement basics of squarkdb which will be used by squark-filter to categorize URIs. Implementation is based on libcmph and uses file format suitable to be mmap:ed from squark-filter. Lua code is used to create the squark database from standard domain / url blacklists.