libnfs-raw.h: rename export -> exportname to avoid clash with C++ keyword
[deb_libnfs.git] / include / libnfs-private.h
index a2f3e1a2a09bc8cebba77132ba1f8bdc6850c1d7..b22d9b6e89ac7d0bc6d1aa731ce6ca1f2cecdb05 100644 (file)
    You should have received a copy of the GNU Lesser General Public License
    along with this program; if not, see <http://www.gnu.org/licenses/>.
 */
+
+#ifndef _LIBNFS_PRIVATE_H_
+#define _LIBNFS_PRIVATE_H_
+
 #ifdef HAVE_CONFIG_H
 #include "config.h"  /* HAVE_SOCKADDR_STORAGE ? */
 #endif
@@ -24,6 +28,9 @@
 
 #include "libnfs-zdr.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
 
 #if !defined(HAVE_SOCKADDR_STORAGE) && !defined(WIN32)
 /*
@@ -94,7 +101,7 @@ struct rpc_context {
 
        /* fragment reassembly */
        struct rpc_fragment *fragments;
-       
+
        /* parameters passable via URL */
        int tcp_syncnt;
        int uid;
@@ -149,3 +156,9 @@ int rpc_add_fragment(struct rpc_context *rpc, char *data, uint64_t size);
 void rpc_free_all_fragments(struct rpc_context *rpc);
 
 const struct nfs_fh3 *nfs_get_rootfh(struct nfs_context *nfs);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* !_LIBNFS_PRIVATE_H_ */