Add helper function for retrieving libmutton version

This commit is contained in:
2026-02-04 22:02:04 -05:00
parent aa716c59d2
commit 688532193f
3 changed files with 10 additions and 1 deletions
+2
View File
@@ -95,3 +95,5 @@ func safeBoolDeref(b *bool) bool {
} }
return *b return *b
} }
func main() {}
+1
View File
@@ -98,6 +98,7 @@ int main() {
- [X] ~~RCWDArgument()~~ (RCWD not supported) - [X] ~~RCWDArgument()~~ (RCWD not supported)
- [X] global - [X] global
- [X] ~~VAR (CB func): GetPassword~~ (RCWD not supported) - [X] ~~VAR (CB func): GetPassword~~ (RCWD not supported)
- [X] VAR LibmuttonVersion (GetVersion())
- [X] DirInit(preserveOldCfgDir bool) (string, error) - [X] DirInit(preserveOldCfgDir bool) (string, error)
- [X] ~~GenDeviceIDList() ([]fs.DirEntry, error)~~ (not for use outside of libmutton) - [X] ~~GenDeviceIDList() ([]fs.DirEntry, error)~~ (not for use outside of libmutton)
- [X] GetCurrentDeviceID() (string, error) - [X] GetCurrentDeviceID() (string, error)
+7 -1
View File
@@ -65,4 +65,10 @@ func GetVanityPath(realPath *C.char) C.PascalString {
return getPascalString(global.GetVanityPath(C.GoString(realPath))) return getPascalString(global.GetVanityPath(C.GoString(realPath)))
} }
func main() {} // GetVersion returns:
// versionNumber
//
//export GetVersion
func GetVersion() *C.char {
return C.CString(global.LibmuttonVersion)
}