forked from Vector35/binaryninja-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuicomment.h
56 lines (43 loc) · 922 Bytes
/
uicomment.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
#pragma once
#include "binaryninjaapi.h"
#include "uicontext.h"
/*!
\defgroup uicomment UIComment
\ingroup uiapi
*/
// these are only intended to be used for the ui
/*!
\ingroup uicomment
*/
typedef enum
{
FunctionComment,
AddressComment,
DataComment
} UICommentType;
/*!
\ingroup uicomment
*/
class BINARYNINJAUIAPI UIComment
{
public:
UICommentType type;
FunctionRef func;
BinaryViewRef data;
uint64_t address;
QString content;
UIComment(UICommentType type, FunctionRef func, uint64_t address, QString content) :
type(type), func(func), address(address), content(content)
{}
UIComment(UICommentType type, BinaryViewRef data, uint64_t address, QString content) :
type(type), data(data), address(address), content(content)
{}
UIComment(const UIComment& rhs)
{
type = rhs.type;
func = rhs.func;
data = rhs.data;
address = rhs.address;
content = rhs.content;
}
};