-/* $NetBSD: extern.h,v 1.14 2009/10/21 01:07:44 snj Exp $ */
+/* $NetBSD: extern.h,v 1.16 2012/01/08 18:17:41 dholland Exp $ */
/*
* Copyright (c) 1997 Christos Zoulas. All rights reserved.
*/
#include <string.h>
+#include <stdint.h>
/* crc.c */
-void crc_start(void);
-unsigned long crc(const char *, int);
+struct crcstate {
+ uint32_t crcval;
+ unsigned step;
+};
+
+void crc_start(struct crcstate *);
+void crc_add(struct crcstate *, const void *, size_t);
+uint32_t crc_get(struct crcstate *);
/* done.c */
int score(void);