Chromium Code Reviews| Index: runtime/include/dart_api.h |
| =================================================================== |
| --- runtime/include/dart_api.h (revision 23883) |
| +++ runtime/include/dart_api.h (working copy) |
| @@ -2274,6 +2274,22 @@ |
| /* TODO(turnidge): Consider renaming to NativeFunctionResolver or |
| * NativeResolver. */ |
| + |
| +/* --- Metadata support --- */ |
| + |
| +/** |
| + * Get metadata associated with an object. |
| + * |
| + * \param obj Object for which the metadata is retrieved. |
| + * |
| + * \return If no error occurs, returns an array of metadata values. |
| + * Returns and empty array if there is no metadata for the object. |
|
siva
2013/06/12 00:16:52
Returns an
hausner
2013/06/12 01:10:05
Done.
|
| + * Returns an error if the evaluation of the metadata expressions fails. |
| + * |
| + */ |
| +DART_EXPORT Dart_Handle Dart_GetMetadata(Dart_Handle obj); |
| + |
| + |
| /* --- Scripts and Libraries --- |
| * TODO(turnidge): Finish documenting this section. */ |