diff options
Diffstat (limited to 'adventure/extern.h')
-rw-r--r-- | adventure/extern.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/adventure/extern.h b/adventure/extern.h index 0e87e070..548a270c 100644 --- a/adventure/extern.h +++ b/adventure/extern.h @@ -1,4 +1,4 @@ -/* $NetBSD: extern.h,v 1.14 2009/10/21 01:07:44 snj Exp $ */ +/* $NetBSD: extern.h,v 1.15 2012/01/08 18:16:00 dholland Exp $ */ /* * Copyright (c) 1997 Christos Zoulas. All rights reserved. @@ -27,8 +27,14 @@ #include <string.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); |