| Index: include/v8-debug.h
|
| ===================================================================
|
| --- include/v8-debug.h (revision 1312)
|
| +++ include/v8-debug.h (working copy)
|
| @@ -99,13 +99,24 @@
|
| *
|
| * \param message the debug message
|
| * \param length length of the message
|
| + * \param data the data value passed when registering the message handler
|
| * A DebugMessageHandler does not take posession of the message string,
|
| * and must not rely on the data persisting after the handler returns.
|
| */
|
| typedef void (*DebugMessageHandler)(const uint16_t* message, int length,
|
| void* data);
|
|
|
| +/**
|
| + * Debug host dispatch callback function.
|
| + *
|
| + * \param dispatch the dispatch value
|
| + * \param data the data value passed when registering the dispatch handler
|
| + */
|
| +typedef void (*DebugHostDispatchHandler)(void* dispatch,
|
| + void* data);
|
|
|
| +
|
| +
|
| class EXPORT Debug {
|
| public:
|
| // Set a C debug event listener.
|
| @@ -123,6 +134,11 @@
|
| static void SetMessageHandler(DebugMessageHandler handler, void* data = NULL);
|
| static void SendCommand(const uint16_t* command, int length);
|
|
|
| + // Dispatch interface.
|
| + static void SetHostDispatchHandler(DebugHostDispatchHandler handler,
|
| + void* data = NULL);
|
| + static void SendHostDispatch(void* dispatch);
|
| +
|
| /**
|
| * Run a JavaScript function in the debugger.
|
| * \param fun the function to call
|
|
|