summaryrefslogtreecommitdiffstats
path: root/private/unimodem/new/match/mt.h
diff options
context:
space:
mode:
authorAdam <you@example.com>2020-05-17 05:51:50 +0200
committerAdam <you@example.com>2020-05-17 05:51:50 +0200
commite611b132f9b8abe35b362e5870b74bce94a1e58e (patch)
treea5781d2ec0e085eeca33cf350cf878f2efea6fe5 /private/unimodem/new/match/mt.h
downloadNT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.gz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.bz2
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.lz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.xz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.zst
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.zip
Diffstat (limited to 'private/unimodem/new/match/mt.h')
-rw-r--r--private/unimodem/new/match/mt.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/private/unimodem/new/match/mt.h b/private/unimodem/new/match/mt.h
new file mode 100644
index 000000000..56028c84a
--- /dev/null
+++ b/private/unimodem/new/match/mt.h
@@ -0,0 +1,28 @@
+#ifndef _MT_
+#define _MT_
+
+#define fMATCH_PARTIAL (0x1<<0)
+#define fMATCH_COMPLETE (0x1<<1)
+
+
+typedef struct
+{
+ DWORD dwLen;
+ CHAR *pb;
+ LPVOID pv;
+
+} MATCHREC, *PMATCHREC;
+
+typedef DWORD HMATCHTREE;
+
+HMATCHTREE mtCreateTree(PMATCHREC rgmr, DWORD dwcmr);
+void mtFreeTree (HMATCHTREE hmt);
+DWORD mtFindMatch (HMATCHTREE hmt, PMATCHREC pmr);
+
+#ifdef DEBUG
+void mtDumpTree (HMATCHTREE hmt);
+#else // !DEBUG
+#define mtDumpTree(_mht) ((void) 0)
+#endif // !DEBUG
+
+#endif // _MT_