Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(885)

Side by Side Diff: runtime/include/dart_api.h

Issue 25674009: Add framework for Dart_Terminate which will cleanup stuff on exit. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/bin/main.cc ('k') | runtime/vm/code_observers.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2 * Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3 * for details. All rights reserved. Use of this source code is governed by a 3 * for details. All rights reserved. Use of this source code is governed by a
4 * BSD-style license that can be found in the LICENSE file. 4 * BSD-style license that can be found in the LICENSE file.
5 */ 5 */
6 6
7 #ifndef INCLUDE_DART_API_H_ 7 #ifndef INCLUDE_DART_API_H_
8 #define INCLUDE_DART_API_H_ 8 #define INCLUDE_DART_API_H_
9 9
10 /** \mainpage Dart Embedding API Reference 10 /** \mainpage Dart Embedding API Reference
(...skipping 732 matching lines...) Expand 10 before | Expand all | Expand 10 after
743 Dart_IsolateCreateCallback create, 743 Dart_IsolateCreateCallback create,
744 Dart_IsolateInterruptCallback interrupt, 744 Dart_IsolateInterruptCallback interrupt,
745 Dart_IsolateUnhandledExceptionCallback unhandled_exception, 745 Dart_IsolateUnhandledExceptionCallback unhandled_exception,
746 Dart_IsolateShutdownCallback shutdown, 746 Dart_IsolateShutdownCallback shutdown,
747 Dart_FileOpenCallback file_open, 747 Dart_FileOpenCallback file_open,
748 Dart_FileReadCallback file_read, 748 Dart_FileReadCallback file_read,
749 Dart_FileWriteCallback file_write, 749 Dart_FileWriteCallback file_write,
750 Dart_FileCloseCallback file_close); 750 Dart_FileCloseCallback file_close);
751 751
752 /** 752 /**
753 * Cleanup state in the VM before process termination.
754 *
755 * \return True if cleanup is successful.
756 */
757 DART_EXPORT bool Dart_Cleanup();
758
759 /**
753 * Sets command line flags. Should be called before Dart_Initialize. 760 * Sets command line flags. Should be called before Dart_Initialize.
754 * 761 *
755 * \param argc The length of the arguments array. 762 * \param argc The length of the arguments array.
756 * \param argv An array of arguments. 763 * \param argv An array of arguments.
757 * 764 *
758 * \return True if VM flags set successfully. 765 * \return True if VM flags set successfully.
759 */ 766 */
760 DART_EXPORT bool Dart_SetVMFlags(int argc, const char** argv); 767 DART_EXPORT bool Dart_SetVMFlags(int argc, const char** argv);
761 768
762 /** 769 /**
(...skipping 1518 matching lines...) Expand 10 before | Expand all | Expand 10 after
2281 * 2288 *
2282 * \param object An object. 2289 * \param object An object.
2283 * \param peer A value to store in the peer field. 2290 * \param peer A value to store in the peer field.
2284 * 2291 *
2285 * \return Returns an error if 'object' is a subtype of Null, num, or 2292 * \return Returns an error if 'object' is a subtype of Null, num, or
2286 * bool. 2293 * bool.
2287 */ 2294 */
2288 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); 2295 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer);
2289 2296
2290 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ 2297 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */
OLDNEW
« no previous file with comments | « runtime/bin/main.cc ('k') | runtime/vm/code_observers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698