diff options
author | Timo Teräs <timo.teras@iki.fi> | 2010-08-11 14:28:06 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2010-08-11 14:28:06 +0300 |
commit | e0a013397a51963039c43877be3afe954e519be0 (patch) | |
tree | 77cbd4db435ec62d679920596ffbd07166fdc902 /blob.h | |
parent | cf7e91d59880424ff6c643a848938619b7968ad8 (diff) | |
download | squark-e0a013397a51963039c43877be3afe954e519be0.tar.bz2 squark-e0a013397a51963039c43877be3afe954e519be0.tar.xz |
filter: implement basic analysis of urls
Analysing of the url host part, some simple tests. Not usable as
squid filter yet.
Diffstat (limited to 'blob.h')
-rw-r--r-- | blob.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -31,7 +31,7 @@ extern const blob_t BLOB_NULL; static inline int blob_is_null(blob_t b) { - return b.ptr == NULL; + return b.len == 0; } char *blob_cstr_dup(blob_t b); @@ -47,4 +47,6 @@ int blob_pull_matching(blob_t *b, blob_t e); 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); + #endif |