Switch from Asuka to MyGo, keeping the API client and the feature set: - servers: saved servers, passwordless and password login, proxy, self-signed certificates, per-server device tokens (Keystore), connect form, instance list sheet with switch/disconnect - sessions: virtualized list, search, new session, rename/archive/delete, running indicator, event stream keeps it live - chat: pushed window with system back bar, streaming Markdown via ui/markdown, reasoning and tool rows with image previews, footer menu (read aloud via a Kotlin TTS plugin, copy, fork), user message menu (copy, revert, fork), context usage ring and detail sheet, attachments (photos/files via the document picker), permissions - release builds allow plain http:// LAN servers (Go's net/http dials directly, no cleartext manifest needed) - a local fork of MyGo (third_party/mygo) lowers the Android host's minSdk to 24 (Android 7.0); Go 1.27.4 via mise Version 0.3.0.
34 lines
1.0 KiB
ArmAsm
34 lines
1.0 KiB
ArmAsm
//go:build windows
|
|
|
|
#include "textflag.h"
|
|
|
|
// UI Automation passes doubles in floating point registers, which Go
|
|
// callbacks do not read: these thunks move their bits, and the arguments
|
|
// after them, to the integer registers of the arguments' positions, then
|
|
// go on to the callbacks. They use only registers a call may change: the
|
|
// assembler's loads of globals use R27, which the caller keeps.
|
|
|
|
// IRawElementProviderFragmentRoot::ElementProviderFromPoint(this, x, y, out)
|
|
TEXT ·uiaFromPointThunk(SB), NOSPLIT|NOFRAME, $0-0
|
|
MOVD R1, R3
|
|
FMOVD F0, R1
|
|
FMOVD F1, R2
|
|
MOVD $·uiaFromPointCallback(SB), R9
|
|
MOVD (R9), R9
|
|
B (R9)
|
|
|
|
// IRangeValueProvider::SetValue(this, value)
|
|
TEXT ·uiaSetValueThunk(SB), NOSPLIT|NOFRAME, $0-0
|
|
FMOVD F0, R1
|
|
MOVD $·uiaSetValueCallback(SB), R9
|
|
MOVD (R9), R9
|
|
B (R9)
|
|
|
|
// func uiaThunks() (fromPoint, setValue uintptr)
|
|
TEXT ·uiaThunks(SB), NOSPLIT, $0-16
|
|
MOVD $·uiaFromPointThunk(SB), R0
|
|
MOVD R0, fromPoint+0(FP)
|
|
MOVD $·uiaSetValueThunk(SB), R0
|
|
MOVD R0, setValue+8(FP)
|
|
RET
|