forked from rogchap/v8go
-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathinspector.h
53 lines (38 loc) · 1.14 KB
/
inspector.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
#ifndef V8GO_INSPECTOR_H
#define V8GO_INSPECTOR_H
#ifdef __cplusplus
namespace v8 {
class Isolate;
};
namespace v8_inspector {
class V8Inspector;
class V8InspectorClient;
}; // namespace v8_inspector
typedef v8::Isolate v8Isolate;
typedef v8_inspector::V8Inspector v8Inspector;
typedef v8_inspector::V8InspectorClient v8InspectorClient;
extern "C" {
#else
typedef struct v8Inspector v8Inspector;
typedef struct v8InspectorClient v8InspectorClient;
typedef struct v8Isolate v8Isolate;
typedef _Bool bool;
#endif
#include <stddef.h>
#include <stdint.h>
typedef struct m_ctx m_ctx;
extern v8Inspector* CreateInspector(v8Isolate* iso, v8InspectorClient* client);
extern void DeleteInspector(v8Inspector* inspector);
extern void InspectorContextCreated(v8Inspector* inspector, m_ctx* context);
extern void InspectorContextDestroyed(v8Inspector* inspector, m_ctx* context);
extern v8InspectorClient* NewInspectorClient(uintptr_t callbackRef);
extern void DeleteInspectorClient(v8InspectorClient* client);
typedef struct StringViewData {
bool is8bit;
void const* data;
int length;
} StringViewData;
#ifdef __cplusplus
} // extern "C"
#endif
#endif