@@ -1803,7 +1803,7 @@ DART_EXPORT void Dart_SetCurrentThreadOwnsIsolate(void);
18031803 * The port can be the isolate's main port, or any other port owned by the
18041804 * isolate.
18051805 *
1806- * \param port_id The port to be checked.
1806+ * \param port The port to be checked.
18071807 */
18081808DART_EXPORT bool Dart_GetCurrentThreadOwnsIsolate (Dart_Port port );
18091809
@@ -1892,6 +1892,17 @@ DART_EXPORT Dart_Handle Dart_TypeDynamic(void);
18921892DART_EXPORT Dart_Handle Dart_TypeVoid (void );
18931893DART_EXPORT Dart_Handle Dart_TypeNever (void );
18941894
1895+ /**
1896+ * Returns simple core types.
1897+ *
1898+ * \return A handle to type.
1899+ */
1900+ DART_EXPORT Dart_Handle Dart_TypeString ();
1901+ DART_EXPORT Dart_Handle Dart_TypeDouble ();
1902+ DART_EXPORT Dart_Handle Dart_TypeInt ();
1903+ DART_EXPORT Dart_Handle Dart_TypeBoolean ();
1904+ DART_EXPORT Dart_Handle Dart_TypeObject ();
1905+
18951906/**
18961907 * Checks if the two objects are equal.
18971908 *
@@ -2592,6 +2603,26 @@ DART_EXPORT Dart_Handle Dart_MapContainsKey(Dart_Handle map, Dart_Handle key);
25922603 */
25932604DART_EXPORT Dart_Handle Dart_MapKeys (Dart_Handle map );
25942605
2606+ /**
2607+ * Returns a Map filled by key value pairs from the provided lists.
2608+ *
2609+ * \param keys_type Handle to a type of keys. E.g., from
2610+ * Dart_Get<XXX>Type.
2611+ * \param keys_handle Handle to a list with keys. E.g., from
2612+ * Dart_NewList<XXX>.
2613+ * \param values_type Handle to a type of values. E.g., from
2614+ * Dart_Get<XXX>Type.
2615+ * \param values_handle Handle to a list with values. E.g., from
2616+ * Dart_NewList<XXX>.
2617+ *
2618+ * \return The Map object if no error occurs. Otherwise returns
2619+ * an error handle.
2620+ */
2621+ DART_EXPORT Dart_Handle Dart_NewMap (Dart_Handle keys_type ,
2622+ Dart_Handle keys_handle ,
2623+ Dart_Handle values_type ,
2624+ Dart_Handle values_handle );
2625+
25952626/*
25962627 * ==========
25972628 * Typed Data
@@ -3363,7 +3394,7 @@ typedef void* (*Dart_NativeAssetsDlopenCallbackNoPath)(char** error);
33633394 *
33643395 * If provided, takes prescedence over `Dart_NativeAssetsDlopenCallback`.
33653396 *
3366- * \param path The asset id requested in the `@Native` external function.
3397+ * \param asset_id The asset id requested in the `@Native` external function.
33673398 *
33683399 * \param error Returns NULL if successful, an error message otherwise. The
33693400 * caller is responsible for calling free() on the error message.
@@ -3381,7 +3412,7 @@ typedef void* (*Dart_NativeAssetsDlopenAssetId)(const char* asset_id,
33813412 * \return A malloced string containing all asset ids. The caller must free this
33823413 * string.
33833414 */
3384- typedef char * (* Dart_NativeAssetsAvailableAssets )();
3415+ typedef char * (* Dart_NativeAssetsAvailableAssets )(void );
33853416
33863417/**
33873418 * Callback provided by the embedder that is used by the VM to lookup symbols
0 commit comments