]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw/rgw_file: add rgwfile_version
authorHaomai Wang <haomai@xsky.com>
Mon, 24 Oct 2016 04:13:12 +0000 (12:13 +0800)
committerHaomai Wang <haomai@xsky.com>
Wed, 2 Nov 2016 10:18:38 +0000 (18:18 +0800)
Signed-off-by: Haomai Wang <haomai@xsky.com>
src/include/rados/rgw_file.h
src/rgw/rgw_file.cc

index 02d7634d0848a6e7afb55262d7bc677daeb35f83..5c1f24cd502d480e3773141e62c1e25108392cb9 100644 (file)
@@ -82,6 +82,9 @@ struct rgw_statvfs {
     uint64_t     f_namemax;  /* maximum filename length */
 };
 
+
+void rgwfile_version(int *major, int *minor, int *extra);
+
 /*
   lookup object by name (POSIX style)
 */
index 13ac2625029ae85260bab73580a2bd90073783a9..2fa16143d636ecd2457395fc486165d3aa9835d0 100644 (file)
@@ -1088,6 +1088,16 @@ namespace rgw {
 /* librgw */
 extern "C" {
 
+void rgwfile_version(int *major, int *minor, int *extra)
+{
+  if (major)
+    *major = LIBRGW_FILE_VER_MAJOR;
+  if (minor)
+    *minor = LIBRGW_FILE_VER_MINOR;
+  if (extra)
+    *extra = LIBRGW_FILE_VER_EXTRA;
+}
+
 /*
  attach rgw namespace
 */