diff --git a/flutter/.gitignore b/flutter/.gitignore index e5db34d22..fdd17a5ed 100644 --- a/flutter/.gitignore +++ b/flutter/.gitignore @@ -32,7 +32,6 @@ /build/ # Web related -lib/generated_plugin_registrant.dart # Symbolication related app.*.symbols @@ -44,8 +43,6 @@ jniLibs .vscode # flutter rust bridge -lib/generated_bridge.dart -lib/generated_bridge.freezed.dart # Flutter Generated Files **/flutter/GeneratedPluginRegistrant.swift diff --git a/flutter/lib/generated_bridge.dart b/flutter/lib/generated_bridge.dart new file mode 100644 index 000000000..8fa7706aa --- /dev/null +++ b/flutter/lib/generated_bridge.dart @@ -0,0 +1,4047 @@ +// AUTO GENERATED FILE, DO NOT EDIT. +// Generated by `flutter_rust_bridge`. + +// 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 + +import 'dart:convert'; +import 'dart:typed_data'; +import 'package:freezed_annotation/freezed_annotation.dart'; + +import 'dart:convert'; +import 'dart:typed_data'; +import 'package:flutter_rust_bridge/flutter_rust_bridge.dart'; +import 'dart:ffi' as ffi; + +part 'generated_bridge.freezed.dart'; + +abstract class Rustdesk { + /// FFI for rustdesk core's main entry. + /// Return true if the app should continue running with UI(possibly Flutter), false if the app should exit. + Future rustdeskCoreMain({dynamic hint}); + + Stream startGlobalEventStream( + {required String appType, dynamic hint}); + + Future stopGlobalEventStream({required String appType, dynamic hint}); + + Future hostStopSystemKeyPropagate( + {required bool stopped, dynamic hint}); + + Stream sessionConnect( + {required String id, required bool isFileTransfer, dynamic hint}); + + Future sessionGetRemember({required String id, dynamic hint}); + + Future sessionGetToggleOption( + {required String id, required String arg, dynamic hint}); + + bool sessionGetToggleOptionSync( + {required String id, required String arg, dynamic hint}); + + Future sessionGetImageQuality({required String id, dynamic hint}); + + Future sessionGetOption( + {required String id, required String arg, dynamic hint}); + + Future sessionLogin( + {required String id, + required String password, + required bool remember, + dynamic hint}); + + Future sessionClose({required String id, dynamic hint}); + + Future sessionRefresh({required String id, dynamic hint}); + + Future sessionReconnect({required String id, dynamic hint}); + + Future sessionToggleOption( + {required String id, required String value, dynamic hint}); + + Future sessionSetImageQuality( + {required String id, required String value, dynamic hint}); + + Future sessionLockScreen({required String id, dynamic hint}); + + Future sessionCtrlAltDel({required String id, dynamic hint}); + + Future sessionSwitchDisplay( + {required String id, required int value, dynamic hint}); + + Future sessionInputRawKey( + {required String id, + required int keycode, + required int scancode, + required bool down, + dynamic hint}); + + Future sessionInputKey( + {required String id, + required String name, + required bool down, + required bool press, + required bool alt, + required bool ctrl, + required bool shift, + required bool command, + dynamic hint}); + + Future sessionInputString( + {required String id, required String value, dynamic hint}); + + Future sessionSendChat( + {required String id, required String text, dynamic hint}); + + Future sessionPeerOption( + {required String id, + required String name, + required String value, + dynamic hint}); + + Future sessionGetPeerOption( + {required String id, required String name, dynamic hint}); + + Future sessionInputOsPassword( + {required String id, required String value, dynamic hint}); + + Future sessionReadRemoteDir( + {required String id, + required String path, + required bool includeHidden, + dynamic hint}); + + Future sessionSendFiles( + {required String id, + required int actId, + required String path, + required String to, + required int fileNum, + required bool includeHidden, + required bool isRemote, + dynamic hint}); + + Future sessionSetConfirmOverrideFile( + {required String id, + required int actId, + required int fileNum, + required bool needOverride, + required bool remember, + required bool isUpload, + dynamic hint}); + + Future sessionRemoveFile( + {required String id, + required int actId, + required String path, + required int fileNum, + required bool isRemote, + dynamic hint}); + + Future sessionReadDirRecursive( + {required String id, + required int actId, + required String path, + required bool isRemote, + required bool showHidden, + dynamic hint}); + + Future sessionRemoveAllEmptyDirs( + {required String id, + required int actId, + required String path, + required bool isRemote, + dynamic hint}); + + Future sessionCancelJob( + {required String id, required int actId, dynamic hint}); + + Future sessionCreateDir( + {required String id, + required int actId, + required String path, + required bool isRemote, + dynamic hint}); + + Future sessionReadLocalDirSync( + {required String id, + required String path, + required bool showHidden, + dynamic hint}); + + Future sessionGetPlatform( + {required String id, required bool isRemote, dynamic hint}); + + Future sessionLoadLastTransferJobs({required String id, dynamic hint}); + + Future sessionAddJob( + {required String id, + required int actId, + required String path, + required String to, + required int fileNum, + required bool includeHidden, + required bool isRemote, + dynamic hint}); + + Future sessionResumeJob( + {required String id, + required int actId, + required bool isRemote, + dynamic hint}); + + Future> mainGetSoundInputs({dynamic hint}); + + Future mainChangeId({required String newId, dynamic hint}); + + Future mainGetAsyncStatus({dynamic hint}); + + Future mainGetOption({required String key, dynamic hint}); + + Future mainSetOption( + {required String key, required String value, dynamic hint}); + + Future mainGetOptions({dynamic hint}); + + Future mainSetOptions({required String json, dynamic hint}); + + Future mainTestIfValidServer({required String server, dynamic hint}); + + Future mainSetSocks( + {required String proxy, + required String username, + required String password, + dynamic hint}); + + Future> mainGetSocks({dynamic hint}); + + Future mainGetAppName({dynamic hint}); + + Future mainGetLicense({dynamic hint}); + + Future mainGetVersion({dynamic hint}); + + Future> mainGetFav({dynamic hint}); + + Future mainStoreFav({required List favs, dynamic hint}); + + Future mainGetPeer({required String id, dynamic hint}); + + Future mainGetLanPeers({dynamic hint}); + + Future mainGetConnectStatus({dynamic hint}); + + Future mainCheckConnectStatus({dynamic hint}); + + Future mainIsUsingPublicServer({dynamic hint}); + + Future mainDiscover({dynamic hint}); + + Future mainHasRendezvousService({dynamic hint}); + + Future mainGetApiServer({dynamic hint}); + + Future mainPostRequest( + {required String url, + required String body, + required String header, + dynamic hint}); + + Future mainGetLocalOption({required String key, dynamic hint}); + + Future mainSetLocalOption( + {required String key, required String value, dynamic hint}); + + Future mainGetMyId({dynamic hint}); + + Future mainGetUuid({dynamic hint}); + + Future mainGetPeerOption( + {required String id, required String key, dynamic hint}); + + Future mainSetPeerOption( + {required String id, + required String key, + required String value, + dynamic hint}); + + Future mainForgetPassword({required String id, dynamic hint}); + + Future mainGetRecentPeers({dynamic hint}); + + Future mainLoadRecentPeers({dynamic hint}); + + Future mainLoadFavPeers({dynamic hint}); + + Future mainLoadLanPeers({dynamic hint}); + + Future mainGetLastRemoteId({dynamic hint}); + + Future mainGetSoftwareUpdateUrl({dynamic hint}); + + Future mainGetHomeDir({dynamic hint}); + + Future mainGetLangs({dynamic hint}); + + Future mainGetTemporaryPassword({dynamic hint}); + + Future mainGetPermanentPassword({dynamic hint}); + + Future mainGetOnlineStatue({dynamic hint}); + + Future mainGetClientsState({dynamic hint}); + + Future mainCheckClientsLength({required int length, dynamic hint}); + + Future mainInit({required String appDir, dynamic hint}); + + Future mainDeviceId({required String id, dynamic hint}); + + Future mainDeviceName({required String name, dynamic hint}); + + Future mainRemovePeer({required String id, dynamic hint}); + + Future mainHasHwcodec({dynamic hint}); + + Future sessionSendMouse( + {required String id, required String msg, dynamic hint}); + + Future sessionRestartRemoteDevice({required String id, dynamic hint}); + + Future mainSetHomeDir({required String home, dynamic hint}); + + Future mainStopService({dynamic hint}); + + Future mainStartService({dynamic hint}); + + Future mainUpdateTemporaryPassword({dynamic hint}); + + Future mainSetPermanentPassword( + {required String password, dynamic hint}); + + Future mainCheckSuperUserPermission({dynamic hint}); + + Future cmSendChat( + {required int connId, required String msg, dynamic hint}); + + Future cmLoginRes( + {required int connId, required bool res, dynamic hint}); + + Future cmCloseConnection({required int connId, dynamic hint}); + + Future cmCheckClickTime({required int connId, dynamic hint}); + + Future cmGetClickTime({dynamic hint}); + + Future cmSwitchPermission( + {required int connId, + required String name, + required bool enabled, + dynamic hint}); + + Future mainGetIcon({dynamic hint}); + + Future queryOnlines({required List ids, dynamic hint}); +} + +@freezed +class EventToUI with _$EventToUI { + const factory EventToUI.event( + String field0, + ) = Event; + const factory EventToUI.rgba( + Uint8List field0, + ) = Rgba; +} + +class RustdeskImpl extends FlutterRustBridgeBase + implements Rustdesk { + factory RustdeskImpl(ffi.DynamicLibrary dylib) => + RustdeskImpl.raw(RustdeskWire(dylib)); + + RustdeskImpl.raw(RustdeskWire inner) : super(inner); + + Future rustdeskCoreMain({dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_rustdesk_core_main(port_), + parseSuccessData: _wire2api_bool, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "rustdesk_core_main", + argNames: [], + ), + argValues: [], + hint: hint, + )); + + Stream startGlobalEventStream( + {required String appType, dynamic hint}) => + executeStream(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_start_global_event_stream( + port_, _api2wire_String(appType)), + parseSuccessData: _wire2api_String, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "start_global_event_stream", + argNames: ["appType"], + ), + argValues: [appType], + hint: hint, + )); + + Future stopGlobalEventStream({required String appType, dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_stop_global_event_stream( + port_, _api2wire_String(appType)), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "stop_global_event_stream", + argNames: ["appType"], + ), + argValues: [appType], + hint: hint, + )); + + Future hostStopSystemKeyPropagate( + {required bool stopped, dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => + inner.wire_host_stop_system_key_propagate(port_, stopped), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "host_stop_system_key_propagate", + argNames: ["stopped"], + ), + argValues: [stopped], + hint: hint, + )); + + Stream sessionConnect( + {required String id, required bool isFileTransfer, dynamic hint}) => + executeStream(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_session_connect( + port_, _api2wire_String(id), isFileTransfer), + parseSuccessData: _wire2api_event_to_ui, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "session_connect", + argNames: ["id", "isFileTransfer"], + ), + argValues: [id, isFileTransfer], + hint: hint, + )); + + Future sessionGetRemember({required String id, dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => + inner.wire_session_get_remember(port_, _api2wire_String(id)), + parseSuccessData: _wire2api_opt_box_autoadd_bool, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "session_get_remember", + argNames: ["id"], + ), + argValues: [id], + hint: hint, + )); + + Future sessionGetToggleOption( + {required String id, required String arg, dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_session_get_toggle_option( + port_, _api2wire_String(id), _api2wire_String(arg)), + parseSuccessData: _wire2api_opt_box_autoadd_bool, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "session_get_toggle_option", + argNames: ["id", "arg"], + ), + argValues: [id, arg], + hint: hint, + )); + + bool sessionGetToggleOptionSync( + {required String id, required String arg, dynamic hint}) => + executeSync(FlutterRustBridgeSyncTask( + callFfi: () => inner.wire_session_get_toggle_option_sync( + _api2wire_String(id), _api2wire_String(arg)), + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "session_get_toggle_option_sync", + argNames: ["id", "arg"], + ), + argValues: [id, arg], + hint: hint, + )); + + Future sessionGetImageQuality({required String id, dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => + inner.wire_session_get_image_quality(port_, _api2wire_String(id)), + parseSuccessData: _wire2api_opt_String, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "session_get_image_quality", + argNames: ["id"], + ), + argValues: [id], + hint: hint, + )); + + Future sessionGetOption( + {required String id, required String arg, dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_session_get_option( + port_, _api2wire_String(id), _api2wire_String(arg)), + parseSuccessData: _wire2api_opt_String, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "session_get_option", + argNames: ["id", "arg"], + ), + argValues: [id, arg], + hint: hint, + )); + + Future sessionLogin( + {required String id, + required String password, + required bool remember, + dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_session_login( + port_, _api2wire_String(id), _api2wire_String(password), remember), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "session_login", + argNames: ["id", "password", "remember"], + ), + argValues: [id, password, remember], + hint: hint, + )); + + Future sessionClose({required String id, dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => + inner.wire_session_close(port_, _api2wire_String(id)), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "session_close", + argNames: ["id"], + ), + argValues: [id], + hint: hint, + )); + + Future sessionRefresh({required String id, dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => + inner.wire_session_refresh(port_, _api2wire_String(id)), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "session_refresh", + argNames: ["id"], + ), + argValues: [id], + hint: hint, + )); + + Future sessionReconnect({required String id, dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => + inner.wire_session_reconnect(port_, _api2wire_String(id)), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "session_reconnect", + argNames: ["id"], + ), + argValues: [id], + hint: hint, + )); + + Future sessionToggleOption( + {required String id, required String value, dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_session_toggle_option( + port_, _api2wire_String(id), _api2wire_String(value)), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "session_toggle_option", + argNames: ["id", "value"], + ), + argValues: [id, value], + hint: hint, + )); + + Future sessionSetImageQuality( + {required String id, required String value, dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_session_set_image_quality( + port_, _api2wire_String(id), _api2wire_String(value)), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "session_set_image_quality", + argNames: ["id", "value"], + ), + argValues: [id, value], + hint: hint, + )); + + Future sessionLockScreen({required String id, dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => + inner.wire_session_lock_screen(port_, _api2wire_String(id)), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "session_lock_screen", + argNames: ["id"], + ), + argValues: [id], + hint: hint, + )); + + Future sessionCtrlAltDel({required String id, dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => + inner.wire_session_ctrl_alt_del(port_, _api2wire_String(id)), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "session_ctrl_alt_del", + argNames: ["id"], + ), + argValues: [id], + hint: hint, + )); + + Future sessionSwitchDisplay( + {required String id, required int value, dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_session_switch_display( + port_, _api2wire_String(id), _api2wire_i32(value)), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "session_switch_display", + argNames: ["id", "value"], + ), + argValues: [id, value], + hint: hint, + )); + + Future sessionInputRawKey( + {required String id, + required int keycode, + required int scancode, + required bool down, + dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_session_input_raw_key( + port_, + _api2wire_String(id), + _api2wire_i32(keycode), + _api2wire_i32(scancode), + down), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "session_input_raw_key", + argNames: ["id", "keycode", "scancode", "down"], + ), + argValues: [id, keycode, scancode, down], + hint: hint, + )); + + Future sessionInputKey( + {required String id, + required String name, + required bool down, + required bool press, + required bool alt, + required bool ctrl, + required bool shift, + required bool command, + dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_session_input_key( + port_, + _api2wire_String(id), + _api2wire_String(name), + down, + press, + alt, + ctrl, + shift, + command), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "session_input_key", + argNames: [ + "id", + "name", + "down", + "press", + "alt", + "ctrl", + "shift", + "command" + ], + ), + argValues: [id, name, down, press, alt, ctrl, shift, command], + hint: hint, + )); + + Future sessionInputString( + {required String id, required String value, dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_session_input_string( + port_, _api2wire_String(id), _api2wire_String(value)), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "session_input_string", + argNames: ["id", "value"], + ), + argValues: [id, value], + hint: hint, + )); + + Future sessionSendChat( + {required String id, required String text, dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_session_send_chat( + port_, _api2wire_String(id), _api2wire_String(text)), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "session_send_chat", + argNames: ["id", "text"], + ), + argValues: [id, text], + hint: hint, + )); + + Future sessionPeerOption( + {required String id, + required String name, + required String value, + dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_session_peer_option( + port_, + _api2wire_String(id), + _api2wire_String(name), + _api2wire_String(value)), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "session_peer_option", + argNames: ["id", "name", "value"], + ), + argValues: [id, name, value], + hint: hint, + )); + + Future sessionGetPeerOption( + {required String id, required String name, dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_session_get_peer_option( + port_, _api2wire_String(id), _api2wire_String(name)), + parseSuccessData: _wire2api_String, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "session_get_peer_option", + argNames: ["id", "name"], + ), + argValues: [id, name], + hint: hint, + )); + + Future sessionInputOsPassword( + {required String id, required String value, dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_session_input_os_password( + port_, _api2wire_String(id), _api2wire_String(value)), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "session_input_os_password", + argNames: ["id", "value"], + ), + argValues: [id, value], + hint: hint, + )); + + Future sessionReadRemoteDir( + {required String id, + required String path, + required bool includeHidden, + dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_session_read_remote_dir( + port_, _api2wire_String(id), _api2wire_String(path), includeHidden), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "session_read_remote_dir", + argNames: ["id", "path", "includeHidden"], + ), + argValues: [id, path, includeHidden], + hint: hint, + )); + + Future sessionSendFiles( + {required String id, + required int actId, + required String path, + required String to, + required int fileNum, + required bool includeHidden, + required bool isRemote, + dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_session_send_files( + port_, + _api2wire_String(id), + _api2wire_i32(actId), + _api2wire_String(path), + _api2wire_String(to), + _api2wire_i32(fileNum), + includeHidden, + isRemote), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "session_send_files", + argNames: [ + "id", + "actId", + "path", + "to", + "fileNum", + "includeHidden", + "isRemote" + ], + ), + argValues: [id, actId, path, to, fileNum, includeHidden, isRemote], + hint: hint, + )); + + Future sessionSetConfirmOverrideFile( + {required String id, + required int actId, + required int fileNum, + required bool needOverride, + required bool remember, + required bool isUpload, + dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_session_set_confirm_override_file( + port_, + _api2wire_String(id), + _api2wire_i32(actId), + _api2wire_i32(fileNum), + needOverride, + remember, + isUpload), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "session_set_confirm_override_file", + argNames: [ + "id", + "actId", + "fileNum", + "needOverride", + "remember", + "isUpload" + ], + ), + argValues: [id, actId, fileNum, needOverride, remember, isUpload], + hint: hint, + )); + + Future sessionRemoveFile( + {required String id, + required int actId, + required String path, + required int fileNum, + required bool isRemote, + dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_session_remove_file( + port_, + _api2wire_String(id), + _api2wire_i32(actId), + _api2wire_String(path), + _api2wire_i32(fileNum), + isRemote), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "session_remove_file", + argNames: ["id", "actId", "path", "fileNum", "isRemote"], + ), + argValues: [id, actId, path, fileNum, isRemote], + hint: hint, + )); + + Future sessionReadDirRecursive( + {required String id, + required int actId, + required String path, + required bool isRemote, + required bool showHidden, + dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_session_read_dir_recursive( + port_, + _api2wire_String(id), + _api2wire_i32(actId), + _api2wire_String(path), + isRemote, + showHidden), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "session_read_dir_recursive", + argNames: ["id", "actId", "path", "isRemote", "showHidden"], + ), + argValues: [id, actId, path, isRemote, showHidden], + hint: hint, + )); + + Future sessionRemoveAllEmptyDirs( + {required String id, + required int actId, + required String path, + required bool isRemote, + dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_session_remove_all_empty_dirs( + port_, + _api2wire_String(id), + _api2wire_i32(actId), + _api2wire_String(path), + isRemote), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "session_remove_all_empty_dirs", + argNames: ["id", "actId", "path", "isRemote"], + ), + argValues: [id, actId, path, isRemote], + hint: hint, + )); + + Future sessionCancelJob( + {required String id, required int actId, dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_session_cancel_job( + port_, _api2wire_String(id), _api2wire_i32(actId)), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "session_cancel_job", + argNames: ["id", "actId"], + ), + argValues: [id, actId], + hint: hint, + )); + + Future sessionCreateDir( + {required String id, + required int actId, + required String path, + required bool isRemote, + dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_session_create_dir( + port_, + _api2wire_String(id), + _api2wire_i32(actId), + _api2wire_String(path), + isRemote), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "session_create_dir", + argNames: ["id", "actId", "path", "isRemote"], + ), + argValues: [id, actId, path, isRemote], + hint: hint, + )); + + Future sessionReadLocalDirSync( + {required String id, + required String path, + required bool showHidden, + dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_session_read_local_dir_sync( + port_, _api2wire_String(id), _api2wire_String(path), showHidden), + parseSuccessData: _wire2api_String, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "session_read_local_dir_sync", + argNames: ["id", "path", "showHidden"], + ), + argValues: [id, path, showHidden], + hint: hint, + )); + + Future sessionGetPlatform( + {required String id, required bool isRemote, dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_session_get_platform( + port_, _api2wire_String(id), isRemote), + parseSuccessData: _wire2api_String, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "session_get_platform", + argNames: ["id", "isRemote"], + ), + argValues: [id, isRemote], + hint: hint, + )); + + Future sessionLoadLastTransferJobs( + {required String id, dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_session_load_last_transfer_jobs( + port_, _api2wire_String(id)), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "session_load_last_transfer_jobs", + argNames: ["id"], + ), + argValues: [id], + hint: hint, + )); + + Future sessionAddJob( + {required String id, + required int actId, + required String path, + required String to, + required int fileNum, + required bool includeHidden, + required bool isRemote, + dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_session_add_job( + port_, + _api2wire_String(id), + _api2wire_i32(actId), + _api2wire_String(path), + _api2wire_String(to), + _api2wire_i32(fileNum), + includeHidden, + isRemote), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "session_add_job", + argNames: [ + "id", + "actId", + "path", + "to", + "fileNum", + "includeHidden", + "isRemote" + ], + ), + argValues: [id, actId, path, to, fileNum, includeHidden, isRemote], + hint: hint, + )); + + Future sessionResumeJob( + {required String id, + required int actId, + required bool isRemote, + dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_session_resume_job( + port_, _api2wire_String(id), _api2wire_i32(actId), isRemote), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "session_resume_job", + argNames: ["id", "actId", "isRemote"], + ), + argValues: [id, actId, isRemote], + hint: hint, + )); + + Future> mainGetSoundInputs({dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_main_get_sound_inputs(port_), + parseSuccessData: _wire2api_StringList, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "main_get_sound_inputs", + argNames: [], + ), + argValues: [], + hint: hint, + )); + + Future mainChangeId({required String newId, dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => + inner.wire_main_change_id(port_, _api2wire_String(newId)), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "main_change_id", + argNames: ["newId"], + ), + argValues: [newId], + hint: hint, + )); + + Future mainGetAsyncStatus({dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_main_get_async_status(port_), + parseSuccessData: _wire2api_String, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "main_get_async_status", + argNames: [], + ), + argValues: [], + hint: hint, + )); + + Future mainGetOption({required String key, dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => + inner.wire_main_get_option(port_, _api2wire_String(key)), + parseSuccessData: _wire2api_String, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "main_get_option", + argNames: ["key"], + ), + argValues: [key], + hint: hint, + )); + + Future mainSetOption( + {required String key, required String value, dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_main_set_option( + port_, _api2wire_String(key), _api2wire_String(value)), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "main_set_option", + argNames: ["key", "value"], + ), + argValues: [key, value], + hint: hint, + )); + + Future mainGetOptions({dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_main_get_options(port_), + parseSuccessData: _wire2api_String, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "main_get_options", + argNames: [], + ), + argValues: [], + hint: hint, + )); + + Future mainSetOptions({required String json, dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => + inner.wire_main_set_options(port_, _api2wire_String(json)), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "main_set_options", + argNames: ["json"], + ), + argValues: [json], + hint: hint, + )); + + Future mainTestIfValidServer( + {required String server, dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_main_test_if_valid_server( + port_, _api2wire_String(server)), + parseSuccessData: _wire2api_String, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "main_test_if_valid_server", + argNames: ["server"], + ), + argValues: [server], + hint: hint, + )); + + Future mainSetSocks( + {required String proxy, + required String username, + required String password, + dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_main_set_socks( + port_, + _api2wire_String(proxy), + _api2wire_String(username), + _api2wire_String(password)), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "main_set_socks", + argNames: ["proxy", "username", "password"], + ), + argValues: [proxy, username, password], + hint: hint, + )); + + Future> mainGetSocks({dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_main_get_socks(port_), + parseSuccessData: _wire2api_StringList, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "main_get_socks", + argNames: [], + ), + argValues: [], + hint: hint, + )); + + Future mainGetAppName({dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_main_get_app_name(port_), + parseSuccessData: _wire2api_String, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "main_get_app_name", + argNames: [], + ), + argValues: [], + hint: hint, + )); + + Future mainGetLicense({dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_main_get_license(port_), + parseSuccessData: _wire2api_String, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "main_get_license", + argNames: [], + ), + argValues: [], + hint: hint, + )); + + Future mainGetVersion({dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_main_get_version(port_), + parseSuccessData: _wire2api_String, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "main_get_version", + argNames: [], + ), + argValues: [], + hint: hint, + )); + + Future> mainGetFav({dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_main_get_fav(port_), + parseSuccessData: _wire2api_StringList, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "main_get_fav", + argNames: [], + ), + argValues: [], + hint: hint, + )); + + Future mainStoreFav({required List favs, dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => + inner.wire_main_store_fav(port_, _api2wire_StringList(favs)), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "main_store_fav", + argNames: ["favs"], + ), + argValues: [favs], + hint: hint, + )); + + Future mainGetPeer({required String id, dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => + inner.wire_main_get_peer(port_, _api2wire_String(id)), + parseSuccessData: _wire2api_String, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "main_get_peer", + argNames: ["id"], + ), + argValues: [id], + hint: hint, + )); + + Future mainGetLanPeers({dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_main_get_lan_peers(port_), + parseSuccessData: _wire2api_String, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "main_get_lan_peers", + argNames: [], + ), + argValues: [], + hint: hint, + )); + + Future mainGetConnectStatus({dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_main_get_connect_status(port_), + parseSuccessData: _wire2api_String, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "main_get_connect_status", + argNames: [], + ), + argValues: [], + hint: hint, + )); + + Future mainCheckConnectStatus({dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_main_check_connect_status(port_), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "main_check_connect_status", + argNames: [], + ), + argValues: [], + hint: hint, + )); + + Future mainIsUsingPublicServer({dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_main_is_using_public_server(port_), + parseSuccessData: _wire2api_bool, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "main_is_using_public_server", + argNames: [], + ), + argValues: [], + hint: hint, + )); + + Future mainDiscover({dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_main_discover(port_), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "main_discover", + argNames: [], + ), + argValues: [], + hint: hint, + )); + + Future mainHasRendezvousService({dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_main_has_rendezvous_service(port_), + parseSuccessData: _wire2api_bool, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "main_has_rendezvous_service", + argNames: [], + ), + argValues: [], + hint: hint, + )); + + Future mainGetApiServer({dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_main_get_api_server(port_), + parseSuccessData: _wire2api_String, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "main_get_api_server", + argNames: [], + ), + argValues: [], + hint: hint, + )); + + Future mainPostRequest( + {required String url, + required String body, + required String header, + dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_main_post_request( + port_, + _api2wire_String(url), + _api2wire_String(body), + _api2wire_String(header)), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "main_post_request", + argNames: ["url", "body", "header"], + ), + argValues: [url, body, header], + hint: hint, + )); + + Future mainGetLocalOption({required String key, dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => + inner.wire_main_get_local_option(port_, _api2wire_String(key)), + parseSuccessData: _wire2api_String, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "main_get_local_option", + argNames: ["key"], + ), + argValues: [key], + hint: hint, + )); + + Future mainSetLocalOption( + {required String key, required String value, dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_main_set_local_option( + port_, _api2wire_String(key), _api2wire_String(value)), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "main_set_local_option", + argNames: ["key", "value"], + ), + argValues: [key, value], + hint: hint, + )); + + Future mainGetMyId({dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_main_get_my_id(port_), + parseSuccessData: _wire2api_String, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "main_get_my_id", + argNames: [], + ), + argValues: [], + hint: hint, + )); + + Future mainGetUuid({dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_main_get_uuid(port_), + parseSuccessData: _wire2api_String, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "main_get_uuid", + argNames: [], + ), + argValues: [], + hint: hint, + )); + + Future mainGetPeerOption( + {required String id, required String key, dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_main_get_peer_option( + port_, _api2wire_String(id), _api2wire_String(key)), + parseSuccessData: _wire2api_String, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "main_get_peer_option", + argNames: ["id", "key"], + ), + argValues: [id, key], + hint: hint, + )); + + Future mainSetPeerOption( + {required String id, + required String key, + required String value, + dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_main_set_peer_option( + port_, + _api2wire_String(id), + _api2wire_String(key), + _api2wire_String(value)), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "main_set_peer_option", + argNames: ["id", "key", "value"], + ), + argValues: [id, key, value], + hint: hint, + )); + + Future mainForgetPassword({required String id, dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => + inner.wire_main_forget_password(port_, _api2wire_String(id)), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "main_forget_password", + argNames: ["id"], + ), + argValues: [id], + hint: hint, + )); + + Future mainGetRecentPeers({dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_main_get_recent_peers(port_), + parseSuccessData: _wire2api_String, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "main_get_recent_peers", + argNames: [], + ), + argValues: [], + hint: hint, + )); + + Future mainLoadRecentPeers({dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_main_load_recent_peers(port_), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "main_load_recent_peers", + argNames: [], + ), + argValues: [], + hint: hint, + )); + + Future mainLoadFavPeers({dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_main_load_fav_peers(port_), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "main_load_fav_peers", + argNames: [], + ), + argValues: [], + hint: hint, + )); + + Future mainLoadLanPeers({dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_main_load_lan_peers(port_), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "main_load_lan_peers", + argNames: [], + ), + argValues: [], + hint: hint, + )); + + Future mainGetLastRemoteId({dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_main_get_last_remote_id(port_), + parseSuccessData: _wire2api_String, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "main_get_last_remote_id", + argNames: [], + ), + argValues: [], + hint: hint, + )); + + Future mainGetSoftwareUpdateUrl({dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_main_get_software_update_url(port_), + parseSuccessData: _wire2api_String, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "main_get_software_update_url", + argNames: [], + ), + argValues: [], + hint: hint, + )); + + Future mainGetHomeDir({dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_main_get_home_dir(port_), + parseSuccessData: _wire2api_String, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "main_get_home_dir", + argNames: [], + ), + argValues: [], + hint: hint, + )); + + Future mainGetLangs({dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_main_get_langs(port_), + parseSuccessData: _wire2api_String, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "main_get_langs", + argNames: [], + ), + argValues: [], + hint: hint, + )); + + Future mainGetTemporaryPassword({dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_main_get_temporary_password(port_), + parseSuccessData: _wire2api_String, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "main_get_temporary_password", + argNames: [], + ), + argValues: [], + hint: hint, + )); + + Future mainGetPermanentPassword({dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_main_get_permanent_password(port_), + parseSuccessData: _wire2api_String, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "main_get_permanent_password", + argNames: [], + ), + argValues: [], + hint: hint, + )); + + Future mainGetOnlineStatue({dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_main_get_online_statue(port_), + parseSuccessData: _wire2api_i64, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "main_get_online_statue", + argNames: [], + ), + argValues: [], + hint: hint, + )); + + Future mainGetClientsState({dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_main_get_clients_state(port_), + parseSuccessData: _wire2api_String, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "main_get_clients_state", + argNames: [], + ), + argValues: [], + hint: hint, + )); + + Future mainCheckClientsLength({required int length, dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_main_check_clients_length( + port_, _api2wire_usize(length)), + parseSuccessData: _wire2api_opt_String, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "main_check_clients_length", + argNames: ["length"], + ), + argValues: [length], + hint: hint, + )); + + Future mainInit({required String appDir, dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => + inner.wire_main_init(port_, _api2wire_String(appDir)), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "main_init", + argNames: ["appDir"], + ), + argValues: [appDir], + hint: hint, + )); + + Future mainDeviceId({required String id, dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => + inner.wire_main_device_id(port_, _api2wire_String(id)), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "main_device_id", + argNames: ["id"], + ), + argValues: [id], + hint: hint, + )); + + Future mainDeviceName({required String name, dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => + inner.wire_main_device_name(port_, _api2wire_String(name)), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "main_device_name", + argNames: ["name"], + ), + argValues: [name], + hint: hint, + )); + + Future mainRemovePeer({required String id, dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => + inner.wire_main_remove_peer(port_, _api2wire_String(id)), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "main_remove_peer", + argNames: ["id"], + ), + argValues: [id], + hint: hint, + )); + + Future mainHasHwcodec({dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_main_has_hwcodec(port_), + parseSuccessData: _wire2api_bool, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "main_has_hwcodec", + argNames: [], + ), + argValues: [], + hint: hint, + )); + + Future sessionSendMouse( + {required String id, required String msg, dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_session_send_mouse( + port_, _api2wire_String(id), _api2wire_String(msg)), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "session_send_mouse", + argNames: ["id", "msg"], + ), + argValues: [id, msg], + hint: hint, + )); + + Future sessionRestartRemoteDevice({required String id, dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_session_restart_remote_device( + port_, _api2wire_String(id)), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "session_restart_remote_device", + argNames: ["id"], + ), + argValues: [id], + hint: hint, + )); + + Future mainSetHomeDir({required String home, dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => + inner.wire_main_set_home_dir(port_, _api2wire_String(home)), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "main_set_home_dir", + argNames: ["home"], + ), + argValues: [home], + hint: hint, + )); + + Future mainStopService({dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_main_stop_service(port_), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "main_stop_service", + argNames: [], + ), + argValues: [], + hint: hint, + )); + + Future mainStartService({dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_main_start_service(port_), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "main_start_service", + argNames: [], + ), + argValues: [], + hint: hint, + )); + + Future mainUpdateTemporaryPassword({dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_main_update_temporary_password(port_), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "main_update_temporary_password", + argNames: [], + ), + argValues: [], + hint: hint, + )); + + Future mainSetPermanentPassword( + {required String password, dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_main_set_permanent_password( + port_, _api2wire_String(password)), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "main_set_permanent_password", + argNames: ["password"], + ), + argValues: [password], + hint: hint, + )); + + Future mainCheckSuperUserPermission({dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_main_check_super_user_permission(port_), + parseSuccessData: _wire2api_bool, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "main_check_super_user_permission", + argNames: [], + ), + argValues: [], + hint: hint, + )); + + Future cmSendChat( + {required int connId, required String msg, dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_cm_send_chat( + port_, _api2wire_i32(connId), _api2wire_String(msg)), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "cm_send_chat", + argNames: ["connId", "msg"], + ), + argValues: [connId, msg], + hint: hint, + )); + + Future cmLoginRes( + {required int connId, required bool res, dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => + inner.wire_cm_login_res(port_, _api2wire_i32(connId), res), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "cm_login_res", + argNames: ["connId", "res"], + ), + argValues: [connId, res], + hint: hint, + )); + + Future cmCloseConnection({required int connId, dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => + inner.wire_cm_close_connection(port_, _api2wire_i32(connId)), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "cm_close_connection", + argNames: ["connId"], + ), + argValues: [connId], + hint: hint, + )); + + Future cmCheckClickTime({required int connId, dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => + inner.wire_cm_check_click_time(port_, _api2wire_i32(connId)), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "cm_check_click_time", + argNames: ["connId"], + ), + argValues: [connId], + hint: hint, + )); + + Future cmGetClickTime({dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_cm_get_click_time(port_), + parseSuccessData: _wire2api_f64, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "cm_get_click_time", + argNames: [], + ), + argValues: [], + hint: hint, + )); + + Future cmSwitchPermission( + {required int connId, + required String name, + required bool enabled, + dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_cm_switch_permission( + port_, _api2wire_i32(connId), _api2wire_String(name), enabled), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "cm_switch_permission", + argNames: ["connId", "name", "enabled"], + ), + argValues: [connId, name, enabled], + hint: hint, + )); + + Future mainGetIcon({dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => inner.wire_main_get_icon(port_), + parseSuccessData: _wire2api_String, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "main_get_icon", + argNames: [], + ), + argValues: [], + hint: hint, + )); + + Future queryOnlines({required List ids, dynamic hint}) => + executeNormal(FlutterRustBridgeTask( + callFfi: (port_) => + inner.wire_query_onlines(port_, _api2wire_StringList(ids)), + parseSuccessData: _wire2api_unit, + constMeta: const FlutterRustBridgeTaskConstMeta( + debugName: "query_onlines", + argNames: ["ids"], + ), + argValues: [ids], + hint: hint, + )); + + // Section: api2wire + ffi.Pointer _api2wire_String(String raw) { + return _api2wire_uint_8_list(utf8.encoder.convert(raw)); + } + + ffi.Pointer _api2wire_StringList(List raw) { + final ans = inner.new_StringList(raw.length); + for (var i = 0; i < raw.length; i++) { + ans.ref.ptr[i] = _api2wire_String(raw[i]); + } + return ans; + } + + int _api2wire_bool(bool raw) { + return raw ? 1 : 0; + } + + int _api2wire_i32(int raw) { + return raw; + } + + int _api2wire_u8(int raw) { + return raw; + } + + ffi.Pointer _api2wire_uint_8_list(Uint8List raw) { + final ans = inner.new_uint_8_list(raw.length); + ans.ref.ptr.asTypedList(raw.length).setAll(0, raw); + return ans; + } + + int _api2wire_usize(int raw) { + return raw; + } + + // Section: api_fill_to_wire + +} + +// Section: wire2api +String _wire2api_String(dynamic raw) { + return raw as String; +} + +List _wire2api_StringList(dynamic raw) { + return (raw as List).cast(); +} + +Uint8List _wire2api_ZeroCopyBuffer_Uint8List(dynamic raw) { + return raw as Uint8List; +} + +bool _wire2api_bool(dynamic raw) { + return raw as bool; +} + +bool _wire2api_box_autoadd_bool(dynamic raw) { + return raw as bool; +} + +EventToUI _wire2api_event_to_ui(dynamic raw) { + switch (raw[0]) { + case 0: + return Event( + _wire2api_String(raw[1]), + ); + case 1: + return Rgba( + _wire2api_ZeroCopyBuffer_Uint8List(raw[1]), + ); + default: + throw Exception("unreachable"); + } +} + +double _wire2api_f64(dynamic raw) { + return raw as double; +} + +int _wire2api_i64(dynamic raw) { + return raw as int; +} + +String? _wire2api_opt_String(dynamic raw) { + return raw == null ? null : _wire2api_String(raw); +} + +bool? _wire2api_opt_box_autoadd_bool(dynamic raw) { + return raw == null ? null : _wire2api_box_autoadd_bool(raw); +} + +int _wire2api_u8(dynamic raw) { + return raw as int; +} + +Uint8List _wire2api_uint_8_list(dynamic raw) { + return raw as Uint8List; +} + +void _wire2api_unit(dynamic raw) { + return; +} + +// 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 RustdeskWire implements FlutterRustBridgeWireBase { + /// Holds the symbol lookup function. + final ffi.Pointer Function(String symbolName) + _lookup; + + /// The symbols are looked up in [dynamicLibrary]. + RustdeskWire(ffi.DynamicLibrary dynamicLibrary) + : _lookup = dynamicLibrary.lookup; + + /// The symbols are looked up with [lookup]. + RustdeskWire.fromLookup( + ffi.Pointer Function(String symbolName) + lookup) + : _lookup = lookup; + + void wire_rustdesk_core_main( + int port_, + ) { + return _wire_rustdesk_core_main( + port_, + ); + } + + late final _wire_rustdesk_core_mainPtr = + _lookup>( + 'wire_rustdesk_core_main'); + late final _wire_rustdesk_core_main = + _wire_rustdesk_core_mainPtr.asFunction(); + + void wire_start_global_event_stream( + int port_, + ffi.Pointer app_type, + ) { + return _wire_start_global_event_stream( + port_, + app_type, + ); + } + + late final _wire_start_global_event_streamPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer)>>( + 'wire_start_global_event_stream'); + late final _wire_start_global_event_stream = + _wire_start_global_event_streamPtr + .asFunction)>(); + + void wire_stop_global_event_stream( + int port_, + ffi.Pointer app_type, + ) { + return _wire_stop_global_event_stream( + port_, + app_type, + ); + } + + late final _wire_stop_global_event_streamPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, + ffi.Pointer)>>('wire_stop_global_event_stream'); + late final _wire_stop_global_event_stream = _wire_stop_global_event_streamPtr + .asFunction)>(); + + void wire_host_stop_system_key_propagate( + int port_, + bool stopped, + ) { + return _wire_host_stop_system_key_propagate( + port_, + stopped, + ); + } + + late final _wire_host_stop_system_key_propagatePtr = + _lookup>( + 'wire_host_stop_system_key_propagate'); + late final _wire_host_stop_system_key_propagate = + _wire_host_stop_system_key_propagatePtr + .asFunction(); + + void wire_session_connect( + int port_, + ffi.Pointer id, + bool is_file_transfer, + ) { + return _wire_session_connect( + port_, + id, + is_file_transfer, + ); + } + + late final _wire_session_connectPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer, + ffi.Bool)>>('wire_session_connect'); + late final _wire_session_connect = _wire_session_connectPtr + .asFunction, bool)>(); + + void wire_session_get_remember( + int port_, + ffi.Pointer id, + ) { + return _wire_session_get_remember( + port_, + id, + ); + } + + late final _wire_session_get_rememberPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, + ffi.Pointer)>>('wire_session_get_remember'); + late final _wire_session_get_remember = _wire_session_get_rememberPtr + .asFunction)>(); + + void wire_session_get_toggle_option( + int port_, + ffi.Pointer id, + ffi.Pointer arg, + ) { + return _wire_session_get_toggle_option( + port_, + id, + arg, + ); + } + + late final _wire_session_get_toggle_optionPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer, + ffi.Pointer)>>( + 'wire_session_get_toggle_option'); + late final _wire_session_get_toggle_option = + _wire_session_get_toggle_optionPtr.asFunction< + void Function(int, ffi.Pointer, + ffi.Pointer)>(); + + WireSyncReturnStruct wire_session_get_toggle_option_sync( + ffi.Pointer id, + ffi.Pointer arg, + ) { + return _wire_session_get_toggle_option_sync( + id, + arg, + ); + } + + late final _wire_session_get_toggle_option_syncPtr = _lookup< + ffi.NativeFunction< + WireSyncReturnStruct Function(ffi.Pointer, + ffi.Pointer)>>( + 'wire_session_get_toggle_option_sync'); + late final _wire_session_get_toggle_option_sync = + _wire_session_get_toggle_option_syncPtr.asFunction< + WireSyncReturnStruct Function( + ffi.Pointer, ffi.Pointer)>(); + + void wire_session_get_image_quality( + int port_, + ffi.Pointer id, + ) { + return _wire_session_get_image_quality( + port_, + id, + ); + } + + late final _wire_session_get_image_qualityPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer)>>( + 'wire_session_get_image_quality'); + late final _wire_session_get_image_quality = + _wire_session_get_image_qualityPtr + .asFunction)>(); + + void wire_session_get_option( + int port_, + ffi.Pointer id, + ffi.Pointer arg, + ) { + return _wire_session_get_option( + port_, + id, + arg, + ); + } + + late final _wire_session_get_optionPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer, + ffi.Pointer)>>('wire_session_get_option'); + late final _wire_session_get_option = _wire_session_get_optionPtr.asFunction< + void Function( + int, ffi.Pointer, ffi.Pointer)>(); + + void wire_session_login( + int port_, + ffi.Pointer id, + ffi.Pointer password, + bool remember, + ) { + return _wire_session_login( + port_, + id, + password, + remember, + ); + } + + late final _wire_session_loginPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer, + ffi.Pointer, ffi.Bool)>>('wire_session_login'); + late final _wire_session_login = _wire_session_loginPtr.asFunction< + void Function(int, ffi.Pointer, + ffi.Pointer, bool)>(); + + void wire_session_close( + int port_, + ffi.Pointer id, + ) { + return _wire_session_close( + port_, + id, + ); + } + + late final _wire_session_closePtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, ffi.Pointer)>>('wire_session_close'); + late final _wire_session_close = _wire_session_closePtr + .asFunction)>(); + + void wire_session_refresh( + int port_, + ffi.Pointer id, + ) { + return _wire_session_refresh( + port_, + id, + ); + } + + late final _wire_session_refreshPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, + ffi.Pointer)>>('wire_session_refresh'); + late final _wire_session_refresh = _wire_session_refreshPtr + .asFunction)>(); + + void wire_session_reconnect( + int port_, + ffi.Pointer id, + ) { + return _wire_session_reconnect( + port_, + id, + ); + } + + late final _wire_session_reconnectPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, + ffi.Pointer)>>('wire_session_reconnect'); + late final _wire_session_reconnect = _wire_session_reconnectPtr + .asFunction)>(); + + void wire_session_toggle_option( + int port_, + ffi.Pointer id, + ffi.Pointer value, + ) { + return _wire_session_toggle_option( + port_, + id, + value, + ); + } + + late final _wire_session_toggle_optionPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer, + ffi.Pointer)>>('wire_session_toggle_option'); + late final _wire_session_toggle_option = + _wire_session_toggle_optionPtr.asFunction< + void Function(int, ffi.Pointer, + ffi.Pointer)>(); + + void wire_session_set_image_quality( + int port_, + ffi.Pointer id, + ffi.Pointer value, + ) { + return _wire_session_set_image_quality( + port_, + id, + value, + ); + } + + late final _wire_session_set_image_qualityPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer, + ffi.Pointer)>>( + 'wire_session_set_image_quality'); + late final _wire_session_set_image_quality = + _wire_session_set_image_qualityPtr.asFunction< + void Function(int, ffi.Pointer, + ffi.Pointer)>(); + + void wire_session_lock_screen( + int port_, + ffi.Pointer id, + ) { + return _wire_session_lock_screen( + port_, + id, + ); + } + + late final _wire_session_lock_screenPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, + ffi.Pointer)>>('wire_session_lock_screen'); + late final _wire_session_lock_screen = _wire_session_lock_screenPtr + .asFunction)>(); + + void wire_session_ctrl_alt_del( + int port_, + ffi.Pointer id, + ) { + return _wire_session_ctrl_alt_del( + port_, + id, + ); + } + + late final _wire_session_ctrl_alt_delPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, + ffi.Pointer)>>('wire_session_ctrl_alt_del'); + late final _wire_session_ctrl_alt_del = _wire_session_ctrl_alt_delPtr + .asFunction)>(); + + void wire_session_switch_display( + int port_, + ffi.Pointer id, + int value, + ) { + return _wire_session_switch_display( + port_, + id, + value, + ); + } + + late final _wire_session_switch_displayPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer, + ffi.Int32)>>('wire_session_switch_display'); + late final _wire_session_switch_display = _wire_session_switch_displayPtr + .asFunction, int)>(); + + void wire_session_input_raw_key( + int port_, + ffi.Pointer id, + int keycode, + int scancode, + bool down, + ) { + return _wire_session_input_raw_key( + port_, + id, + keycode, + scancode, + down, + ); + } + + late final _wire_session_input_raw_keyPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer, ffi.Int32, + ffi.Int32, ffi.Bool)>>('wire_session_input_raw_key'); + late final _wire_session_input_raw_key = + _wire_session_input_raw_keyPtr.asFunction< + void Function(int, ffi.Pointer, int, int, bool)>(); + + void wire_session_input_key( + int port_, + ffi.Pointer id, + ffi.Pointer name, + bool down, + bool press, + bool alt, + bool ctrl, + bool shift, + bool command, + ) { + return _wire_session_input_key( + port_, + id, + name, + down, + press, + alt, + ctrl, + shift, + command, + ); + } + + late final _wire_session_input_keyPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.Bool, + ffi.Bool, + ffi.Bool, + ffi.Bool, + ffi.Bool)>>('wire_session_input_key'); + late final _wire_session_input_key = _wire_session_input_keyPtr.asFunction< + void Function(int, ffi.Pointer, + ffi.Pointer, bool, bool, bool, bool, bool, bool)>(); + + void wire_session_input_string( + int port_, + ffi.Pointer id, + ffi.Pointer value, + ) { + return _wire_session_input_string( + port_, + id, + value, + ); + } + + late final _wire_session_input_stringPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer, + ffi.Pointer)>>('wire_session_input_string'); + late final _wire_session_input_string = + _wire_session_input_stringPtr.asFunction< + void Function(int, ffi.Pointer, + ffi.Pointer)>(); + + void wire_session_send_chat( + int port_, + ffi.Pointer id, + ffi.Pointer text, + ) { + return _wire_session_send_chat( + port_, + id, + text, + ); + } + + late final _wire_session_send_chatPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer, + ffi.Pointer)>>('wire_session_send_chat'); + late final _wire_session_send_chat = _wire_session_send_chatPtr.asFunction< + void Function( + int, ffi.Pointer, ffi.Pointer)>(); + + void wire_session_peer_option( + int port_, + ffi.Pointer id, + ffi.Pointer name, + ffi.Pointer value, + ) { + return _wire_session_peer_option( + port_, + id, + name, + value, + ); + } + + late final _wire_session_peer_optionPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('wire_session_peer_option'); + late final _wire_session_peer_option = + _wire_session_peer_optionPtr.asFunction< + void Function(int, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + void wire_session_get_peer_option( + int port_, + ffi.Pointer id, + ffi.Pointer name, + ) { + return _wire_session_get_peer_option( + port_, + id, + name, + ); + } + + late final _wire_session_get_peer_optionPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer, + ffi.Pointer)>>('wire_session_get_peer_option'); + late final _wire_session_get_peer_option = + _wire_session_get_peer_optionPtr.asFunction< + void Function(int, ffi.Pointer, + ffi.Pointer)>(); + + void wire_session_input_os_password( + int port_, + ffi.Pointer id, + ffi.Pointer value, + ) { + return _wire_session_input_os_password( + port_, + id, + value, + ); + } + + late final _wire_session_input_os_passwordPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer, + ffi.Pointer)>>( + 'wire_session_input_os_password'); + late final _wire_session_input_os_password = + _wire_session_input_os_passwordPtr.asFunction< + void Function(int, ffi.Pointer, + ffi.Pointer)>(); + + void wire_session_read_remote_dir( + int port_, + ffi.Pointer id, + ffi.Pointer path, + bool include_hidden, + ) { + return _wire_session_read_remote_dir( + port_, + id, + path, + include_hidden, + ); + } + + late final _wire_session_read_remote_dirPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer, + ffi.Bool)>>('wire_session_read_remote_dir'); + late final _wire_session_read_remote_dir = + _wire_session_read_remote_dirPtr.asFunction< + void Function(int, ffi.Pointer, + ffi.Pointer, bool)>(); + + void wire_session_send_files( + int port_, + ffi.Pointer id, + int act_id, + ffi.Pointer path, + ffi.Pointer to, + int file_num, + bool include_hidden, + bool is_remote, + ) { + return _wire_session_send_files( + port_, + id, + act_id, + path, + to, + file_num, + include_hidden, + is_remote, + ); + } + + late final _wire_session_send_filesPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Int32, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Bool, + ffi.Bool)>>('wire_session_send_files'); + late final _wire_session_send_files = _wire_session_send_filesPtr.asFunction< + void Function( + int, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + int, + bool, + bool)>(); + + void wire_session_set_confirm_override_file( + int port_, + ffi.Pointer id, + int act_id, + int file_num, + bool need_override, + bool remember, + bool is_upload, + ) { + return _wire_session_set_confirm_override_file( + port_, + id, + act_id, + file_num, + need_override, + remember, + is_upload, + ); + } + + late final _wire_session_set_confirm_override_filePtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Int32, + ffi.Int32, + ffi.Bool, + ffi.Bool, + ffi.Bool)>>('wire_session_set_confirm_override_file'); + late final _wire_session_set_confirm_override_file = + _wire_session_set_confirm_override_filePtr.asFunction< + void Function(int, ffi.Pointer, int, int, bool, + bool, bool)>(); + + void wire_session_remove_file( + int port_, + ffi.Pointer id, + int act_id, + ffi.Pointer path, + int file_num, + bool is_remote, + ) { + return _wire_session_remove_file( + port_, + id, + act_id, + path, + file_num, + is_remote, + ); + } + + late final _wire_session_remove_filePtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Int32, + ffi.Pointer, + ffi.Int32, + ffi.Bool)>>('wire_session_remove_file'); + late final _wire_session_remove_file = + _wire_session_remove_filePtr.asFunction< + void Function(int, ffi.Pointer, int, + ffi.Pointer, int, bool)>(); + + void wire_session_read_dir_recursive( + int port_, + ffi.Pointer id, + int act_id, + ffi.Pointer path, + bool is_remote, + bool show_hidden, + ) { + return _wire_session_read_dir_recursive( + port_, + id, + act_id, + path, + is_remote, + show_hidden, + ); + } + + late final _wire_session_read_dir_recursivePtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Int32, + ffi.Pointer, + ffi.Bool, + ffi.Bool)>>('wire_session_read_dir_recursive'); + late final _wire_session_read_dir_recursive = + _wire_session_read_dir_recursivePtr.asFunction< + void Function(int, ffi.Pointer, int, + ffi.Pointer, bool, bool)>(); + + void wire_session_remove_all_empty_dirs( + int port_, + ffi.Pointer id, + int act_id, + ffi.Pointer path, + bool is_remote, + ) { + return _wire_session_remove_all_empty_dirs( + port_, + id, + act_id, + path, + is_remote, + ); + } + + late final _wire_session_remove_all_empty_dirsPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Int32, + ffi.Pointer, + ffi.Bool)>>('wire_session_remove_all_empty_dirs'); + late final _wire_session_remove_all_empty_dirs = + _wire_session_remove_all_empty_dirsPtr.asFunction< + void Function(int, ffi.Pointer, int, + ffi.Pointer, bool)>(); + + void wire_session_cancel_job( + int port_, + ffi.Pointer id, + int act_id, + ) { + return _wire_session_cancel_job( + port_, + id, + act_id, + ); + } + + late final _wire_session_cancel_jobPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer, + ffi.Int32)>>('wire_session_cancel_job'); + late final _wire_session_cancel_job = _wire_session_cancel_jobPtr + .asFunction, int)>(); + + void wire_session_create_dir( + int port_, + ffi.Pointer id, + int act_id, + ffi.Pointer path, + bool is_remote, + ) { + return _wire_session_create_dir( + port_, + id, + act_id, + path, + is_remote, + ); + } + + late final _wire_session_create_dirPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Int32, + ffi.Pointer, + ffi.Bool)>>('wire_session_create_dir'); + late final _wire_session_create_dir = _wire_session_create_dirPtr.asFunction< + void Function(int, ffi.Pointer, int, + ffi.Pointer, bool)>(); + + void wire_session_read_local_dir_sync( + int port_, + ffi.Pointer id, + ffi.Pointer path, + bool show_hidden, + ) { + return _wire_session_read_local_dir_sync( + port_, + id, + path, + show_hidden, + ); + } + + late final _wire_session_read_local_dir_syncPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer, + ffi.Bool)>>('wire_session_read_local_dir_sync'); + late final _wire_session_read_local_dir_sync = + _wire_session_read_local_dir_syncPtr.asFunction< + void Function(int, ffi.Pointer, + ffi.Pointer, bool)>(); + + void wire_session_get_platform( + int port_, + ffi.Pointer id, + bool is_remote, + ) { + return _wire_session_get_platform( + port_, + id, + is_remote, + ); + } + + late final _wire_session_get_platformPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer, + ffi.Bool)>>('wire_session_get_platform'); + late final _wire_session_get_platform = _wire_session_get_platformPtr + .asFunction, bool)>(); + + void wire_session_load_last_transfer_jobs( + int port_, + ffi.Pointer id, + ) { + return _wire_session_load_last_transfer_jobs( + port_, + id, + ); + } + + late final _wire_session_load_last_transfer_jobsPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer)>>( + 'wire_session_load_last_transfer_jobs'); + late final _wire_session_load_last_transfer_jobs = + _wire_session_load_last_transfer_jobsPtr + .asFunction)>(); + + void wire_session_add_job( + int port_, + ffi.Pointer id, + int act_id, + ffi.Pointer path, + ffi.Pointer to, + int file_num, + bool include_hidden, + bool is_remote, + ) { + return _wire_session_add_job( + port_, + id, + act_id, + path, + to, + file_num, + include_hidden, + is_remote, + ); + } + + late final _wire_session_add_jobPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Int32, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Bool, + ffi.Bool)>>('wire_session_add_job'); + late final _wire_session_add_job = _wire_session_add_jobPtr.asFunction< + void Function( + int, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + int, + bool, + bool)>(); + + void wire_session_resume_job( + int port_, + ffi.Pointer id, + int act_id, + bool is_remote, + ) { + return _wire_session_resume_job( + port_, + id, + act_id, + is_remote, + ); + } + + late final _wire_session_resume_jobPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer, ffi.Int32, + ffi.Bool)>>('wire_session_resume_job'); + late final _wire_session_resume_job = _wire_session_resume_jobPtr.asFunction< + void Function(int, ffi.Pointer, int, bool)>(); + + void wire_main_get_sound_inputs( + int port_, + ) { + return _wire_main_get_sound_inputs( + port_, + ); + } + + late final _wire_main_get_sound_inputsPtr = + _lookup>( + 'wire_main_get_sound_inputs'); + late final _wire_main_get_sound_inputs = + _wire_main_get_sound_inputsPtr.asFunction(); + + void wire_main_change_id( + int port_, + ffi.Pointer new_id, + ) { + return _wire_main_change_id( + port_, + new_id, + ); + } + + late final _wire_main_change_idPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, + ffi.Pointer)>>('wire_main_change_id'); + late final _wire_main_change_id = _wire_main_change_idPtr + .asFunction)>(); + + void wire_main_get_async_status( + int port_, + ) { + return _wire_main_get_async_status( + port_, + ); + } + + late final _wire_main_get_async_statusPtr = + _lookup>( + 'wire_main_get_async_status'); + late final _wire_main_get_async_status = + _wire_main_get_async_statusPtr.asFunction(); + + void wire_main_get_option( + int port_, + ffi.Pointer key, + ) { + return _wire_main_get_option( + port_, + key, + ); + } + + late final _wire_main_get_optionPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, + ffi.Pointer)>>('wire_main_get_option'); + late final _wire_main_get_option = _wire_main_get_optionPtr + .asFunction)>(); + + void wire_main_set_option( + int port_, + ffi.Pointer key, + ffi.Pointer value, + ) { + return _wire_main_set_option( + port_, + key, + value, + ); + } + + late final _wire_main_set_optionPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer, + ffi.Pointer)>>('wire_main_set_option'); + late final _wire_main_set_option = _wire_main_set_optionPtr.asFunction< + void Function( + int, ffi.Pointer, ffi.Pointer)>(); + + void wire_main_get_options( + int port_, + ) { + return _wire_main_get_options( + port_, + ); + } + + late final _wire_main_get_optionsPtr = + _lookup>( + 'wire_main_get_options'); + late final _wire_main_get_options = + _wire_main_get_optionsPtr.asFunction(); + + void wire_main_set_options( + int port_, + ffi.Pointer json, + ) { + return _wire_main_set_options( + port_, + json, + ); + } + + late final _wire_main_set_optionsPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, + ffi.Pointer)>>('wire_main_set_options'); + late final _wire_main_set_options = _wire_main_set_optionsPtr + .asFunction)>(); + + void wire_main_test_if_valid_server( + int port_, + ffi.Pointer server, + ) { + return _wire_main_test_if_valid_server( + port_, + server, + ); + } + + late final _wire_main_test_if_valid_serverPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer)>>( + 'wire_main_test_if_valid_server'); + late final _wire_main_test_if_valid_server = + _wire_main_test_if_valid_serverPtr + .asFunction)>(); + + void wire_main_set_socks( + int port_, + ffi.Pointer proxy, + ffi.Pointer username, + ffi.Pointer password, + ) { + return _wire_main_set_socks( + port_, + proxy, + username, + password, + ); + } + + late final _wire_main_set_socksPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('wire_main_set_socks'); + late final _wire_main_set_socks = _wire_main_set_socksPtr.asFunction< + void Function(int, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + void wire_main_get_socks( + int port_, + ) { + return _wire_main_get_socks( + port_, + ); + } + + late final _wire_main_get_socksPtr = + _lookup>( + 'wire_main_get_socks'); + late final _wire_main_get_socks = + _wire_main_get_socksPtr.asFunction(); + + void wire_main_get_app_name( + int port_, + ) { + return _wire_main_get_app_name( + port_, + ); + } + + late final _wire_main_get_app_namePtr = + _lookup>( + 'wire_main_get_app_name'); + late final _wire_main_get_app_name = + _wire_main_get_app_namePtr.asFunction(); + + void wire_main_get_license( + int port_, + ) { + return _wire_main_get_license( + port_, + ); + } + + late final _wire_main_get_licensePtr = + _lookup>( + 'wire_main_get_license'); + late final _wire_main_get_license = + _wire_main_get_licensePtr.asFunction(); + + void wire_main_get_version( + int port_, + ) { + return _wire_main_get_version( + port_, + ); + } + + late final _wire_main_get_versionPtr = + _lookup>( + 'wire_main_get_version'); + late final _wire_main_get_version = + _wire_main_get_versionPtr.asFunction(); + + void wire_main_get_fav( + int port_, + ) { + return _wire_main_get_fav( + port_, + ); + } + + late final _wire_main_get_favPtr = + _lookup>( + 'wire_main_get_fav'); + late final _wire_main_get_fav = + _wire_main_get_favPtr.asFunction(); + + void wire_main_store_fav( + int port_, + ffi.Pointer favs, + ) { + return _wire_main_store_fav( + port_, + favs, + ); + } + + late final _wire_main_store_favPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, ffi.Pointer)>>('wire_main_store_fav'); + late final _wire_main_store_fav = _wire_main_store_favPtr + .asFunction)>(); + + void wire_main_get_peer( + int port_, + ffi.Pointer id, + ) { + return _wire_main_get_peer( + port_, + id, + ); + } + + late final _wire_main_get_peerPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, ffi.Pointer)>>('wire_main_get_peer'); + late final _wire_main_get_peer = _wire_main_get_peerPtr + .asFunction)>(); + + void wire_main_get_lan_peers( + int port_, + ) { + return _wire_main_get_lan_peers( + port_, + ); + } + + late final _wire_main_get_lan_peersPtr = + _lookup>( + 'wire_main_get_lan_peers'); + late final _wire_main_get_lan_peers = + _wire_main_get_lan_peersPtr.asFunction(); + + void wire_main_get_connect_status( + int port_, + ) { + return _wire_main_get_connect_status( + port_, + ); + } + + late final _wire_main_get_connect_statusPtr = + _lookup>( + 'wire_main_get_connect_status'); + late final _wire_main_get_connect_status = + _wire_main_get_connect_statusPtr.asFunction(); + + void wire_main_check_connect_status( + int port_, + ) { + return _wire_main_check_connect_status( + port_, + ); + } + + late final _wire_main_check_connect_statusPtr = + _lookup>( + 'wire_main_check_connect_status'); + late final _wire_main_check_connect_status = + _wire_main_check_connect_statusPtr.asFunction(); + + void wire_main_is_using_public_server( + int port_, + ) { + return _wire_main_is_using_public_server( + port_, + ); + } + + late final _wire_main_is_using_public_serverPtr = + _lookup>( + 'wire_main_is_using_public_server'); + late final _wire_main_is_using_public_server = + _wire_main_is_using_public_serverPtr.asFunction(); + + void wire_main_discover( + int port_, + ) { + return _wire_main_discover( + port_, + ); + } + + late final _wire_main_discoverPtr = + _lookup>( + 'wire_main_discover'); + late final _wire_main_discover = + _wire_main_discoverPtr.asFunction(); + + void wire_main_has_rendezvous_service( + int port_, + ) { + return _wire_main_has_rendezvous_service( + port_, + ); + } + + late final _wire_main_has_rendezvous_servicePtr = + _lookup>( + 'wire_main_has_rendezvous_service'); + late final _wire_main_has_rendezvous_service = + _wire_main_has_rendezvous_servicePtr.asFunction(); + + void wire_main_get_api_server( + int port_, + ) { + return _wire_main_get_api_server( + port_, + ); + } + + late final _wire_main_get_api_serverPtr = + _lookup>( + 'wire_main_get_api_server'); + late final _wire_main_get_api_server = + _wire_main_get_api_serverPtr.asFunction(); + + void wire_main_post_request( + int port_, + ffi.Pointer url, + ffi.Pointer body, + ffi.Pointer header, + ) { + return _wire_main_post_request( + port_, + url, + body, + header, + ); + } + + late final _wire_main_post_requestPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('wire_main_post_request'); + late final _wire_main_post_request = _wire_main_post_requestPtr.asFunction< + void Function(int, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + void wire_main_get_local_option( + int port_, + ffi.Pointer key, + ) { + return _wire_main_get_local_option( + port_, + key, + ); + } + + late final _wire_main_get_local_optionPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, + ffi.Pointer)>>('wire_main_get_local_option'); + late final _wire_main_get_local_option = _wire_main_get_local_optionPtr + .asFunction)>(); + + void wire_main_set_local_option( + int port_, + ffi.Pointer key, + ffi.Pointer value, + ) { + return _wire_main_set_local_option( + port_, + key, + value, + ); + } + + late final _wire_main_set_local_optionPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer, + ffi.Pointer)>>('wire_main_set_local_option'); + late final _wire_main_set_local_option = + _wire_main_set_local_optionPtr.asFunction< + void Function(int, ffi.Pointer, + ffi.Pointer)>(); + + void wire_main_get_my_id( + int port_, + ) { + return _wire_main_get_my_id( + port_, + ); + } + + late final _wire_main_get_my_idPtr = + _lookup>( + 'wire_main_get_my_id'); + late final _wire_main_get_my_id = + _wire_main_get_my_idPtr.asFunction(); + + void wire_main_get_uuid( + int port_, + ) { + return _wire_main_get_uuid( + port_, + ); + } + + late final _wire_main_get_uuidPtr = + _lookup>( + 'wire_main_get_uuid'); + late final _wire_main_get_uuid = + _wire_main_get_uuidPtr.asFunction(); + + void wire_main_get_peer_option( + int port_, + ffi.Pointer id, + ffi.Pointer key, + ) { + return _wire_main_get_peer_option( + port_, + id, + key, + ); + } + + late final _wire_main_get_peer_optionPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer, + ffi.Pointer)>>('wire_main_get_peer_option'); + late final _wire_main_get_peer_option = + _wire_main_get_peer_optionPtr.asFunction< + void Function(int, ffi.Pointer, + ffi.Pointer)>(); + + void wire_main_set_peer_option( + int port_, + ffi.Pointer id, + ffi.Pointer key, + ffi.Pointer value, + ) { + return _wire_main_set_peer_option( + port_, + id, + key, + value, + ); + } + + late final _wire_main_set_peer_optionPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('wire_main_set_peer_option'); + late final _wire_main_set_peer_option = + _wire_main_set_peer_optionPtr.asFunction< + void Function(int, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + void wire_main_forget_password( + int port_, + ffi.Pointer id, + ) { + return _wire_main_forget_password( + port_, + id, + ); + } + + late final _wire_main_forget_passwordPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, + ffi.Pointer)>>('wire_main_forget_password'); + late final _wire_main_forget_password = _wire_main_forget_passwordPtr + .asFunction)>(); + + void wire_main_get_recent_peers( + int port_, + ) { + return _wire_main_get_recent_peers( + port_, + ); + } + + late final _wire_main_get_recent_peersPtr = + _lookup>( + 'wire_main_get_recent_peers'); + late final _wire_main_get_recent_peers = + _wire_main_get_recent_peersPtr.asFunction(); + + void wire_main_load_recent_peers( + int port_, + ) { + return _wire_main_load_recent_peers( + port_, + ); + } + + late final _wire_main_load_recent_peersPtr = + _lookup>( + 'wire_main_load_recent_peers'); + late final _wire_main_load_recent_peers = + _wire_main_load_recent_peersPtr.asFunction(); + + void wire_main_load_fav_peers( + int port_, + ) { + return _wire_main_load_fav_peers( + port_, + ); + } + + late final _wire_main_load_fav_peersPtr = + _lookup>( + 'wire_main_load_fav_peers'); + late final _wire_main_load_fav_peers = + _wire_main_load_fav_peersPtr.asFunction(); + + void wire_main_load_lan_peers( + int port_, + ) { + return _wire_main_load_lan_peers( + port_, + ); + } + + late final _wire_main_load_lan_peersPtr = + _lookup>( + 'wire_main_load_lan_peers'); + late final _wire_main_load_lan_peers = + _wire_main_load_lan_peersPtr.asFunction(); + + void wire_main_get_last_remote_id( + int port_, + ) { + return _wire_main_get_last_remote_id( + port_, + ); + } + + late final _wire_main_get_last_remote_idPtr = + _lookup>( + 'wire_main_get_last_remote_id'); + late final _wire_main_get_last_remote_id = + _wire_main_get_last_remote_idPtr.asFunction(); + + void wire_main_get_software_update_url( + int port_, + ) { + return _wire_main_get_software_update_url( + port_, + ); + } + + late final _wire_main_get_software_update_urlPtr = + _lookup>( + 'wire_main_get_software_update_url'); + late final _wire_main_get_software_update_url = + _wire_main_get_software_update_urlPtr.asFunction(); + + void wire_main_get_home_dir( + int port_, + ) { + return _wire_main_get_home_dir( + port_, + ); + } + + late final _wire_main_get_home_dirPtr = + _lookup>( + 'wire_main_get_home_dir'); + late final _wire_main_get_home_dir = + _wire_main_get_home_dirPtr.asFunction(); + + void wire_main_get_langs( + int port_, + ) { + return _wire_main_get_langs( + port_, + ); + } + + late final _wire_main_get_langsPtr = + _lookup>( + 'wire_main_get_langs'); + late final _wire_main_get_langs = + _wire_main_get_langsPtr.asFunction(); + + void wire_main_get_temporary_password( + int port_, + ) { + return _wire_main_get_temporary_password( + port_, + ); + } + + late final _wire_main_get_temporary_passwordPtr = + _lookup>( + 'wire_main_get_temporary_password'); + late final _wire_main_get_temporary_password = + _wire_main_get_temporary_passwordPtr.asFunction(); + + void wire_main_get_permanent_password( + int port_, + ) { + return _wire_main_get_permanent_password( + port_, + ); + } + + late final _wire_main_get_permanent_passwordPtr = + _lookup>( + 'wire_main_get_permanent_password'); + late final _wire_main_get_permanent_password = + _wire_main_get_permanent_passwordPtr.asFunction(); + + void wire_main_get_online_statue( + int port_, + ) { + return _wire_main_get_online_statue( + port_, + ); + } + + late final _wire_main_get_online_statuePtr = + _lookup>( + 'wire_main_get_online_statue'); + late final _wire_main_get_online_statue = + _wire_main_get_online_statuePtr.asFunction(); + + void wire_main_get_clients_state( + int port_, + ) { + return _wire_main_get_clients_state( + port_, + ); + } + + late final _wire_main_get_clients_statePtr = + _lookup>( + 'wire_main_get_clients_state'); + late final _wire_main_get_clients_state = + _wire_main_get_clients_statePtr.asFunction(); + + void wire_main_check_clients_length( + int port_, + int length, + ) { + return _wire_main_check_clients_length( + port_, + length, + ); + } + + late final _wire_main_check_clients_lengthPtr = + _lookup>( + 'wire_main_check_clients_length'); + late final _wire_main_check_clients_length = + _wire_main_check_clients_lengthPtr.asFunction(); + + void wire_main_init( + int port_, + ffi.Pointer app_dir, + ) { + return _wire_main_init( + port_, + app_dir, + ); + } + + late final _wire_main_initPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, ffi.Pointer)>>('wire_main_init'); + late final _wire_main_init = _wire_main_initPtr + .asFunction)>(); + + void wire_main_device_id( + int port_, + ffi.Pointer id, + ) { + return _wire_main_device_id( + port_, + id, + ); + } + + late final _wire_main_device_idPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, + ffi.Pointer)>>('wire_main_device_id'); + late final _wire_main_device_id = _wire_main_device_idPtr + .asFunction)>(); + + void wire_main_device_name( + int port_, + ffi.Pointer name, + ) { + return _wire_main_device_name( + port_, + name, + ); + } + + late final _wire_main_device_namePtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, + ffi.Pointer)>>('wire_main_device_name'); + late final _wire_main_device_name = _wire_main_device_namePtr + .asFunction)>(); + + void wire_main_remove_peer( + int port_, + ffi.Pointer id, + ) { + return _wire_main_remove_peer( + port_, + id, + ); + } + + late final _wire_main_remove_peerPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, + ffi.Pointer)>>('wire_main_remove_peer'); + late final _wire_main_remove_peer = _wire_main_remove_peerPtr + .asFunction)>(); + + void wire_main_has_hwcodec( + int port_, + ) { + return _wire_main_has_hwcodec( + port_, + ); + } + + late final _wire_main_has_hwcodecPtr = + _lookup>( + 'wire_main_has_hwcodec'); + late final _wire_main_has_hwcodec = + _wire_main_has_hwcodecPtr.asFunction(); + + void wire_session_send_mouse( + int port_, + ffi.Pointer id, + ffi.Pointer msg, + ) { + return _wire_session_send_mouse( + port_, + id, + msg, + ); + } + + late final _wire_session_send_mousePtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer, + ffi.Pointer)>>('wire_session_send_mouse'); + late final _wire_session_send_mouse = _wire_session_send_mousePtr.asFunction< + void Function( + int, ffi.Pointer, ffi.Pointer)>(); + + void wire_session_restart_remote_device( + int port_, + ffi.Pointer id, + ) { + return _wire_session_restart_remote_device( + port_, + id, + ); + } + + late final _wire_session_restart_remote_devicePtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer)>>( + 'wire_session_restart_remote_device'); + late final _wire_session_restart_remote_device = + _wire_session_restart_remote_devicePtr + .asFunction)>(); + + void wire_main_set_home_dir( + int port_, + ffi.Pointer home, + ) { + return _wire_main_set_home_dir( + port_, + home, + ); + } + + late final _wire_main_set_home_dirPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, + ffi.Pointer)>>('wire_main_set_home_dir'); + late final _wire_main_set_home_dir = _wire_main_set_home_dirPtr + .asFunction)>(); + + void wire_main_stop_service( + int port_, + ) { + return _wire_main_stop_service( + port_, + ); + } + + late final _wire_main_stop_servicePtr = + _lookup>( + 'wire_main_stop_service'); + late final _wire_main_stop_service = + _wire_main_stop_servicePtr.asFunction(); + + void wire_main_start_service( + int port_, + ) { + return _wire_main_start_service( + port_, + ); + } + + late final _wire_main_start_servicePtr = + _lookup>( + 'wire_main_start_service'); + late final _wire_main_start_service = + _wire_main_start_servicePtr.asFunction(); + + void wire_main_update_temporary_password( + int port_, + ) { + return _wire_main_update_temporary_password( + port_, + ); + } + + late final _wire_main_update_temporary_passwordPtr = + _lookup>( + 'wire_main_update_temporary_password'); + late final _wire_main_update_temporary_password = + _wire_main_update_temporary_passwordPtr.asFunction(); + + void wire_main_set_permanent_password( + int port_, + ffi.Pointer password, + ) { + return _wire_main_set_permanent_password( + port_, + password, + ); + } + + late final _wire_main_set_permanent_passwordPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer)>>( + 'wire_main_set_permanent_password'); + late final _wire_main_set_permanent_password = + _wire_main_set_permanent_passwordPtr + .asFunction)>(); + + void wire_main_check_super_user_permission( + int port_, + ) { + return _wire_main_check_super_user_permission( + port_, + ); + } + + late final _wire_main_check_super_user_permissionPtr = + _lookup>( + 'wire_main_check_super_user_permission'); + late final _wire_main_check_super_user_permission = + _wire_main_check_super_user_permissionPtr + .asFunction(); + + void wire_cm_send_chat( + int port_, + int conn_id, + ffi.Pointer msg, + ) { + return _wire_cm_send_chat( + port_, + conn_id, + msg, + ); + } + + late final _wire_cm_send_chatPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Int32, + ffi.Pointer)>>('wire_cm_send_chat'); + late final _wire_cm_send_chat = _wire_cm_send_chatPtr + .asFunction)>(); + + void wire_cm_login_res( + int port_, + int conn_id, + bool res, + ) { + return _wire_cm_login_res( + port_, + conn_id, + res, + ); + } + + late final _wire_cm_login_resPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, ffi.Int32, ffi.Bool)>>('wire_cm_login_res'); + late final _wire_cm_login_res = + _wire_cm_login_resPtr.asFunction(); + + void wire_cm_close_connection( + int port_, + int conn_id, + ) { + return _wire_cm_close_connection( + port_, + conn_id, + ); + } + + late final _wire_cm_close_connectionPtr = + _lookup>( + 'wire_cm_close_connection'); + late final _wire_cm_close_connection = + _wire_cm_close_connectionPtr.asFunction(); + + void wire_cm_check_click_time( + int port_, + int conn_id, + ) { + return _wire_cm_check_click_time( + port_, + conn_id, + ); + } + + late final _wire_cm_check_click_timePtr = + _lookup>( + 'wire_cm_check_click_time'); + late final _wire_cm_check_click_time = + _wire_cm_check_click_timePtr.asFunction(); + + void wire_cm_get_click_time( + int port_, + ) { + return _wire_cm_get_click_time( + port_, + ); + } + + late final _wire_cm_get_click_timePtr = + _lookup>( + 'wire_cm_get_click_time'); + late final _wire_cm_get_click_time = + _wire_cm_get_click_timePtr.asFunction(); + + void wire_cm_switch_permission( + int port_, + int conn_id, + ffi.Pointer name, + bool enabled, + ) { + return _wire_cm_switch_permission( + port_, + conn_id, + name, + enabled, + ); + } + + late final _wire_cm_switch_permissionPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Int32, ffi.Pointer, + ffi.Bool)>>('wire_cm_switch_permission'); + late final _wire_cm_switch_permission = + _wire_cm_switch_permissionPtr.asFunction< + void Function(int, int, ffi.Pointer, bool)>(); + + void wire_main_get_icon( + int port_, + ) { + return _wire_main_get_icon( + port_, + ); + } + + late final _wire_main_get_iconPtr = + _lookup>( + 'wire_main_get_icon'); + late final _wire_main_get_icon = + _wire_main_get_iconPtr.asFunction(); + + void wire_query_onlines( + int port_, + ffi.Pointer ids, + ) { + return _wire_query_onlines( + port_, + ids, + ); + } + + late final _wire_query_onlinesPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, ffi.Pointer)>>('wire_query_onlines'); + late final _wire_query_onlines = _wire_query_onlinesPtr + .asFunction)>(); + + ffi.Pointer new_StringList( + int len, + ) { + return _new_StringList( + len, + ); + } + + late final _new_StringListPtr = _lookup< + ffi.NativeFunction Function(ffi.Int32)>>( + 'new_StringList'); + late final _new_StringList = _new_StringListPtr + .asFunction Function(int)>(); + + ffi.Pointer new_uint_8_list( + int len, + ) { + return _new_uint_8_list( + len, + ); + } + + late final _new_uint_8_listPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Int32)>>('new_uint_8_list'); + late final _new_uint_8_list = _new_uint_8_listPtr + .asFunction Function(int)>(); + + void free_WireSyncReturnStruct( + WireSyncReturnStruct val, + ) { + return _free_WireSyncReturnStruct( + val, + ); + } + + late final _free_WireSyncReturnStructPtr = + _lookup>( + 'free_WireSyncReturnStruct'); + late final _free_WireSyncReturnStruct = _free_WireSyncReturnStructPtr + .asFunction(); + + void store_dart_post_cobject( + DartPostCObjectFnType ptr, + ) { + return _store_dart_post_cobject( + ptr, + ); + } + + late final _store_dart_post_cobjectPtr = + _lookup>( + 'store_dart_post_cobject'); + late final _store_dart_post_cobject = _store_dart_post_cobjectPtr + .asFunction(); + + bool rustdesk_core_main() { + return _rustdesk_core_main(); + } + + late final _rustdesk_core_mainPtr = + _lookup>('rustdesk_core_main'); + late final _rustdesk_core_main = + _rustdesk_core_mainPtr.asFunction(); +} + +class wire_uint_8_list extends ffi.Struct { + external ffi.Pointer ptr; + + @ffi.Int32() + external int len; +} + +class wire_StringList extends ffi.Struct { + external ffi.Pointer> ptr; + + @ffi.Int32() + external int len; +} + +typedef uintptr_t = ffi.UnsignedLong; +typedef DartPostCObjectFnType = ffi.Pointer< + ffi.NativeFunction)>>; +typedef DartPort = ffi.Int64; + +const int GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT = 2; + +const int GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS = 4; diff --git a/flutter/lib/generated_bridge.freezed.dart b/flutter/lib/generated_bridge.freezed.dart new file mode 100644 index 000000000..fbaa6105f --- /dev/null +++ b/flutter/lib/generated_bridge.freezed.dart @@ -0,0 +1,332 @@ +// coverage:ignore-file +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint +// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target + +part of 'generated_bridge.dart'; + +// ************************************************************************** +// FreezedGenerator +// ************************************************************************** + +T _$identity(T value) => value; + +final _privateConstructorUsedError = UnsupportedError( + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); + +/// @nodoc +mixin _$EventToUI { + @optionalTypeArgs + TResult when({ + required TResult Function(String field0) event, + required TResult Function(Uint8List field0) rgba, + }) => + throw _privateConstructorUsedError; + @optionalTypeArgs + TResult? whenOrNull({ + TResult Function(String field0)? event, + TResult Function(Uint8List field0)? rgba, + }) => + throw _privateConstructorUsedError; + @optionalTypeArgs + TResult maybeWhen({ + TResult Function(String field0)? event, + TResult Function(Uint8List field0)? rgba, + required TResult orElse(), + }) => + throw _privateConstructorUsedError; + @optionalTypeArgs + TResult map({ + required TResult Function(Event value) event, + required TResult Function(Rgba value) rgba, + }) => + throw _privateConstructorUsedError; + @optionalTypeArgs + TResult? mapOrNull({ + TResult Function(Event value)? event, + TResult Function(Rgba value)? rgba, + }) => + throw _privateConstructorUsedError; + @optionalTypeArgs + TResult maybeMap({ + TResult Function(Event value)? event, + TResult Function(Rgba value)? rgba, + required TResult orElse(), + }) => + throw _privateConstructorUsedError; +} + +/// @nodoc +abstract class $EventToUICopyWith<$Res> { + factory $EventToUICopyWith(EventToUI value, $Res Function(EventToUI) then) = + _$EventToUICopyWithImpl<$Res>; +} + +/// @nodoc +class _$EventToUICopyWithImpl<$Res> implements $EventToUICopyWith<$Res> { + _$EventToUICopyWithImpl(this._value, this._then); + + final EventToUI _value; + // ignore: unused_field + final $Res Function(EventToUI) _then; +} + +/// @nodoc +abstract class _$$EventCopyWith<$Res> { + factory _$$EventCopyWith(_$Event value, $Res Function(_$Event) then) = + __$$EventCopyWithImpl<$Res>; + $Res call({String field0}); +} + +/// @nodoc +class __$$EventCopyWithImpl<$Res> extends _$EventToUICopyWithImpl<$Res> + implements _$$EventCopyWith<$Res> { + __$$EventCopyWithImpl(_$Event _value, $Res Function(_$Event) _then) + : super(_value, (v) => _then(v as _$Event)); + + @override + _$Event get _value => super._value as _$Event; + + @override + $Res call({ + Object? field0 = freezed, + }) { + return _then(_$Event( + field0 == freezed + ? _value.field0 + : field0 // ignore: cast_nullable_to_non_nullable + as String, + )); + } +} + +/// @nodoc + +class _$Event implements Event { + const _$Event(this.field0); + + @override + final String field0; + + @override + String toString() { + return 'EventToUI.event(field0: $field0)'; + } + + @override + bool operator ==(dynamic other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$Event && + const DeepCollectionEquality().equals(other.field0, field0)); + } + + @override + int get hashCode => + Object.hash(runtimeType, const DeepCollectionEquality().hash(field0)); + + @JsonKey(ignore: true) + @override + _$$EventCopyWith<_$Event> get copyWith => + __$$EventCopyWithImpl<_$Event>(this, _$identity); + + @override + @optionalTypeArgs + TResult when({ + required TResult Function(String field0) event, + required TResult Function(Uint8List field0) rgba, + }) { + return event(field0); + } + + @override + @optionalTypeArgs + TResult? whenOrNull({ + TResult Function(String field0)? event, + TResult Function(Uint8List field0)? rgba, + }) { + return event?.call(field0); + } + + @override + @optionalTypeArgs + TResult maybeWhen({ + TResult Function(String field0)? event, + TResult Function(Uint8List field0)? rgba, + required TResult orElse(), + }) { + if (event != null) { + return event(field0); + } + return orElse(); + } + + @override + @optionalTypeArgs + TResult map({ + required TResult Function(Event value) event, + required TResult Function(Rgba value) rgba, + }) { + return event(this); + } + + @override + @optionalTypeArgs + TResult? mapOrNull({ + TResult Function(Event value)? event, + TResult Function(Rgba value)? rgba, + }) { + return event?.call(this); + } + + @override + @optionalTypeArgs + TResult maybeMap({ + TResult Function(Event value)? event, + TResult Function(Rgba value)? rgba, + required TResult orElse(), + }) { + if (event != null) { + return event(this); + } + return orElse(); + } +} + +abstract class Event implements EventToUI { + const factory Event(final String field0) = _$Event; + + String get field0; + @JsonKey(ignore: true) + _$$EventCopyWith<_$Event> get copyWith => throw _privateConstructorUsedError; +} + +/// @nodoc +abstract class _$$RgbaCopyWith<$Res> { + factory _$$RgbaCopyWith(_$Rgba value, $Res Function(_$Rgba) then) = + __$$RgbaCopyWithImpl<$Res>; + $Res call({Uint8List field0}); +} + +/// @nodoc +class __$$RgbaCopyWithImpl<$Res> extends _$EventToUICopyWithImpl<$Res> + implements _$$RgbaCopyWith<$Res> { + __$$RgbaCopyWithImpl(_$Rgba _value, $Res Function(_$Rgba) _then) + : super(_value, (v) => _then(v as _$Rgba)); + + @override + _$Rgba get _value => super._value as _$Rgba; + + @override + $Res call({ + Object? field0 = freezed, + }) { + return _then(_$Rgba( + field0 == freezed + ? _value.field0 + : field0 // ignore: cast_nullable_to_non_nullable + as Uint8List, + )); + } +} + +/// @nodoc + +class _$Rgba implements Rgba { + const _$Rgba(this.field0); + + @override + final Uint8List field0; + + @override + String toString() { + return 'EventToUI.rgba(field0: $field0)'; + } + + @override + bool operator ==(dynamic other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$Rgba && + const DeepCollectionEquality().equals(other.field0, field0)); + } + + @override + int get hashCode => + Object.hash(runtimeType, const DeepCollectionEquality().hash(field0)); + + @JsonKey(ignore: true) + @override + _$$RgbaCopyWith<_$Rgba> get copyWith => + __$$RgbaCopyWithImpl<_$Rgba>(this, _$identity); + + @override + @optionalTypeArgs + TResult when({ + required TResult Function(String field0) event, + required TResult Function(Uint8List field0) rgba, + }) { + return rgba(field0); + } + + @override + @optionalTypeArgs + TResult? whenOrNull({ + TResult Function(String field0)? event, + TResult Function(Uint8List field0)? rgba, + }) { + return rgba?.call(field0); + } + + @override + @optionalTypeArgs + TResult maybeWhen({ + TResult Function(String field0)? event, + TResult Function(Uint8List field0)? rgba, + required TResult orElse(), + }) { + if (rgba != null) { + return rgba(field0); + } + return orElse(); + } + + @override + @optionalTypeArgs + TResult map({ + required TResult Function(Event value) event, + required TResult Function(Rgba value) rgba, + }) { + return rgba(this); + } + + @override + @optionalTypeArgs + TResult? mapOrNull({ + TResult Function(Event value)? event, + TResult Function(Rgba value)? rgba, + }) { + return rgba?.call(this); + } + + @override + @optionalTypeArgs + TResult maybeMap({ + TResult Function(Event value)? event, + TResult Function(Rgba value)? rgba, + required TResult orElse(), + }) { + if (rgba != null) { + return rgba(this); + } + return orElse(); + } +} + +abstract class Rgba implements EventToUI { + const factory Rgba(final Uint8List field0) = _$Rgba; + + Uint8List get field0; + @JsonKey(ignore: true) + _$$RgbaCopyWith<_$Rgba> get copyWith => throw _privateConstructorUsedError; +} diff --git a/flutter/lib/generated_plugin_registrant.dart b/flutter/lib/generated_plugin_registrant.dart new file mode 100644 index 000000000..eba9fb8cc --- /dev/null +++ b/flutter/lib/generated_plugin_registrant.dart @@ -0,0 +1,35 @@ +// +// Generated file. Do not edit. +// + +// ignore_for_file: directives_ordering +// ignore_for_file: lines_longer_than_80_chars +// ignore_for_file: depend_on_referenced_packages + +import 'package:desktop_drop/desktop_drop_web.dart'; +import 'package:device_info_plus_web/device_info_plus_web.dart'; +import 'package:firebase_analytics_web/firebase_analytics_web.dart'; +import 'package:firebase_core_web/firebase_core_web.dart'; +import 'package:image_picker_for_web/image_picker_for_web.dart'; +import 'package:package_info_plus_web/package_info_plus_web.dart'; +import 'package:shared_preferences_web/shared_preferences_web.dart'; +import 'package:url_launcher_web/url_launcher_web.dart'; +import 'package:video_player_web/video_player_web.dart'; +import 'package:wakelock_web/wakelock_web.dart'; + +import 'package:flutter_web_plugins/flutter_web_plugins.dart'; + +// ignore: public_member_api_docs +void registerPlugins(Registrar registrar) { + DesktopDropWeb.registerWith(registrar); + DeviceInfoPlusPlugin.registerWith(registrar); + FirebaseAnalyticsWeb.registerWith(registrar); + FirebaseCoreWeb.registerWith(registrar); + ImagePickerPlugin.registerWith(registrar); + PackageInfoPlugin.registerWith(registrar); + SharedPreferencesPlugin.registerWith(registrar); + UrlLauncherPlugin.registerWith(registrar); + VideoPlayerPlugin.registerWith(registrar); + WakelockWeb.registerWith(registrar); + registrar.registerMessageHandler(); +} diff --git a/flutter/macos/Podfile.lock b/flutter/macos/Podfile.lock index a83616180..e417eb188 100644 --- a/flutter/macos/Podfile.lock +++ b/flutter/macos/Podfile.lock @@ -1,78 +1,84 @@ PODS: - - bitsdojo_window_macos (0.0.1): + - desktop_drop (0.0.1): - FlutterMacOS - desktop_multi_window (0.0.1): - FlutterMacOS - device_info_plus_macos (0.0.1): - FlutterMacOS - - Firebase/Analytics (8.15.0): + - Firebase/Analytics (9.4.0): - Firebase/Core - - Firebase/Core (8.15.0): + - Firebase/Core (9.4.0): - Firebase/CoreOnly - - FirebaseAnalytics (~> 8.15.0) - - Firebase/CoreOnly (8.15.0): - - FirebaseCore (= 8.15.0) - - firebase_analytics (9.1.9): - - Firebase/Analytics (= 8.15.0) + - FirebaseAnalytics (~> 9.4.0) + - Firebase/CoreOnly (9.4.0): + - FirebaseCore (= 9.4.0) + - firebase_analytics (9.3.3): + - Firebase/Analytics (= 9.4.0) - firebase_core - FlutterMacOS - - firebase_core (1.17.1): - - Firebase/CoreOnly (~> 8.15.0) + - firebase_core (1.21.1): + - Firebase/CoreOnly (~> 9.4.0) - FlutterMacOS - - FirebaseAnalytics (8.15.0): - - FirebaseAnalytics/AdIdSupport (= 8.15.0) - - FirebaseCore (~> 8.0) - - FirebaseInstallations (~> 8.0) + - FirebaseAnalytics (9.4.0): + - FirebaseAnalytics/AdIdSupport (= 9.4.0) + - FirebaseCore (~> 9.0) + - FirebaseInstallations (~> 9.0) - GoogleUtilities/AppDelegateSwizzler (~> 7.7) - GoogleUtilities/MethodSwizzler (~> 7.7) - GoogleUtilities/Network (~> 7.7) - "GoogleUtilities/NSData+zlib (~> 7.7)" - - nanopb (~> 2.30908.0) - - FirebaseAnalytics/AdIdSupport (8.15.0): - - FirebaseCore (~> 8.0) - - FirebaseInstallations (~> 8.0) - - GoogleAppMeasurement (= 8.15.0) + - nanopb (< 2.30910.0, >= 2.30908.0) + - FirebaseAnalytics/AdIdSupport (9.4.0): + - FirebaseCore (~> 9.0) + - FirebaseInstallations (~> 9.0) + - GoogleAppMeasurement (= 9.4.0) - GoogleUtilities/AppDelegateSwizzler (~> 7.7) - GoogleUtilities/MethodSwizzler (~> 7.7) - GoogleUtilities/Network (~> 7.7) - "GoogleUtilities/NSData+zlib (~> 7.7)" - - nanopb (~> 2.30908.0) - - FirebaseCore (8.15.0): - - FirebaseCoreDiagnostics (~> 8.0) + - nanopb (< 2.30910.0, >= 2.30908.0) + - FirebaseCore (9.4.0): + - FirebaseCoreDiagnostics (~> 9.0) + - FirebaseCoreInternal (~> 9.0) - GoogleUtilities/Environment (~> 7.7) - GoogleUtilities/Logger (~> 7.7) - - FirebaseCoreDiagnostics (8.15.0): - - GoogleDataTransport (~> 9.1) + - FirebaseCoreDiagnostics (9.5.0): + - GoogleDataTransport (< 10.0.0, >= 9.1.4) - GoogleUtilities/Environment (~> 7.7) - GoogleUtilities/Logger (~> 7.7) - - nanopb (~> 2.30908.0) - - FirebaseInstallations (8.15.0): - - FirebaseCore (~> 8.0) + - nanopb (< 2.30910.0, >= 2.30908.0) + - FirebaseCoreInternal (9.5.0): + - "GoogleUtilities/NSData+zlib (~> 7.7)" + - FirebaseInstallations (9.5.0): + - FirebaseCore (~> 9.0) - GoogleUtilities/Environment (~> 7.7) - GoogleUtilities/UserDefaults (~> 7.7) - - PromisesObjC (< 3.0, >= 1.2) + - PromisesObjC (~> 2.1) - FlutterMacOS (1.0.0) - - GoogleAppMeasurement (8.15.0): - - GoogleAppMeasurement/AdIdSupport (= 8.15.0) + - FMDB (2.7.5): + - FMDB/standard (= 2.7.5) + - FMDB/standard (2.7.5) + - GoogleAppMeasurement (9.4.0): + - GoogleAppMeasurement/AdIdSupport (= 9.4.0) - GoogleUtilities/AppDelegateSwizzler (~> 7.7) - GoogleUtilities/MethodSwizzler (~> 7.7) - GoogleUtilities/Network (~> 7.7) - "GoogleUtilities/NSData+zlib (~> 7.7)" - - nanopb (~> 2.30908.0) - - GoogleAppMeasurement/AdIdSupport (8.15.0): - - GoogleAppMeasurement/WithoutAdIdSupport (= 8.15.0) + - nanopb (< 2.30910.0, >= 2.30908.0) + - GoogleAppMeasurement/AdIdSupport (9.4.0): + - GoogleAppMeasurement/WithoutAdIdSupport (= 9.4.0) - GoogleUtilities/AppDelegateSwizzler (~> 7.7) - GoogleUtilities/MethodSwizzler (~> 7.7) - GoogleUtilities/Network (~> 7.7) - "GoogleUtilities/NSData+zlib (~> 7.7)" - - nanopb (~> 2.30908.0) - - GoogleAppMeasurement/WithoutAdIdSupport (8.15.0): + - nanopb (< 2.30910.0, >= 2.30908.0) + - GoogleAppMeasurement/WithoutAdIdSupport (9.4.0): - GoogleUtilities/AppDelegateSwizzler (~> 7.7) - GoogleUtilities/MethodSwizzler (~> 7.7) - GoogleUtilities/Network (~> 7.7) - "GoogleUtilities/NSData+zlib (~> 7.7)" - - nanopb (~> 2.30908.0) - - GoogleDataTransport (9.1.4): + - nanopb (< 2.30910.0, >= 2.30908.0) + - GoogleDataTransport (9.2.0): - GoogleUtilities/Environment (~> 7.7) - nanopb (< 2.30910.0, >= 2.30908.0) - PromisesObjC (< 3.0, >= 1.2) @@ -95,18 +101,25 @@ PODS: - GoogleUtilities/Logger - GoogleUtilities/UserDefaults (7.7.0): - GoogleUtilities/Logger - - nanopb (2.30908.0): - - nanopb/decode (= 2.30908.0) - - nanopb/encode (= 2.30908.0) - - nanopb/decode (2.30908.0) - - nanopb/encode (2.30908.0) + - nanopb (2.30909.0): + - nanopb/decode (= 2.30909.0) + - nanopb/encode (= 2.30909.0) + - nanopb/decode (2.30909.0) + - nanopb/encode (2.30909.0) - package_info_plus_macos (0.0.1): - FlutterMacOS - path_provider_macos (0.0.1): - FlutterMacOS - - PromisesObjC (2.1.0) + - PromisesObjC (2.1.1) + - screen_retriever (0.0.1): + - FlutterMacOS - shared_preferences_macos (0.0.1): - FlutterMacOS + - sqflite (0.0.2): + - FlutterMacOS + - FMDB (>= 2.7.5) + - tray_manager (0.0.1): + - FlutterMacOS - url_launcher_macos (0.0.1): - FlutterMacOS - wakelock_macos (0.0.1): @@ -115,7 +128,7 @@ PODS: - FlutterMacOS DEPENDENCIES: - - bitsdojo_window_macos (from `Flutter/ephemeral/.symlinks/plugins/bitsdojo_window_macos/macos`) + - desktop_drop (from `Flutter/ephemeral/.symlinks/plugins/desktop_drop/macos`) - desktop_multi_window (from `Flutter/ephemeral/.symlinks/plugins/desktop_multi_window/macos`) - device_info_plus_macos (from `Flutter/ephemeral/.symlinks/plugins/device_info_plus_macos/macos`) - firebase_analytics (from `Flutter/ephemeral/.symlinks/plugins/firebase_analytics/macos`) @@ -123,7 +136,10 @@ DEPENDENCIES: - FlutterMacOS (from `Flutter/ephemeral`) - package_info_plus_macos (from `Flutter/ephemeral/.symlinks/plugins/package_info_plus_macos/macos`) - path_provider_macos (from `Flutter/ephemeral/.symlinks/plugins/path_provider_macos/macos`) + - screen_retriever (from `Flutter/ephemeral/.symlinks/plugins/screen_retriever/macos`) - shared_preferences_macos (from `Flutter/ephemeral/.symlinks/plugins/shared_preferences_macos/macos`) + - sqflite (from `Flutter/ephemeral/.symlinks/plugins/sqflite/macos`) + - tray_manager (from `Flutter/ephemeral/.symlinks/plugins/tray_manager/macos`) - url_launcher_macos (from `Flutter/ephemeral/.symlinks/plugins/url_launcher_macos/macos`) - wakelock_macos (from `Flutter/ephemeral/.symlinks/plugins/wakelock_macos/macos`) - window_manager (from `Flutter/ephemeral/.symlinks/plugins/window_manager/macos`) @@ -134,7 +150,9 @@ SPEC REPOS: - FirebaseAnalytics - FirebaseCore - FirebaseCoreDiagnostics + - FirebaseCoreInternal - FirebaseInstallations + - FMDB - GoogleAppMeasurement - GoogleDataTransport - GoogleUtilities @@ -142,8 +160,8 @@ SPEC REPOS: - PromisesObjC EXTERNAL SOURCES: - bitsdojo_window_macos: - :path: Flutter/ephemeral/.symlinks/plugins/bitsdojo_window_macos/macos + desktop_drop: + :path: Flutter/ephemeral/.symlinks/plugins/desktop_drop/macos desktop_multi_window: :path: Flutter/ephemeral/.symlinks/plugins/desktop_multi_window/macos device_info_plus_macos: @@ -158,8 +176,14 @@ EXTERNAL SOURCES: :path: Flutter/ephemeral/.symlinks/plugins/package_info_plus_macos/macos path_provider_macos: :path: Flutter/ephemeral/.symlinks/plugins/path_provider_macos/macos + screen_retriever: + :path: Flutter/ephemeral/.symlinks/plugins/screen_retriever/macos shared_preferences_macos: :path: Flutter/ephemeral/.symlinks/plugins/shared_preferences_macos/macos + sqflite: + :path: Flutter/ephemeral/.symlinks/plugins/sqflite/macos + tray_manager: + :path: Flutter/ephemeral/.symlinks/plugins/tray_manager/macos url_launcher_macos: :path: Flutter/ephemeral/.symlinks/plugins/url_launcher_macos/macos wakelock_macos: @@ -168,25 +192,30 @@ EXTERNAL SOURCES: :path: Flutter/ephemeral/.symlinks/plugins/window_manager/macos SPEC CHECKSUMS: - bitsdojo_window_macos: 44e3b8fe3dd463820e0321f6256c5b1c16bb6a00 + desktop_drop: 69eeff437544aa619c8db7f4481b3a65f7696898 desktop_multi_window: 566489c048b501134f9d7fb6a2354c60a9126486 device_info_plus_macos: 1ad388a1ef433505c4038e7dd9605aadd1e2e9c7 - Firebase: 5f8193dff4b5b7c5d5ef72ae54bb76c08e2b841d - firebase_analytics: d448483150504ed84f25c5437a34af2591a7929e - firebase_core: 7b87364e2d1eae70018a60698e89e7d6f5320bad - FirebaseAnalytics: 7761cbadb00a717d8d0939363eb46041526474fa - FirebaseCore: 5743c5785c074a794d35f2fff7ecc254a91e08b1 - FirebaseCoreDiagnostics: 92e07a649aeb66352b319d43bdd2ee3942af84cb - FirebaseInstallations: 40bd9054049b2eae9a2c38ef1c3dd213df3605cd + Firebase: 7703fc4022824b6d6db1bf7bea58d13b8e17ec46 + firebase_analytics: 57144bae6cd39d3be367a8767a1b8857a037cee5 + firebase_core: 822a1076483bf9764284322c9310daa98e1e6817 + FirebaseAnalytics: a1a24e72b7ba7f47045a4633f1abb545c07bd29c + FirebaseCore: 9a2b10270a854731c4d4d8a97d0aa8380ec3458d + FirebaseCoreDiagnostics: 17cbf4e72b1dbd64bfdc33d4b1f07bce4f16f1d8 + FirebaseCoreInternal: 50a8e39cae8abf72d5145d07ea34c3244f70862b + FirebaseInstallations: 41f811b530c41dd90973d0174381cdb3fcb5e839 FlutterMacOS: 57701585bf7de1b3fc2bb61f6378d73bbdea8424 - GoogleAppMeasurement: 4c19f031220c72464d460c9daa1fb5d1acce958e - GoogleDataTransport: 5fffe35792f8b96ec8d6775f5eccd83c998d5a3b + FMDB: 2ce00b547f966261cd18927a3ddb07cb6f3db82a + GoogleAppMeasurement: 5d69e04287fc2c10cc43724bfa4bf31fc12c3dff + GoogleDataTransport: 1c8145da7117bd68bbbed00cf304edb6a24de00f GoogleUtilities: e0913149f6b0625b553d70dae12b49fc62914fd1 - nanopb: a0ba3315591a9ae0a16a309ee504766e90db0c96 + nanopb: b552cce312b6c8484180ef47159bc0f65a1f0431 package_info_plus_macos: f010621b07802a241d96d01876d6705f15e77c1c path_provider_macos: 3c0c3b4b0d4a76d2bf989a913c2de869c5641a19 - PromisesObjC: 99b6f43f9e1044bd87a95a60beff28c2c44ddb72 + PromisesObjC: ab77feca74fa2823e7af4249b8326368e61014cb + screen_retriever: 59634572a57080243dd1bf715e55b6c54f241a38 shared_preferences_macos: a64dc611287ed6cbe28fd1297898db1336975727 + sqflite: a5789cceda41d54d23f31d6de539d65bb14100ea + tray_manager: 9064e219c56d75c476e46b9a21182087930baf90 url_launcher_macos: 597e05b8e514239626bcf4a850fcf9ef5c856ec3 wakelock_macos: bc3f2a9bd8d2e6c89fee1e1822e7ddac3bd004a9 window_manager: 3a1844359a6295ab1e47659b1a777e36773cd6e8 diff --git a/flutter/macos/Runner/Release.entitlements b/flutter/macos/Runner/Release.entitlements index 852fa1a47..ee95ab7e5 100644 --- a/flutter/macos/Runner/Release.entitlements +++ b/flutter/macos/Runner/Release.entitlements @@ -4,5 +4,7 @@ com.apple.security.app-sandbox + com.apple.security.network.client + diff --git a/flutter/macos/rustdesk.xcodeproj/project.pbxproj b/flutter/macos/rustdesk.xcodeproj/project.pbxproj index bed41ae67..5e9d16659 100644 --- a/flutter/macos/rustdesk.xcodeproj/project.pbxproj +++ b/flutter/macos/rustdesk.xcodeproj/project.pbxproj @@ -33,7 +33,7 @@ /* Begin PBXFileReference section */ ADDEDBA66A6E1 /* libresolv.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libresolv.tbd; path = usr/lib/libresolv.tbd; sourceTree = SDKROOT; }; - CA603C4309E13EF4668187A5 /* Cargo.toml */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = Cargo.toml; path = /Users/ruizruiz/Work/Code/Projects/RustDesk/rustdesk/Cargo.toml; sourceTree = ""; }; + CA603C4309E13EF4668187A5 /* Cargo.toml */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = Cargo.toml; path = /Users/mac/Documents/project/rustdesk/Cargo.toml; sourceTree = ""; }; CA604C7415FB2A3731F5016A /* liblibrustdesk_static.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = liblibrustdesk_static.a; sourceTree = BUILT_PRODUCTS_DIR; }; CA6071B5A0F5A7A3EF2297AA /* librustdesk.dylib */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.dylib"; includeInIndex = 0; path = librustdesk.dylib; sourceTree = BUILT_PRODUCTS_DIR; }; CA60D3BC5386B357B2AB834F /* rustdesk */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = rustdesk; sourceTree = BUILT_PRODUCTS_DIR; };