fufesou
2022-12-29 14:28:15 +08:00
parent 1651cef4f3
commit 01ade73304
5 changed files with 20 additions and 11 deletions

View File

@@ -40,6 +40,7 @@ const BUF_LEN: usize = 4;
#[allow(improper_ctypes)]
#[allow(non_snake_case)]
#[link(name = "ApplicationServices", kind = "framework")]
#[link(name = "Carbon", kind = "framework")]
extern "C" {
fn CFDataGetBytePtr(theData: CFDataRef) -> *const u8;
fn TISCopyCurrentKeyboardInputSource() -> TISInputSourceRef;