]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common: Make armor.h safe to use from C.
authorTommi Virtanen <tommi.virtanen@dreamhost.com>
Tue, 29 Mar 2011 16:21:09 +0000 (09:21 -0700)
committerTommi Virtanen <tommi.virtanen@dreamhost.com>
Tue, 29 Mar 2011 19:55:17 +0000 (12:55 -0700)
mount.ceph needs to base64-decode the secrets, so we can get rid of
the kernel-side base64 decode, but it doesn't need all of common lib.
And it is written in C.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
src/common/armor.h

index 0ed3b21a499213bb7198b9c9c5571b572b848cbb..cf9a63aa149745ecec3b1543c6e4aaba5b07880c 100644 (file)
@@ -1,11 +1,16 @@
 #ifndef CEPH_ARMOR_H
 #define CEPH_ARMOR_H
 
+#ifdef __cplusplus
 extern "C" {
+#endif
+
 int ceph_armor(char *dst, const char *dst_end,
               const char *src, const char *end);
 int ceph_unarmor(char *dst, const char *dst_end,
                 const char *src, const char *end);
+#ifdef __cplusplus
 }
+#endif
 
 #endif