Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(693)

Unified Diff: runtime/include/dart_api.h

Issue 10867032: Beginning support for library prefixes in the dart API. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Use Dart_Null in builtin.cc Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/builtin_nolib.cc ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/include/dart_api.h
diff --git a/runtime/include/dart_api.h b/runtime/include/dart_api.h
index 0b3f0e30c2c0e820c5d8e3c116f21c0ecce0bb87..b2bd040cc7a620effd944be66fced15c96e1f096 100755
--- a/runtime/include/dart_api.h
+++ b/runtime/include/dart_api.h
@@ -2578,9 +2578,20 @@ DART_EXPORT Dart_Handle Dart_LookupLibrary(Dart_Handle url);
DART_EXPORT Dart_Handle Dart_LoadLibrary(Dart_Handle url,
Dart_Handle source);
-
+/**
+ * Imports a library into another library, optionally with a prefix.
+ * If no prefix is required, an empty string or Dart_Null() can be
+ * supplied.
+ *
+ * \param library The library into which to import another library.
+ * \param import The library to import.
+ * \param prefix The prefix under which to import.
+ *
+ * \return A valid handle if no error occurs during the operation.
+ */
DART_EXPORT Dart_Handle Dart_LibraryImportLibrary(Dart_Handle library,
- Dart_Handle import);
+ Dart_Handle import,
+ Dart_Handle prefix);
/**
* Loads a source string into a library.
« no previous file with comments | « runtime/bin/builtin_nolib.cc ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698