Permalink
Browse files

Print MTP version.

  • Loading branch information...
1 parent 8023f10 commit e4edd01178ba41fc2c924b1c41c88c94abfc15f1 @hanwen committed Jun 14, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 mtp.go
View
5 mtp.go
@@ -46,6 +46,11 @@ const FILETYPE_UNKNOWN = C.LIBMTP_FILETYPE_UNKNOWN
func Init() {
C.LIBMTP_Init()
+ log.Printf("compiled against libmtp %s", MtpVersion())
+}
+
+func MtpVersion() string {
+ return C.LIBMTP_VERSION_STRING
}
func SetDebug(mask int) {

0 comments on commit e4edd01

Please sign in to comment.