-
Notifications
You must be signed in to change notification settings - Fork 307
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #861 from huang12zheng/wasm_no_decl_pr
fix #860
- Loading branch information
Showing
20 changed files
with
370 additions
and
173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
84 changes: 84 additions & 0 deletions
84
frb_example/pure_dart_multi/dart/lib/bridge_generated_api_1.io.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
// AUTO GENERATED FILE, DO NOT EDIT. | ||
// Generated by `flutter_rust_bridge`@ 1.50.0. | ||
// ignore_for_file: non_constant_identifier_names, unused_element, duplicate_ignore, directives_ordering, curly_braces_in_flow_control_structures, unnecessary_lambdas, slash_for_doc_comments, prefer_const_literals_to_create_immutables, implicit_dynamic_list_literal, duplicate_import, unused_import, prefer_single_quotes, prefer_const_constructors, use_super_parameters, always_use_package_imports, annotate_overrides, invalid_use_of_protected_member, constant_identifier_names, invalid_use_of_internal_member | ||
|
||
import 'dart:convert'; | ||
import 'dart:async'; | ||
import 'package:flutter_rust_bridge/flutter_rust_bridge.dart'; | ||
import 'bridge_generated_api_1.dart'; | ||
export 'bridge_generated_api_1.dart'; | ||
import 'package:meta/meta.dart'; | ||
import 'dart:ffi' as ffi; | ||
|
||
class ApiClass1Platform extends FlutterRustBridgeBase<ApiClass1Wire> { | ||
ApiClass1Platform(ffi.DynamicLibrary dylib) : super(ApiClass1Wire(dylib)); | ||
// Section: api2wire | ||
|
||
// Section: finalizer | ||
|
||
// Section: api_fill_to_wire | ||
|
||
} | ||
|
||
// ignore_for_file: camel_case_types, non_constant_identifier_names, avoid_positional_boolean_parameters, annotate_overrides, constant_identifier_names | ||
|
||
// AUTO GENERATED FILE, DO NOT EDIT. | ||
// | ||
// Generated by `package:ffigen`. | ||
|
||
/// generated by flutter_rust_bridge | ||
class ApiClass1Wire implements FlutterRustBridgeWireBase { | ||
/// Holds the symbol lookup function. | ||
final ffi.Pointer<T> Function<T extends ffi.NativeType>(String symbolName) _lookup; | ||
|
||
/// The symbols are looked up in [dynamicLibrary]. | ||
ApiClass1Wire(ffi.DynamicLibrary dynamicLibrary) : _lookup = dynamicLibrary.lookup; | ||
|
||
/// The symbols are looked up with [lookup]. | ||
ApiClass1Wire.fromLookup(ffi.Pointer<T> Function<T extends ffi.NativeType>(String symbolName) lookup) | ||
: _lookup = lookup; | ||
|
||
void store_dart_post_cobject( | ||
DartPostCObjectFnType ptr, | ||
) { | ||
return _store_dart_post_cobject( | ||
ptr, | ||
); | ||
} | ||
|
||
late final _store_dart_post_cobjectPtr = | ||
_lookup<ffi.NativeFunction<ffi.Void Function(DartPostCObjectFnType)>>('store_dart_post_cobject'); | ||
late final _store_dart_post_cobject = _store_dart_post_cobjectPtr.asFunction<void Function(DartPostCObjectFnType)>(); | ||
|
||
void wire_simple_adder_1( | ||
int port_, | ||
int a, | ||
int b, | ||
) { | ||
return _wire_simple_adder_1( | ||
port_, | ||
a, | ||
b, | ||
); | ||
} | ||
|
||
late final _wire_simple_adder_1Ptr = | ||
_lookup<ffi.NativeFunction<ffi.Void Function(ffi.Int64, ffi.Int32, ffi.Int32)>>('wire_simple_adder_1'); | ||
late final _wire_simple_adder_1 = _wire_simple_adder_1Ptr.asFunction<void Function(int, int, int)>(); | ||
|
||
void free_WireSyncReturnStruct( | ||
WireSyncReturnStruct val, | ||
) { | ||
return _free_WireSyncReturnStruct( | ||
val, | ||
); | ||
} | ||
|
||
late final _free_WireSyncReturnStructPtr = | ||
_lookup<ffi.NativeFunction<ffi.Void Function(WireSyncReturnStruct)>>('free_WireSyncReturnStruct'); | ||
late final _free_WireSyncReturnStruct = | ||
_free_WireSyncReturnStructPtr.asFunction<void Function(WireSyncReturnStruct)>(); | ||
} | ||
|
||
typedef DartPostCObjectFnType = ffi.Pointer<ffi.NativeFunction<ffi.Bool Function(DartPort, ffi.Pointer<ffi.Void>)>>; | ||
typedef DartPort = ffi.Int64; |
Oops, something went wrong.