mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-18 06:13:42 +00:00
feat: move native communication to FFI (#1457)
This commit is contained in:
86 files changed
+4558
-886
No files matched your search
@@ -1,4 +1,6 @@
|
||||
import 'common/api_server_state.dart';
|
||||
import 'common/start_config.dart';
|
||||
import 'common/task_event.dart';
|
||||
import "libgopeed_boot_stub.dart"
|
||||
if (dart.library.html) 'entry/libgopeed_boot_browser.dart'
|
||||
if (dart.library.io) 'entry/libgopeed_boot_native.dart';
|
||||
@@ -16,4 +18,18 @@ abstract class LibgopeedBoot {
|
||||
Future<int> start(StartConfig cfg);
|
||||
|
||||
Future<void> stop();
|
||||
|
||||
Future<ApiServerOperationResult> getApiServerState();
|
||||
|
||||
Future<ApiServerOperationResult> startApiServer();
|
||||
|
||||
Future<ApiServerOperationResult> stopApiServer();
|
||||
|
||||
Future<ApiServerOperationResult> restartApiServer();
|
||||
|
||||
Future<String> invoke(String method, String path, {String query = '', String body = ''});
|
||||
|
||||
Stream<TaskEvent> get taskEvents;
|
||||
|
||||
Future<void> subscribeTaskEvents(Set<TaskEventType> events);
|
||||
}
|
||||
Reference in new issue
Block a user