OLD | NEW |
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 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 * argument handles refer to the same object. | 384 * argument handles refer to the same object. |
385 * | 385 * |
386 * \param obj1 An object to be compared. | 386 * \param obj1 An object to be compared. |
387 * \param obj2 An object to be compared. | 387 * \param obj2 An object to be compared. |
388 * | 388 * |
389 * \return True if the objects are identically equal. False otherwise. | 389 * \return True if the objects are identically equal. False otherwise. |
390 */ | 390 */ |
391 DART_EXPORT bool Dart_IdentityEquals(Dart_Handle obj1, Dart_Handle obj2); | 391 DART_EXPORT bool Dart_IdentityEquals(Dart_Handle obj1, Dart_Handle obj2); |
392 | 392 |
393 /** | 393 /** |
| 394 * Returns a hash code for the argument. The hash code of objects that are equal |
| 395 * according to Dart_IdentityEquals will return the same hash code, but the hash |
| 396 * codes of non-equal objects are not necessarily distinct. |
| 397 * |
| 398 * \param obj An object for which to derive a hash code. |
| 399 * |
| 400 * \return A hash code for the parameter. |
| 401 */ |
| 402 DART_EXPORT uint64_t Dart_IdentityHash(Dart_Handle obj); |
| 403 |
| 404 /** |
394 * Allocates a handle in the current scope from a persistent handle. | 405 * Allocates a handle in the current scope from a persistent handle. |
395 */ | 406 */ |
396 DART_EXPORT Dart_Handle Dart_HandleFromPersistent(Dart_PersistentHandle object); | 407 DART_EXPORT Dart_Handle Dart_HandleFromPersistent(Dart_PersistentHandle object); |
397 | 408 |
398 /** | 409 /** |
399 * Allocates a handle in the current scope from a weak persistent handle. | 410 * Allocates a handle in the current scope from a weak persistent handle. |
400 */ | 411 */ |
401 DART_EXPORT Dart_Handle Dart_HandleFromWeakPersistent( | 412 DART_EXPORT Dart_Handle Dart_HandleFromWeakPersistent( |
402 Dart_WeakPersistentHandle object); | 413 Dart_WeakPersistentHandle object); |
403 | 414 |
(...skipping 2224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2628 * NOTE: If multiple callbacks with the same name are registered, only the | 2639 * NOTE: If multiple callbacks with the same name are registered, only the |
2629 * last callback registered will be remembered. | 2640 * last callback registered will be remembered. |
2630 */ | 2641 */ |
2631 DART_EXPORT void Dart_RegisterRootServiceRequestCallback( | 2642 DART_EXPORT void Dart_RegisterRootServiceRequestCallback( |
2632 const char* name, | 2643 const char* name, |
2633 Dart_ServiceRequestCallback callback, | 2644 Dart_ServiceRequestCallback callback, |
2634 void* user_data); | 2645 void* user_data); |
2635 | 2646 |
2636 | 2647 |
2637 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ | 2648 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ |
OLD | NEW |