app.avl.h

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#ifndef _APP_AVL_H
#define _APP_AVL_H
#include <stdio.h>
#include <stdlib.h>
#include <ntddk.h>
typedef unsigned int appBLOCK;
typedef unsigned int appNUMBER;
typedef struct appTRIPLET appTRIPLET;
struct appTRIPLET {appBLOCK A; appBLOCK B; appNUMBER k;};
RTL_GENERIC_COMPARE_RESULTS
CompareRoutine(
__in struct _RTL_AVL_TABLE *Table,
__in PVOID FirstStruct,
__in PVOID SecondStruct
);
PVOID
Allocate_Routine(
__in struct _RTL_AVL_TABLE *Table,
__in CLONG ByteSize
);
VOID
FreeRoutine(
__in struct _RTL_AVL_TABLE *Table,
__in PVOID Buffer
);
appTRIPLET*
addNode(appBLOCK A, appBLOCK B, appNUMBER k, PRTL_AVL_TABLE Table);
BOOLEAN
existNode(appBLOCK A, PRTL_AVL_TABLE Table);
appTRIPLET*
findNode(appBLOCK A, PRTL_AVL_TABLE Table);
BOOLEAN
deleteNode(appBLOCK A, PRTL_AVL_TABLE Table);
appTRIPLET*
nextNode(appBLOCK A, PRTL_AVL_TABLE Table);
appBLOCK
checkNode(appBLOCK A, PRTL_AVL_TABLE Table);
BOOLEAN
mapNode(appBLOCK A, appBLOCK B, appNUMBER k, PRTL_AVL_TABLE Table);
BOOLEAN
unmapNode(appBLOCK A, appNUMBER k, PRTL_AVL_TABLE Table);
#endif //_APP_AVL_H