]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
libcephfs: Fix compilation for C compiler
authorChristophe Courtaut <christophe.courtaut@gmail.com>
Thu, 31 Oct 2013 16:43:35 +0000 (17:43 +0100)
committerSage Weil <sage@inktank.com>
Fri, 1 Nov 2013 23:09:08 +0000 (16:09 -0700)
Use struct instead of class, even if it warns.

Warnings are lower priority than compilation break.

Signed-off-by: Christophe Courtaut <christophe.courtaut@gmail.com>
src/include/cephfs/libcephfs.h

index f2ab2ae61e18142827da5ec07d2c4b3fe1812696..9b74f63c062d3b0dd0df74bb2f93177811ef9c76 100644 (file)
@@ -40,7 +40,7 @@ extern "C" {
 
 struct ceph_mount_info;
 struct ceph_dir_result;
-class CephContext;
+struct CephContext;
 
 /* setattr mask bits */
 #ifndef CEPH_SETATTR_MODE
@@ -94,7 +94,7 @@ int ceph_create(struct ceph_mount_info **cmount, const char * const id);
  * @param conf reuse this pre-existing CephContext config
  * @returns 0 on success, negative error code on failure
  */
-int ceph_create_with_context(struct ceph_mount_info **cmount, class CephContext *conf);
+int ceph_create_with_context(struct ceph_mount_info **cmount, struct CephContext *conf);
 
 /**
  * Perform a mount using the path for the root of the mount.
@@ -142,7 +142,7 @@ void ceph_shutdown(struct ceph_mount_info *cmount);
  * @param cmount the ceph mount handle to get the context from.
  * @returns the CephContext associated with the mount handle.
  */
-class CephContext *ceph_get_mount_context(struct ceph_mount_info *cmount);
+struct CephContext *ceph_get_mount_context(struct ceph_mount_info *cmount);
 
 /*
  * Check mount status.