Add ifndef's to protect libnfs-raw.h from being included multiple times
[deb_libnfs.git] / include / libnfs-raw.h
index 238025d5ffeb330f9c42b0204e958644f678b63e..8503e0be98805d725c8287e63fa88e491a050e26 100644 (file)
@@ -19,6 +19,9 @@
  * Through this interface you have access to the full gamut of nfs and nfs related
  * protocol as well as the XDR encoded/decoded structures.
  */
+#ifndef _LIBNFS_RAW_H_
+#define _LIBNFS_RAW_H_
+
 #include <stdint.h>
 
 struct rpc_data {
@@ -30,7 +33,7 @@ struct rpc_context;
 struct rpc_context *rpc_init_context(void);
 void rpc_destroy_context(struct rpc_context *rpc);
 
-void rpc_set_auth(struct rpc_context *rpc, AUTH *auth);
+void rpc_set_auth(struct rpc_context *rpc, struct AUTH *auth);
 
 int rpc_get_fd(struct rpc_context *rpc);
 int rpc_which_events(struct rpc_context *rpc);
@@ -914,3 +917,5 @@ int rpc_nlm4_cancel_async(struct rpc_context *rpc, rpc_cb cb, struct NLM4_CANCar
  */
 struct NLM4_UNLOCKargs;
 int rpc_nlm4_unlock_async(struct rpc_context *rpc, rpc_cb cb, struct NLM4_UNLOCKargs *args, void *private_data);
+
+#endif