]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
libcephfs: add missing declaration of ceph_getaddrs()
authorKefu Chai <kchai@redhat.com>
Tue, 14 Jan 2020 06:43:02 +0000 (14:43 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 14 Jan 2020 06:46:32 +0000 (14:46 +0800)
this function was added by df507cde8d. but the declaration was not added
to the header file.

this change silences following warning:

build/src/pybind/cephfs/pyrex/cephfs.c:6647:25: warning: implicit declaration of function 'ceph_getaddrs'; did you mean 'ceph_getxattr'? [-Wimplicit-function-declaration]
           __pyx_v_ret = ceph_getaddrs(__pyx_v_self->cluster, (&__pyx_v_addrs));
                         ^~~~~~~~~~~~~
                         ceph_getxattr

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/include/cephfs/libcephfs.h

index a94d20bc07b7080f663c98dbbef64b4a88c5977f..d574aee3700a1fdad719202ce07139ba22272b07 100644 (file)
@@ -355,6 +355,16 @@ int ceph_release(struct ceph_mount_info *cmount);
  */
 void ceph_shutdown(struct ceph_mount_info *cmount);
 
+/**
+ * Return associated client addresses
+ *
+ * @param cmount the mount handle
+ * @param addrs the output addresses
+ * @returns 0 on success, a negative error code on failure
+ * @note the returned addrs should be free by the caller
+ */
+int ceph_getaddrs(struct ceph_mount_info *cmount, char** addrs);
+
 /**
  * Get a global id for current instance
  *