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 1381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1392 * \param value The value of the integer. | 1392 * \param value The value of the integer. |
1393 * | 1393 * |
1394 * \return The Integer object if no error occurs. Otherwise returns | 1394 * \return The Integer object if no error occurs. Otherwise returns |
1395 * an error handle. | 1395 * an error handle. |
1396 */ | 1396 */ |
1397 DART_EXPORT Dart_Handle Dart_NewInteger(int64_t value); | 1397 DART_EXPORT Dart_Handle Dart_NewInteger(int64_t value); |
1398 | 1398 |
1399 /** | 1399 /** |
1400 * Returns an Integer with the provided value. | 1400 * Returns an Integer with the provided value. |
1401 * | 1401 * |
1402 * \param value The value of the integer. | |
siva
2015/04/14 17:42:45
Unsigned value of the integer
rmacnak
2015/04/14 17:51:45
Done.
| |
1403 * | |
1404 * \return The Integer object if no error occurs. Otherwise returns | |
1405 * an error handle. | |
1406 */ | |
1407 DART_EXPORT Dart_Handle Dart_NewIntegerFromUint64(uint64_t value); | |
1408 | |
1409 /** | |
1410 * Returns an Integer with the provided value. | |
1411 * | |
1402 * \param value The value of the integer represented as a C string | 1412 * \param value The value of the integer represented as a C string |
1403 * containing a hexadecimal number. | 1413 * containing a hexadecimal number. |
1404 * | 1414 * |
1405 * \return The Integer object if no error occurs. Otherwise returns | 1415 * \return The Integer object if no error occurs. Otherwise returns |
1406 * an error handle. | 1416 * an error handle. |
1407 */ | 1417 */ |
1408 DART_EXPORT Dart_Handle Dart_NewIntegerFromHexCString(const char* value); | 1418 DART_EXPORT Dart_Handle Dart_NewIntegerFromHexCString(const char* value); |
1409 | 1419 |
1410 /** | 1420 /** |
1411 * Gets the value of an Integer. | 1421 * Gets the value of an Integer. |
(...skipping 1422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2834 * NOTE: If multiple callbacks with the same name are registered, only the | 2844 * NOTE: If multiple callbacks with the same name are registered, only the |
2835 * last callback registered will be remembered. | 2845 * last callback registered will be remembered. |
2836 */ | 2846 */ |
2837 DART_EXPORT void Dart_RegisterRootServiceRequestCallback( | 2847 DART_EXPORT void Dart_RegisterRootServiceRequestCallback( |
2838 const char* name, | 2848 const char* name, |
2839 Dart_ServiceRequestCallback callback, | 2849 Dart_ServiceRequestCallback callback, |
2840 void* user_data); | 2850 void* user_data); |
2841 | 2851 |
2842 | 2852 |
2843 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ | 2853 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ |
OLD | NEW |