summaryrefslogtreecommitdiff
path: root/src/deh_defs.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/deh_defs.h')
-rw-r--r--src/deh_defs.h9
1 files changed, 8 insertions, 1 deletions
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 */