gopkg.in/dotcloud/docker.v1@v1.13.1/daemon/graphdriver/btrfs/version.go (about) 1 // +build linux,!btrfs_noversion 2 3 package btrfs 4 5 /* 6 #include <btrfs/version.h> 7 8 // around version 3.16, they did not define lib version yet 9 #ifndef BTRFS_LIB_VERSION 10 #define BTRFS_LIB_VERSION -1 11 #endif 12 13 // upstream had removed it, but now it will be coming back 14 #ifndef BTRFS_BUILD_VERSION 15 #define BTRFS_BUILD_VERSION "-" 16 #endif 17 */ 18 import "C" 19 20 func btrfsBuildVersion() string { 21 return string(C.BTRFS_BUILD_VERSION) 22 } 23 24 func btrfsLibVersion() int { 25 return int(C.BTRFS_LIB_VERSION) 26 }