summaryrefslogtreecommitdiffstats
path: root/blob.h
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2010-08-11 14:28:06 +0300
committerTimo Teräs <timo.teras@iki.fi>2010-08-11 14:28:06 +0300
commite0a013397a51963039c43877be3afe954e519be0 (patch)
tree77cbd4db435ec62d679920596ffbd07166fdc902 /blob.h
parentcf7e91d59880424ff6c643a848938619b7968ad8 (diff)
downloadsquark-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.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/blob.h b/blob.h
index 883c053..767e661 100644
--- a/blob.h
+++ b/blob.h
@@ -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