1// Copyright 2019 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// https://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15// Generated with protocol_gen.go -- do not edit this file.
16// go run scripts/protocol_gen/protocol_gen.go
17//
18// DAP version 1.46.0
19
20#include "dap/protocol.h"
21
22namespace dap {
23
24DAP_IMPLEMENT_STRUCT_TYPEINFO(BreakpointEvent,
25 "breakpoint",
26 DAP_FIELD(breakpoint, "breakpoint"),
27 DAP_FIELD(reason, "reason"));
28
29DAP_IMPLEMENT_STRUCT_TYPEINFO(CapabilitiesEvent,
30 "capabilities",
31 DAP_FIELD(capabilities, "capabilities"));
32
33DAP_IMPLEMENT_STRUCT_TYPEINFO(ContinuedEvent,
34 "continued",
35 DAP_FIELD(allThreadsContinued,
36 "allThreadsContinued"),
37 DAP_FIELD(threadId, "threadId"));
38
39DAP_IMPLEMENT_STRUCT_TYPEINFO(ExitedEvent,
40 "exited",
41 DAP_FIELD(exitCode, "exitCode"));
42
43DAP_IMPLEMENT_STRUCT_TYPEINFO(InitializedEvent, "initialized");
44
45DAP_IMPLEMENT_STRUCT_TYPEINFO(InvalidatedEvent,
46 "invalidated",
47 DAP_FIELD(areas, "areas"),
48 DAP_FIELD(stackFrameId, "stackFrameId"),
49 DAP_FIELD(threadId, "threadId"));
50
51DAP_IMPLEMENT_STRUCT_TYPEINFO(LoadedSourceEvent,
52 "loadedSource",
53 DAP_FIELD(reason, "reason"),
54 DAP_FIELD(source, "source"));
55
56DAP_IMPLEMENT_STRUCT_TYPEINFO(ModuleEvent,
57 "module",
58 DAP_FIELD(module, "module"),
59 DAP_FIELD(reason, "reason"));
60
61DAP_IMPLEMENT_STRUCT_TYPEINFO(OutputEvent,
62 "output",
63 DAP_FIELD(category, "category"),
64 DAP_FIELD(column, "column"),
65 DAP_FIELD(data, "data"),
66 DAP_FIELD(group, "group"),
67 DAP_FIELD(line, "line"),
68 DAP_FIELD(output, "output"),
69 DAP_FIELD(source, "source"),
70 DAP_FIELD(variablesReference,
71 "variablesReference"));
72
73DAP_IMPLEMENT_STRUCT_TYPEINFO(ProcessEvent,
74 "process",
75 DAP_FIELD(isLocalProcess, "isLocalProcess"),
76 DAP_FIELD(name, "name"),
77 DAP_FIELD(pointerSize, "pointerSize"),
78 DAP_FIELD(startMethod, "startMethod"),
79 DAP_FIELD(systemProcessId, "systemProcessId"));
80
81DAP_IMPLEMENT_STRUCT_TYPEINFO(ProgressEndEvent,
82 "progressEnd",
83 DAP_FIELD(message, "message"),
84 DAP_FIELD(progressId, "progressId"));
85
86DAP_IMPLEMENT_STRUCT_TYPEINFO(ProgressStartEvent,
87 "progressStart",
88 DAP_FIELD(cancellable, "cancellable"),
89 DAP_FIELD(message, "message"),
90 DAP_FIELD(percentage, "percentage"),
91 DAP_FIELD(progressId, "progressId"),
92 DAP_FIELD(requestId, "requestId"),
93 DAP_FIELD(title, "title"));
94
95DAP_IMPLEMENT_STRUCT_TYPEINFO(ProgressUpdateEvent,
96 "progressUpdate",
97 DAP_FIELD(message, "message"),
98 DAP_FIELD(percentage, "percentage"),
99 DAP_FIELD(progressId, "progressId"));
100
101DAP_IMPLEMENT_STRUCT_TYPEINFO(StoppedEvent,
102 "stopped",
103 DAP_FIELD(allThreadsStopped, "allThreadsStopped"),
104 DAP_FIELD(description, "description"),
105 DAP_FIELD(hitBreakpointIds, "hitBreakpointIds"),
106 DAP_FIELD(preserveFocusHint, "preserveFocusHint"),
107 DAP_FIELD(reason, "reason"),
108 DAP_FIELD(text, "text"),
109 DAP_FIELD(threadId, "threadId"),
110 // mozart added:2022/1/14
111 DAP_FIELD(source, "source"),
112 DAP_FIELD(line, "line"),
113 DAP_FIELD(column, "column"));
114
115DAP_IMPLEMENT_STRUCT_TYPEINFO(TerminatedEvent,
116 "terminated",
117 DAP_FIELD(restart, "restart"));
118
119DAP_IMPLEMENT_STRUCT_TYPEINFO(ThreadEvent,
120 "thread",
121 DAP_FIELD(reason, "reason"),
122 DAP_FIELD(threadId, "threadId"));
123
124} // namespace dap
125