X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=include%2Flibnfs-private.h;h=faa261c37168d881ee33c91e05d0edcf0a5bd43b;hb=763cd6e3e2bbb6906186e7ed6a86660276b596b7;hp=a083b37031100b82fafea1d85b2267ebcb8b18a9;hpb=061d3f1f99e354af36e8ac259a98f863975e51f5;p=deb_libnfs.git
diff --git a/include/libnfs-private.h b/include/libnfs-private.h
index a083b37..faa261c 100644
--- a/include/libnfs-private.h
+++ b/include/libnfs-private.h
@@ -14,8 +14,9 @@
You should have received a copy of the GNU Lesser General Public License
along with this program; if not, see .
*/
-#include
-#include
+#include /* struct sockaddr_storage */
+
+#include "libnfs-zdr.h"
struct rpc_fragment {
struct rpc_fragment *next;
@@ -64,7 +65,7 @@ struct rpc_pdu {
struct rpc_pdu *next;
unsigned long xid;
- XDR xdr;
+ ZDR zdr;
int written;
struct rpc_data outdata;
@@ -72,13 +73,13 @@ struct rpc_pdu {
rpc_cb cb;
void *private_data;
- /* function to decode the xdr reply data and buffer to decode into */
- xdrproc_t xdr_decode_fn;
- caddr_t xdr_decode_buf;
- int xdr_decode_bufsize;
+ /* function to decode the zdr reply data and buffer to decode into */
+ zdrproc_t zdr_decode_fn;
+ caddr_t zdr_decode_buf;
+ int zdr_decode_bufsize;
};
-struct rpc_pdu *rpc_allocate_pdu(struct rpc_context *rpc, int program, int version, int procedure, rpc_cb cb, void *private_data, xdrproc_t xdr_decode_fn, int xdr_bufsize);
+struct rpc_pdu *rpc_allocate_pdu(struct rpc_context *rpc, int program, int version, int procedure, rpc_cb cb, void *private_data, zdrproc_t zdr_decode_fn, int zdr_bufsize);
void rpc_free_pdu(struct rpc_context *rpc, struct rpc_pdu *pdu);
int rpc_queue_pdu(struct rpc_context *rpc, struct rpc_pdu *pdu);
int rpc_get_pdu_size(char *buf);