]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
librgw: add API version defines for librgw and rgw_file
authorMatt Benjamin <mbenjamin@redhat.com>
Tue, 23 Aug 2016 18:18:43 +0000 (14:18 -0400)
committerMatt Benjamin <mbenjamin@redhat.com>
Tue, 23 Aug 2016 18:18:43 +0000 (14:18 -0400)
This change borrows the major, minor+extra format used by libcephfs.
The version numbering is starting at 1,1,0 on the theory that the
implicit version at Jewel is 1,0,0.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/include/rados/librgw.h
src/include/rados/rgw_file.h

index 9ba8f3ac67a6f948594a0d9ea226bbc97a537082..c20e96bed96b2cb14b64871addb6d84e62f3a8fc 100644 (file)
 extern "C" {
 #endif
 
+#define LIBRGW_VER_MAJOR 1
+#define LIBRGW_VER_MINOR 1
+#define LIBRGW_VER_EXTRA 0
+
+#define LIBRGW_VERSION(maj, min, extra) ((maj << 16) + (min << 8) + extra)
+#define LIBRGW_VERSION_CODE LIBRGW_VERSION(LIBRGW_VER_MAJOR, LIBRGW_VER_MINOR, LIBRGW_VER_EXTRA)
+
 typedef void* librgw_t;
 int librgw_create(librgw_t *rgw, int argc, char **argv);
 void librgw_shutdown(librgw_t rgw);
index a1ef37eac8584a4623fe5e05d0403f4ceebc9551..02d7634d0848a6e7afb55262d7bc677daeb35f83 100644 (file)
 extern "C" {
 #endif
 
+#define LIBRGW_FILE_VER_MAJOR 1
+#define LIBRGW_FILE_VER_MINOR 1
+#define LIBRGW_FILE_VER_EXTRA 0
+
+#define LIBRGW_FILE_VERSION(maj, min, extra) ((maj << 16) + (min << 8) + extra)
+#define LIBRGW_FILE_VERSION_CODE LIBRGW_FILE_VERSION(LIBRGW_FILE_VER_MAJOR, LIBRGW_FILE_VER_MINOR, LIBRGW_FILE_VER_EXTRA)
 
 /*
  * object types