| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef INCLUDE_DART_DEBUGGER_API_H_ | 5 #ifndef INCLUDE_DART_DEBUGGER_API_H_ |
| 6 #define INCLUDE_DART_DEBUGGER_API_H_ | 6 #define INCLUDE_DART_DEBUGGER_API_H_ |
| 7 | 7 |
| 8 #include "include/dart_api.h" | 8 #include "include/dart_api.h" |
| 9 | 9 |
| 10 typedef struct _Dart_Breakpoint* Dart_Breakpoint; | 10 typedef struct _Dart_Breakpoint* Dart_Breakpoint; |
| 11 | 11 |
| 12 typedef struct _Dart_StackTrace* Dart_StackTrace; | 12 typedef struct _Dart_StackTrace* Dart_StackTrace; |
| 13 | 13 |
| 14 typedef struct _Dart_ActivationFrame* Dart_ActivationFrame; | 14 typedef struct _Dart_ActivationFrame* Dart_ActivationFrame; |
| 15 | 15 |
| 16 /** | 16 /** |
| 17 * An id used to uniquely represent an Isolate in the debugger wire protocol | 17 * An id used to uniquely represent an Isolate in the debugger wire protocol |
| 18 * messages. | 18 * messages. |
| 19 */ | 19 */ |
| 20 typedef Dart_Port Dart_IsolateId; | 20 typedef Dart_Port Dart_IsolateId; |
| 21 | 21 |
| 22 /** | 22 /** |
| 23 * ILLEGAL_ISOLATE_ID is a number guaranteed never to be associated with a | 23 * ILLEGAL_ISOLATE_ID is a number guaranteed never to be associated with a |
| 24 * valid isolate. | 24 * valid isolate. |
| 25 */ | 25 */ |
| 26 #define ILLEGAL_ISOLATE_ID ILLEGAL_PORT | 26 #define ILLEGAL_ISOLATE_ID ILLEGAL_PORT |
| 27 | 27 |
| 28 typedef void Dart_BreakpointHandler( | 28 typedef void Dart_BreakpointHandler(Dart_IsolateId isolate_id, |
| 29 Dart_Breakpoint breakpoint, | 29 Dart_Breakpoint breakpoint, |
| 30 Dart_StackTrace stack_trace); | 30 Dart_StackTrace stack_trace); |
| 31 | 31 |
| 32 typedef void Dart_BreakpointResolvedHandler( | 32 typedef void Dart_BreakpointResolvedHandler(Dart_IsolateId isolate_id, |
| 33 intptr_t bp_id, | 33 intptr_t bp_id, |
| 34 Dart_Handle url, | 34 Dart_Handle url, |
| 35 intptr_t line_number); | 35 intptr_t line_number); |
| 36 | 36 |
| 37 typedef void Dart_ExceptionThrownHandler( | 37 typedef void Dart_ExceptionThrownHandler(Dart_IsolateId isolate_id, |
| 38 Dart_Handle exception_object, | 38 Dart_Handle exception_object, |
| 39 Dart_StackTrace stack_trace); | 39 Dart_StackTrace stack_trace); |
| 40 | 40 |
| 41 typedef enum { | 41 typedef enum { |
| 42 kCreated = 0, | 42 kCreated = 0, |
| 43 kInterrupted, | 43 kInterrupted, |
| 44 kShutdown, | 44 kShutdown, |
| 45 } Dart_IsolateEvent; | 45 } Dart_IsolateEvent; |
| 46 | 46 |
| 47 typedef void Dart_IsolateEventHandler(Dart_IsolateId isolate_id, | 47 typedef void Dart_IsolateEventHandler(Dart_IsolateId isolate_id, |
| 48 Dart_IsolateEvent kind); | 48 Dart_IsolateEvent kind); |
| 49 | 49 |
| (...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 557 | 557 |
| 558 /** | 558 /** |
| 559 * Returns the isolate object corresponding to the isolate id. | 559 * Returns the isolate object corresponding to the isolate id. |
| 560 * | 560 * |
| 561 * \return The Dart_Isolate object corresponding to the isolate id. | 561 * \return The Dart_Isolate object corresponding to the isolate id. |
| 562 * If the specified id is invalid NULL is returned. | 562 * If the specified id is invalid NULL is returned. |
| 563 */ | 563 */ |
| 564 DART_EXPORT Dart_Isolate Dart_GetIsolate(Dart_IsolateId isolate_id); | 564 DART_EXPORT Dart_Isolate Dart_GetIsolate(Dart_IsolateId isolate_id); |
| 565 | 565 |
| 566 #endif // INCLUDE_DART_DEBUGGER_API_H_ | 566 #endif // INCLUDE_DART_DEBUGGER_API_H_ |
| OLD | NEW |