forked from alexander-pick/patchdiff2_ida6
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdisplay.hpp
82 lines (63 loc) · 1.66 KB
/
display.hpp
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
/*
Patchdiff2
Portions (C) 2011 Alexander Pick
Portions (C) 2010 Nicolas Pouvesle
Portions (C) 2007 - 2009 Tenable Network Security, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __DISPLAY_H__
#define __DISPLAY_H__
#include "diff.hpp"
// column widths
static const int widths_match[] = { 5, 32, 32, 16, 16, 4, 16, 16 };
static const int widths_unmatch[] = { 5, 32, 16, 8, 8, 8};
// column headers
static const char *header_match[] =
{
"Engine",
"Function 1",
"Function 2",
"Address 1",
"Address 2",
"CRC",
"CRC1",
"CRC2"
};
static const char *header_unmatch[] =
{
"File",
"Function name",
"Function address",
"Sig",
"Hash",
"CRC"
};
static const char * popup_null = "\0\0\0\0";
static const char * popup_match[] =
{
popup_null,
popup_null,
"Display Graphs",
NULL,
};
static const char * popup_unmatch[] =
{
popup_null,
popup_null,
"Display Graph",
NULL,
};
static const char* title_match = "Matched Functions";
static const char* title_unmatch = "Unmatched Functions";
static const char* title_identical = "Identical Functions";
void display_results(deng_t *);
int ui_callback(void * data, int event_id, va_list va);
#endif