working build scripts

This commit is contained in:
Henry Hiles 2026-01-24 13:44:16 +00:00
commit 5c6440894b
No known key found for this signature in database
6 changed files with 78 additions and 101 deletions

View file

@ -46,23 +46,14 @@ class ClientController extends Notifier<int> {
return handle;
}
(int requestId, Map<String, dynamic> response) sendCommand(
String command,
Map<String, dynamic> data,
) {
final responsePtr = calloc<GomuksBuffer>();
try {
final requestId = GomuksSubmitCommand(
state,
command.toNativeUtf8().cast<Char>(),
data.toGomuksBuffer(),
responsePtr,
);
void sendCommand(String command, Map<String, dynamic> data) {
// final response = GomuksSubmitCommand(
// state,
// command.toNativeUtf8().cast<Char>(),
// data.toGomuksBuffer(),
// );
return (requestId, responsePtr.ref.toJson());
} finally {
calloc.free(responsePtr);
}
// return response.buf; TODO
}
static final provider = NotifierProvider<ClientController, int>(