Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/binding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1867,6 +1867,14 @@ void v8_inspector__Session__DELETE(v8_inspector::V8InspectorSession* self) {
delete self;
}

void v8_inspector__Session__stop(v8_inspector::V8InspectorSession* self) {
self->stop();
}

void v8_inspector__Session__resume(v8_inspector::V8InspectorSession* self) {
self->resume();
}

void v8_inspector__Session__dispatchProtocolMessage(
v8_inspector::V8InspectorSession *session, v8::Isolate *isolate,
const char *msg, int msg_len) {
Expand Down
2 changes: 2 additions & 0 deletions src/binding.h
Original file line number Diff line number Diff line change
Expand Up @@ -1164,6 +1164,8 @@ typedef struct CustomPreview CustomPreview;

typedef struct InspectorSession InspectorSession;
void v8_inspector__Session__DELETE(InspectorSession *self);
void v8_inspector__Session__stop(InspectorSession *session);
void v8_inspector__Session__resume(InspectorSession *session);
void v8_inspector__Session__dispatchProtocolMessage(InspectorSession *session, Isolate *isolate, const char* msg, usize msg_len);
RemoteObject* v8_inspector__Session__wrapObject(
InspectorSession *session, Isolate *isolate,
Expand Down
8 changes: 8 additions & 0 deletions src/v8.zig
Original file line number Diff line number Diff line change
Expand Up @@ -3026,6 +3026,14 @@ pub const InspectorSession = struct {
c.v8_inspector__Session__DELETE(self.handle);
}

pub fn stop(self: InspectorSession) void {
c.v8_inspector__Session__stop(self.handle);
}

pub fn _resume(self: InspectorSession) void {
c.v8_inspector__Session__resume(self.handle);
}

pub fn dispatchProtocolMessage(
self: InspectorSession,
isolate: Isolate,
Expand Down