diff --git a/src/binding.cpp b/src/binding.cpp index 882219d..b7f4676 100644 --- a/src/binding.cpp +++ b/src/binding.cpp @@ -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) { diff --git a/src/binding.h b/src/binding.h index 7cfabcf..930a283 100644 --- a/src/binding.h +++ b/src/binding.h @@ -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, diff --git a/src/v8.zig b/src/v8.zig index e6b0301..27dbacb 100644 --- a/src/v8.zig +++ b/src/v8.zig @@ -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,