From d2b34da108fae24c9c70ab00aa261cc9648018c3 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Thu, 5 Oct 2006 22:12:22 +0000 Subject: Dehacked information checksum generation Subversion-branch: /trunk/chocolate-doom Subversion-revision: 687 --- src/deh_defs.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/deh_defs.h') diff --git a/src/deh_defs.h b/src/deh_defs.h index c31893a7..072032cf 100644 --- a/src/deh_defs.h +++ b/src/deh_defs.h @@ -1,7 +1,7 @@ // Emacs style mode select -*- C++ -*- //----------------------------------------------------------------------------- // -// $Id: deh_defs.h 153 2005-10-02 23:49:01Z fraggle $ +// $Id: deh_defs.h 687 2006-10-05 22:12:22Z fraggle $ // // Copyright(C) 2005 Simon Howard // @@ -34,12 +34,15 @@ #ifndef DEH_DEFS_H #define DEH_DEFS_H +#include "md5.h" + typedef struct deh_context_s deh_context_t; typedef struct deh_section_s deh_section_t; typedef void (*deh_section_init_t)(void); typedef void *(*deh_section_start_t)(deh_context_t *context, char *line); typedef void (*deh_section_end_t)(deh_context_t *context, void *tag); typedef void (*deh_line_parser_t)(deh_context_t *context, char *line, void *tag); +typedef void (*deh_md5_hash_t)(md5_context_t *context); struct deh_section_s { @@ -61,6 +64,10 @@ struct deh_section_s // This is called at the end of the section for any cleanup deh_section_end_t end; + + // Called when generating an MD5 sum of the dehacked state + + deh_md5_hash_t md5_hash; }; #endif /* #ifndef DEH_DEFS_H */ -- cgit v1.2.3