extern void rotate_logs(int);
extern void reconfigure(int);
-/*
- * store_digest.c
- */
-extern void storeDigestInit(void);
-extern void storeDigestNoteStoreReady(void);
-extern void storeDigestScheduleRebuild(void);
-extern void storeDigestDel(const StoreEntry * entry);
-extern void storeDigestReport(StoreEntry *);
-
/*
* store_rebuild.c
*/
-
/*
- * $Id$
- *
* DEBUG: section 71 Store Digest Manager
* AUTHOR: Alex Rousskov
*
#include "event.h"
#include "globals.h"
#include "mgr/Registration.h"
+#include "store_digest.h"
#include "protos.h"
#if USE_CACHE_DIGESTS
memset(&sd_state, 0, sizeof(sd_state));
#else
-
store_digest = NULL;
debugs(71, 3, "Local cache digest is 'off'");
#endif
#endif
}
+//TODO: this seems to be dead code. Is it needed?
void
storeDigestDel(const StoreEntry * entry)
{
debugs(71, 6, "storeDigestDel: deled entry, key: " << entry->getMD5Text());
}
}
-
-#endif
+#endif //USE_CACHE_DIGESTS
}
void
storeAppendPrintf(e, "store digest: disabled.\n");
}
-#endif
+#endif //USE_CACHE_DIGESTS
}
/*
--- /dev/null
+#ifndef SQUID_STORE_DIGEST_H_
+#define SQUID_STORE_DIGEST_H_
+/*
+ * DEBUG: section 71 Store Digest Manager
+ * AUTHOR: Alex Rousskov
+ *
+ * SQUID Web Proxy Cache http://www.squid-cache.org/
+ * ----------------------------------------------------------
+ *
+ * Squid is the result of efforts by numerous individuals from
+ * the Internet community; see the CONTRIBUTORS file for full
+ * details. Many organizations have provided support for Squid's
+ * development; see the SPONSORS file for full details. Squid is
+ * Copyrighted (C) 2001 by the Regents of the University of
+ * California; see the COPYRIGHT file for full details. Squid
+ * incorporates software developed and/or copyrighted by other
+ * sources; see the CREDITS file for full details.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
+ *
+ */
+
+class StoreEntry;
+
+extern void storeDigestInit(void);
+extern void storeDigestNoteStoreReady(void);
+extern void storeDigestDel(const StoreEntry * entry);
+extern void storeDigestReport(StoreEntry *);
+
+#endif /* SQUID_STORE_DIGEST_H_ */