LeviLamina
Loading...
Searching...
No Matches
Debugger.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/scripting/runtime/IDebuggerController.h"
7
8// auto generated forward declare list
9// clang-format off
10struct JSContext;
11struct JSRuntime;
12struct JSValue;
13// clang-format on
14
15namespace Scripting::QuickJS {
16
18public:
19 // member variables
20 // NOLINTBEGIN
26 // NOLINTEND
27
28public:
29 // prevent constructor by default
30 Debugger& operator=(Debugger const&);
31 Debugger(Debugger const&);
32 Debugger();
33
34public:
35 // virtual functions
36 // NOLINTBEGIN
37 // vIndex: 0
38 virtual ~Debugger() /*override*/ = default;
39
40 // vIndex: 1
41 virtual bool attach(
42 bool performHandshake,
43 ::std::optional<::std::string> targetModuleUuid,
44 ::std::function<void(::std::string_view)> handler
45 ) /*override*/;
46
47 // vIndex: 2
48 virtual void detach() /*override*/;
49
50 // vIndex: 3
51 virtual bool closed() const /*override*/;
52
53 // vIndex: 4
54 virtual void pumpMessages() /*override*/;
55 // NOLINTEND
56
57public:
58 // static functions
59 // NOLINTBEGIN
60 MCAPI static uint ContextToId(::JSContext* ctx, void*);
61
62 MCAPI static char const* ContextToModuleUuidLowerCase(::JSContext* ctx, void*);
63
64 MCAPI static void MessageHandler(void* udata, char const* message, uint64 length);
65
66 MCAPI static void NotifyResume(void* udata);
67
68 MCAPI static char const* ToTypeName(::JSContext* ctx, ::JSValue val);
69
70 MCAPI static void TransportClose(::JSRuntime* rt, void* udata);
71
72 MCAPI static uint64 TransportPeek(void* udata);
73
74 MCAPI static uint64 TransportRead(void* udata, char* buffer, uint64 length);
75
76 MCAPI static uint64 TransportWrite(void* udata, char const* buffer, uint64 length);
77 // NOLINTEND
78
79public:
80 // destructor thunk
81 // NOLINTBEGIN
82
83 // NOLINTEND
84
85public:
86 // virtual function thunks
87 // NOLINTBEGIN
88 MCAPI bool $attach(
89 bool performHandshake,
90 ::std::optional<::std::string> targetModuleUuid,
91 ::std::function<void(::std::string_view)> handler
92 );
93
94 MCAPI void $detach();
95
96 MCAPI bool $closed() const;
97
98 MCAPI void $pumpMessages();
99 // NOLINTEND
100
101public:
102 // vftables
103 // NOLINTBEGIN
104 MCAPI static void** $vftable();
105 // NOLINTEND
106};
107
108} // namespace Scripting::QuickJS
Definition IDebuggerController.h:7
Definition Debugger.h:17
Definition JSContext.h:5
Definition JSRuntime.h:8
Definition JSValue.h:5
Definition buffer.h:5
Definition ctx.h:5
Definition Alias.h:14