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. | |
siva
2014/05/02 17:29:59
The comment should also document the input param a
rmacnak
2014/05/02 21:19:13
Done.
| |
397 */ | |
398 DART_EXPORT uint64_t Dart_IdentityHash(Dart_Handle obj); | |
399 | |
400 /** | |
394 * Allocates a handle in the current scope from a persistent handle. | 401 * Allocates a handle in the current scope from a persistent handle. |
395 */ | 402 */ |
396 DART_EXPORT Dart_Handle Dart_HandleFromPersistent(Dart_PersistentHandle object); | 403 DART_EXPORT Dart_Handle Dart_HandleFromPersistent(Dart_PersistentHandle object); |
397 | 404 |
398 /** | 405 /** |
399 * Allocates a handle in the current scope from a weak persistent handle. | 406 * Allocates a handle in the current scope from a weak persistent handle. |
400 */ | 407 */ |
401 DART_EXPORT Dart_Handle Dart_HandleFromWeakPersistent( | 408 DART_EXPORT Dart_Handle Dart_HandleFromWeakPersistent( |
402 Dart_WeakPersistentHandle object); | 409 Dart_WeakPersistentHandle object); |
403 | 410 |
(...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 | 2635 * NOTE: If multiple callbacks with the same name are registered, only the |
2629 * last callback registered will be remembered. | 2636 * last callback registered will be remembered. |
2630 */ | 2637 */ |
2631 DART_EXPORT void Dart_RegisterRootServiceRequestCallback( | 2638 DART_EXPORT void Dart_RegisterRootServiceRequestCallback( |
2632 const char* name, | 2639 const char* name, |
2633 Dart_ServiceRequestCallback callback, | 2640 Dart_ServiceRequestCallback callback, |
2634 void* user_data); | 2641 void* user_data); |
2635 | 2642 |
2636 | 2643 |
2637 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ | 2644 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ |
OLD | NEW |