From 8b950544a4c2e6f66c5f6fd635c3312aeb70c9ac Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Wed, 18 Feb 2004 12:20:26 +0000 Subject: [PATCH] Moved struct card_prints to index.h, because it's used outside the indexer. Added CARD_FLAG_OVERRIDEN. --- lib/index.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/index.h b/lib/index.h index d520f14c..eb5fcdb7 100644 --- a/lib/index.h +++ b/lib/index.h @@ -1,7 +1,7 @@ /* * Sherlock: Data structures used in indices * - * (c) 2001--2003 Martin Mares + * (c) 2001--2004 Martin Mares */ #ifndef _SHERLOCK_INDEX_H @@ -79,6 +79,7 @@ enum card_flag { CARD_FLAG_MERGED = 8, /* Destination of a merge [merger] */ CARD_FLAG_IMAGE = 16, /* Is an image object [scanner] */ CARD_FLAG_FRAMESET = 32, /* Contains a frameset to be ignored [scanner] */ + CARD_FLAG_OVERRIDEN = 64, /* Overriden by another index [sherlockd] */ }; #define CARD_POS_SHIFT 5 /* Card positions are shifted this # of bits to the right */ @@ -129,6 +130,13 @@ fp_hash(struct fingerprint *fp) return (fp->hash[0] << 24) | (fp->hash[1] << 16) | (fp->hash[2] << 8) | fp->hash[3]; } +/* The card fingerprints */ + +struct card_print { + struct fingerprint fp; + u32 cardid; +}; + /* URL keys */ #define URL_KEY_BUF_SIZE (3*MAX_URL_SIZE) -- 2.39.2