mirror of
https://github.com/rwinkhart/cmutton.git
synced 2026-08-28 04:46:46 -04:00
Add helper function for retrieving libmutton version
This commit is contained in:
@@ -95,3 +95,5 @@ func safeBoolDeref(b *bool) bool {
|
|||||||
}
|
}
|
||||||
return *b
|
return *b
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func main() {}
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
@@ -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)
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user