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; |
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
593 * Returns a handle to the library \library_id. | 593 * Returns a handle to the library \library_id. |
594 * | 594 * |
595 * Requires there to be a current isolate. | 595 * Requires there to be a current isolate. |
596 * | 596 * |
597 * \return A library handle if the id is valid. | 597 * \return A library handle if the id is valid. |
598 */ | 598 */ |
599 DART_EXPORT Dart_Handle Dart_GetLibraryFromId(intptr_t library_id); | 599 DART_EXPORT Dart_Handle Dart_GetLibraryFromId(intptr_t library_id); |
600 | 600 |
601 | 601 |
602 /** | 602 /** |
| 603 * Returns in \library_id the library id of the given \library. |
| 604 * |
| 605 * \return A valid handle if no error occurs during the operation. |
| 606 */ |
| 607 DART_EXPORT Dart_Handle Dart_LibraryId(Dart_Handle library, |
| 608 intptr_t* library_id); |
| 609 |
| 610 |
| 611 /** |
603 * Returns an array containing all variable names and values of | 612 * Returns an array containing all variable names and values of |
604 * the given library \library_id. | 613 * the given library \library_id. |
605 * | 614 * |
606 * Requires there to be a current isolate. | 615 * Requires there to be a current isolate. |
607 * | 616 * |
608 * \return A handle to an array containing variable names and | 617 * \return A handle to an array containing variable names and |
609 * corresponding values. The array is empty if the library has | 618 * corresponding values. The array is empty if the library has |
610 * no variables. If non-empty, variable names are at array offsets 2*n, | 619 * no variables. If non-empty, variable names are at array offsets 2*n, |
611 * values at offset 2*n+1. Variable values may also be a handle to an | 620 * values at offset 2*n+1. Variable values may also be a handle to an |
612 * error object if an error was encountered evaluating the value. | 621 * error object if an error was encountered evaluating the value. |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
666 * \param request A REST-like string, which uses '/' to separate | 675 * \param request A REST-like string, which uses '/' to separate |
667 * parameters. The first parameter is always the status type. | 676 * parameters. The first parameter is always the status type. |
668 * | 677 * |
669 * \return The requested status as a JSON formatted string, with the | 678 * \return The requested status as a JSON formatted string, with the |
670 * contents defined by the status plug-in. The caller is responsible | 679 * contents defined by the status plug-in. The caller is responsible |
671 * for freeing this string. | 680 * for freeing this string. |
672 */ | 681 */ |
673 DART_EXPORT char* Dart_GetVmStatus(const char* request); | 682 DART_EXPORT char* Dart_GetVmStatus(const char* request); |
674 | 683 |
675 #endif // INCLUDE_DART_DEBUGGER_API_H_ | 684 #endif // INCLUDE_DART_DEBUGGER_API_H_ |
OLD | NEW |