]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
libcephfs: add libcephfs version code 3840/head
authorYan, Zheng <zyan@redhat.com>
Tue, 3 Mar 2015 01:39:49 +0000 (09:39 +0800)
committerYan, Zheng <zyan@redhat.com>
Thu, 5 Mar 2015 04:51:34 +0000 (12:51 +0800)
Signed-off-by: Yan, Zheng <zyan@redhat.com>
src/include/cephfs/libcephfs.h

index 769d4bdf59371ccaca091276bdad09e370ceb42f..205df9e3b3fcfff9b28033ad53b3f3a5122156ef 100644 (file)
@@ -33,6 +33,13 @@ typedef off_t off64_t;
 extern "C" {
 #endif
 
+#define LIBCEPHFS_VER_MAJOR 0
+#define LIBCEPHFS_VER_MINOR 94
+#define LIBCEPHFS_VER_EXTRA 0
+
+#define LIBCEPHFS_VERSION(maj, min, extra) ((maj << 16) + (min << 8) + extra)
+#define LIBCEPHFS_VERSION_CODE LIBCEPHFS_VERSION(LIBCEPHFS_VER_MAJOR, LIBCEPHFS_VER_MINOR, LIBCEPHFS_VER_EXTRA)
+
 /*
  * On FreeBSD and Apple the offset is 64 bit, but libc doesn't announce it in
  * the way glibc does.