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

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

Issue 198103004: Remove Dart_AddGcPrologueCallback and Dart_RemoveGcPrologueCallback from the Dart API. (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 538 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 * A callback invoked at the beginning of a garbage collection. 549 * A callback invoked at the beginning of a garbage collection.
550 */ 550 */
551 typedef void (*Dart_GcPrologueCallback)(); 551 typedef void (*Dart_GcPrologueCallback)();
552 552
553 /** 553 /**
554 * A callback invoked at the end of a garbage collection. 554 * A callback invoked at the end of a garbage collection.
555 */ 555 */
556 typedef void (*Dart_GcEpilogueCallback)(); 556 typedef void (*Dart_GcEpilogueCallback)();
557 557
558 /** 558 /**
559 * Adds a garbage collection prologue callback.
560 *
561 * \param callback A function pointer to a prologue callback function.
562 * This function must not have been previously added as a prologue
563 * callback.
564 *
565 * \return Success if the callback was added. Otherwise, returns an
566 * error handle.
567 */
568 DART_EXPORT Dart_Handle Dart_AddGcPrologueCallback(
569 Dart_GcPrologueCallback callback);
570
571 /**
572 * Removes a garbage collection prologue callback.
573 *
574 * \param callback A function pointer to a prologue callback function.
575 * This function must have been added as a prologue callback.
576 *
577 * \return Success if the callback was removed. Otherwise, returns an
578 * error handle.
579 */
580 DART_EXPORT Dart_Handle Dart_RemoveGcPrologueCallback(
581 Dart_GcPrologueCallback callback);
582
583 /**
584 * Adds a garbage collection epilogue callback.
585 *
586 * \param callback A function pointer to an epilogue callback
587 * function. This function must not have been previously added as
588 * an epilogue callback.
589 *
590 * \return Success if the callback was added. Otherwise, returns an
591 * error handle.
592 */
593 DART_EXPORT Dart_Handle Dart_AddGcEpilogueCallback(
594 Dart_GcEpilogueCallback callback);
595
596 /**
597 * Removes a garbage collection epilogue callback.
598 *
599 * \param callback A function pointer to an epilogue callback
600 * function. This function must have been added as an epilogue
601 * callback.
602 *
603 * \return Success if the callback was removed. Otherwise, returns an
604 * error handle.
605 */
606 DART_EXPORT Dart_Handle Dart_RemoveGcEpilogueCallback(
607 Dart_GcEpilogueCallback callback);
608
609 /**
610 * Adds garbage collection callbacks (prologue and epilogue). 559 * Adds garbage collection callbacks (prologue and epilogue).
611 * 560 *
612 * \param prologue_callback A function pointer to a prologue callback function. 561 * \param prologue_callback A function pointer to a prologue callback function.
613 * A prologue callback function should not be already set when this function 562 * A prologue callback function should not be already set when this function
614 * is called. A NULL value removes the existing prologue callback function 563 * is called. A NULL value removes the existing prologue callback function
615 * if any. 564 * if any.
616 * 565 *
617 * \param epilogue_callback A function pointer to an epilogue callback function. 566 * \param epilogue_callback A function pointer to an epilogue callback function.
618 * An epilogue callback function should not be already set when this function 567 * An epilogue callback function should not be already set when this function
619 * is called. A NULL value removes the existing epilogue callback function 568 * is called. A NULL value removes the existing epilogue callback function
(...skipping 1950 matching lines...) Expand 10 before | Expand all | Expand 10 after
2570 * NOTE: If multiple callbacks with the same name are registered, only the 2519 * NOTE: If multiple callbacks with the same name are registered, only the
2571 * last callback registered will be remembered. 2520 * last callback registered will be remembered.
2572 */ 2521 */
2573 DART_EXPORT void Dart_RegisterRootServiceRequestCallback( 2522 DART_EXPORT void Dart_RegisterRootServiceRequestCallback(
2574 const char* name, 2523 const char* name,
2575 Dart_ServiceRequestCallback callback, 2524 Dart_ServiceRequestCallback callback,
2576 void* user_data); 2525 void* user_data);
2577 2526
2578 2527
2579 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ 2528 #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