diff options
| author | Timo Teräs <timo.teras@iki.fi> | 2010-08-13 13:40:41 +0300 | 
|---|---|---|
| committer | Timo Teräs <timo.teras@iki.fi> | 2010-08-13 13:40:41 +0300 | 
| commit | 7daf2874969fb6773d480e9776cd8418eeb6353f (patch) | |
| tree | 32a9ca18ded660b18b4234c3311e09238d71c128 /blob.h | |
| parent | 8bc76c78a69360efc7a07a3c4e92f393cca22543 (diff) | |
| download | squark-7daf2874969fb6773d480e9776cd8418eeb6353f.tar.bz2 squark-7daf2874969fb6773d480e9776cd8418eeb6353f.tar.xz  | |
filter: fix db building issues and implement path component matching
Fixes has sub domains/paths hints to be correct.  www<number> as
first domain entry matching now checks it won't remove second level
domain names.
And the filter code now looksup path components from the db.
Diffstat (limited to 'blob.h')
| -rw-r--r-- | blob.h | 3 | 
1 files changed, 3 insertions, 0 deletions
@@ -41,6 +41,7 @@ blob_t blob_pushed(blob_t buffer, blob_t left);  void blob_push(blob_t *b, blob_t d);  void blob_push_uint(blob_t *to, unsigned int value, int radix);  void blob_push_hexdump(blob_t *to, blob_t binary); +void blob_push_urldecode(blob_t *to, blob_t url);  blob_t blob_pull(blob_t *b, int len);  void blob_pull_skip(blob_t *b, int len);  int blob_pull_matching(blob_t *b, blob_t e); @@ -48,5 +49,7 @@ unsigned int blob_pull_uint(blob_t *b, int radix);  blob_t blob_pull_cspn(blob_t *b, const blob_t cspn);  blob_t blob_expand_head(blob_t *b, blob_t limits, unsigned char sep); +blob_t blob_expand_tail(blob_t *b, blob_t limits, unsigned char sep); +blob_t blob_shrink_tail(blob_t *b, blob_t limits, unsigned char sep);  #endif  | 
