| 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 1963 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1974 int arg_index, | 1974 int arg_index, |
| 1975 int fld_index, | 1975 int fld_index, |
| 1976 intptr_t* value); | 1976 intptr_t* value); |
| 1977 | 1977 |
| 1978 /** | 1978 /** |
| 1979 * Sets the return value for a native function. | 1979 * Sets the return value for a native function. |
| 1980 */ | 1980 */ |
| 1981 DART_EXPORT void Dart_SetReturnValue(Dart_NativeArguments args, | 1981 DART_EXPORT void Dart_SetReturnValue(Dart_NativeArguments args, |
| 1982 Dart_Handle retval); | 1982 Dart_Handle retval); |
| 1983 | 1983 |
| 1984 DART_EXPORT void Dart_SetBooleanReturnValue(Dart_NativeArguments args, |
| 1985 bool retval); |
| 1986 |
| 1987 DART_EXPORT void Dart_SetIntegerReturnValue(Dart_NativeArguments args, |
| 1988 intptr_t retval); |
| 1989 |
| 1990 DART_EXPORT void Dart_SetDoubleReturnValue(Dart_NativeArguments args, |
| 1991 double retval); |
| 1992 |
| 1984 /** | 1993 /** |
| 1985 * A native function. | 1994 * A native function. |
| 1986 */ | 1995 */ |
| 1987 typedef void (*Dart_NativeFunction)(Dart_NativeArguments arguments); | 1996 typedef void (*Dart_NativeFunction)(Dart_NativeArguments arguments); |
| 1988 | 1997 |
| 1989 /** | 1998 /** |
| 1990 * Native entry resolution callback. | 1999 * Native entry resolution callback. |
| 1991 * | 2000 * |
| 1992 * For libraries and scripts which have native functions, the embedder | 2001 * For libraries and scripts which have native functions, the embedder |
| 1993 * can provide a native entry resolver. This callback is used to map a | 2002 * can provide a native entry resolver. This callback is used to map a |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2207 * | 2216 * |
| 2208 * \param object An object. | 2217 * \param object An object. |
| 2209 * \param peer A value to store in the peer field. | 2218 * \param peer A value to store in the peer field. |
| 2210 * | 2219 * |
| 2211 * \return Returns an error if 'object' is a subtype of Null, num, or | 2220 * \return Returns an error if 'object' is a subtype of Null, num, or |
| 2212 * bool. | 2221 * bool. |
| 2213 */ | 2222 */ |
| 2214 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); | 2223 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); |
| 2215 | 2224 |
| 2216 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ | 2225 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ |
| OLD | NEW |