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

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

Issue 197963002: Remove the ability to allow multiple gc prologue and gc epilogue callbacks (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 9 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 | « no previous file | runtime/vm/dart_api_impl.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 588 matching lines...) Expand 10 before | Expand all | Expand 10 after
599 * \param callback A function pointer to an epilogue callback 599 * \param callback A function pointer to an epilogue callback
600 * function. This function must have been added as an epilogue 600 * function. This function must have been added as an epilogue
601 * callback. 601 * callback.
602 * 602 *
603 * \return Success if the callback was removed. Otherwise, returns an 603 * \return Success if the callback was removed. Otherwise, returns an
604 * error handle. 604 * error handle.
605 */ 605 */
606 DART_EXPORT Dart_Handle Dart_RemoveGcEpilogueCallback( 606 DART_EXPORT Dart_Handle Dart_RemoveGcEpilogueCallback(
607 Dart_GcEpilogueCallback callback); 607 Dart_GcEpilogueCallback callback);
608 608
609 /**
610 * Adds garbage collection callbacks (prologue and epilogue).
611 *
612 * \param prologue_callback A function pointer to a prologue callback function.
613 * A prologue callback function should not be already set when this function
614 * is called. A NULL value removes the existing prologue callback function
615 * if any.
616 *
617 * \param epilogue_callback A function pointer to an epilogue callback function.
618 * An epilogue callback function should not be already set when this function
619 * is called. A NULL value removes the existing epilogue callback function
620 * if any.
621 *
622 * \return Success if the callbacks were added. Otherwise, returns an
623 * error handle.
624 */
625 DART_EXPORT Dart_Handle Dart_SetGcCallbacks(
626 Dart_GcPrologueCallback prologue_callback,
627 Dart_GcEpilogueCallback epilogue_callback);
609 628
610 /* 629 /*
611 * ========================== 630 * ==========================
612 * Initialization and Globals 631 * Initialization and Globals
613 * ========================== 632 * ==========================
614 */ 633 */
615 634
616 /** 635 /**
617 * Gets the version string for the Dart VM. 636 * Gets the version string for the Dart VM.
618 * 637 *
(...skipping 1932 matching lines...) Expand 10 before | Expand all | Expand 10 after
2551 * NOTE: If multiple callbacks with the same name are registered, only the 2570 * NOTE: If multiple callbacks with the same name are registered, only the
2552 * last callback registered will be remembered. 2571 * last callback registered will be remembered.
2553 */ 2572 */
2554 DART_EXPORT void Dart_RegisterRootServiceRequestCallback( 2573 DART_EXPORT void Dart_RegisterRootServiceRequestCallback(
2555 const char* name, 2574 const char* name,
2556 Dart_ServiceRequestCallback callback, 2575 Dart_ServiceRequestCallback callback,
2557 void* user_data); 2576 void* user_data);
2558 2577
2559 2578
2560 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ 2579 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698