Finish port of functions from "global" package

This commit is contained in:
2026-01-21 00:39:22 -05:00
parent 52cb51dd75
commit 868db8c038
2 changed files with 28 additions and 4 deletions
+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() {}