| 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 1958 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1969 | 1969 |
| 1970 /** | 1970 /** |
| 1971 * Gets the native instance field of the native argument at some index. | 1971 * Gets the native instance field of the native argument at some index. |
| 1972 */ | 1972 */ |
| 1973 DART_EXPORT Dart_Handle Dart_GetNativeFieldOfArgument(Dart_NativeArguments args, | 1973 DART_EXPORT Dart_Handle Dart_GetNativeFieldOfArgument(Dart_NativeArguments args, |
| 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 * Gets the native field of the receiver. |
| 1980 */ |
| 1981 DART_EXPORT Dart_Handle Dart_GetNativeReceiver(Dart_NativeArguments args, |
| 1982 intptr_t* value); |
| 1983 |
| 1984 /** |
| 1979 * Sets the return value for a native function. | 1985 * Sets the return value for a native function. |
| 1980 */ | 1986 */ |
| 1981 DART_EXPORT void Dart_SetReturnValue(Dart_NativeArguments args, | 1987 DART_EXPORT void Dart_SetReturnValue(Dart_NativeArguments args, |
| 1982 Dart_Handle retval); | 1988 Dart_Handle retval); |
| 1983 | 1989 |
| 1984 DART_EXPORT void Dart_SetBooleanReturnValue(Dart_NativeArguments args, | 1990 DART_EXPORT void Dart_SetBooleanReturnValue(Dart_NativeArguments args, |
| 1985 bool retval); | 1991 bool retval); |
| 1986 | 1992 |
| 1987 DART_EXPORT void Dart_SetIntegerReturnValue(Dart_NativeArguments args, | 1993 DART_EXPORT void Dart_SetIntegerReturnValue(Dart_NativeArguments args, |
| 1988 intptr_t retval); | 1994 intptr_t retval); |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2216 * | 2222 * |
| 2217 * \param object An object. | 2223 * \param object An object. |
| 2218 * \param peer A value to store in the peer field. | 2224 * \param peer A value to store in the peer field. |
| 2219 * | 2225 * |
| 2220 * \return Returns an error if 'object' is a subtype of Null, num, or | 2226 * \return Returns an error if 'object' is a subtype of Null, num, or |
| 2221 * bool. | 2227 * bool. |
| 2222 */ | 2228 */ |
| 2223 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); | 2229 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); |
| 2224 | 2230 |
| 2225 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ | 2231 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ |
| OLD | NEW |