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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/include/dart_api.h
===================================================================
--- runtime/include/dart_api.h (revision 33620)
+++ runtime/include/dart_api.h (working copy)
@@ -606,6 +606,25 @@
DART_EXPORT Dart_Handle Dart_RemoveGcEpilogueCallback(
Dart_GcEpilogueCallback callback);
+/**
+ * Adds garbage collection callbacks (prologue and epilogue).
+ *
+ * \param prologue_callback A function pointer to a prologue callback function.
+ * A prologue callback function should not be already set when this function
+ * is called. A NULL value removes the existing prologue callback function
+ * if any.
+ *
+ * \param epilogue_callback A function pointer to an epilogue callback function.
+ * An epilogue callback function should not be already set when this function
+ * is called. A NULL value removes the existing epilogue callback function
+ * if any.
+ *
+ * \return Success if the callbacks were added. Otherwise, returns an
+ * error handle.
+ */
+DART_EXPORT Dart_Handle Dart_SetGcCallbacks(
+ Dart_GcPrologueCallback prologue_callback,
+ Dart_GcEpilogueCallback epilogue_callback);
/*
* ==========================
« 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