Finish port of functions from "global" package

This commit is contained in:
RandyTheSilly committed 2026-01-21 00:39:22 -05:00
1 parent 52cb51dd75
commit 868db8c038
2 files changed
+28 -4

No files matched your search

+24
View File
@@ -36,4 +36,28 @@ func GetCurrentDeviceID() (*C.char, *C.char) {
return C.CString(currentDeviceID), nil
}
// GetRealAgePath returns:
// realAgePath
//
//export GetRealAgePath
func GetRealAgePath(vanityPath *C.char) *C.char {
return C.CString(global.GetRealAgePath(C.GoString(vanityPath)))
}
// GetRealPath returns:
// realPath
//
//export GetRealPath
func GetRealPath(vanityPath *C.char) *C.char {
return C.CString(global.GetRealPath(C.GoString(vanityPath)))
}
// GetVanityPath returns:
// vanityPath
//
//export GetVanityPath
func GetVanityPath(realPath *C.char) *C.char {
return C.CString(global.GetVanityPath(C.GoString(realPath)))
}
func main() {}