summaryrefslogtreecommitdiff
path: root/nuttx/fs/nfs/rpc.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-06-10 00:13:59 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-06-10 00:13:59 +0000
commite56f40210903c13eb07168de2acdf61c8babd2ae (patch)
tree94685ece210f7fd49cb823ae1762db64c57a163d /nuttx/fs/nfs/rpc.h
parent59f64eb3c5ade626a3366355ae49344765d1a4c1 (diff)
downloadpx4-nuttx-e56f40210903c13eb07168de2acdf61c8babd2ae.tar.gz
px4-nuttx-e56f40210903c13eb07168de2acdf61c8babd2ae.tar.bz2
px4-nuttx-e56f40210903c13eb07168de2acdf61c8babd2ae.zip
NFS update
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4822 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/fs/nfs/rpc.h')
-rw-r--r--nuttx/fs/nfs/rpc.h27
1 files changed, 16 insertions, 11 deletions
diff --git a/nuttx/fs/nfs/rpc.h b/nuttx/fs/nfs/rpc.h
index 4199797a1..b03d73546 100644
--- a/nuttx/fs/nfs/rpc.h
+++ b/nuttx/fs/nfs/rpc.h
@@ -331,6 +331,7 @@ struct rpc_call_lookup
struct rpc_call_header ch;
struct LOOKUP3args lookup;
};
+#define SIZEOF_rpc_call_lookup(n) (sizeof(struct rpc_call_header) + SIZEOF_LOOKUP3args(n))
struct rpc_call_read
{
@@ -410,6 +411,13 @@ struct rpc_reply_create
struct CREATE3resok create;
};
+struct rpc_reply_lookup
+{
+ struct rpc_reply_header rh;
+ uint32_t status;
+ struct LOOKUP3resok lookup;
+};
+
struct rpc_reply_write
{
struct rpc_reply_header rh;
@@ -555,17 +563,14 @@ struct rpcclnt
****************************************************************************/
void rpcclnt_init(void);
-int rpcclnt_connect(struct rpcclnt *);
-int rpcclnt_reconnect(struct rpctask *);
-void rpcclnt_disconnect(struct rpcclnt *);
-int rpcclnt_umount(struct rpcclnt *);
-void rpcclnt_safedisconnect(struct rpcclnt *);
-int rpcclnt_request(FAR struct rpcclnt *, int, int, int, void *,
- FAR const void *, size_t);
-int rpcclnt_lookup(FAR struct rpcclnt *rpc, FAR const char *relpath,
- FAR struct file_handle *fhandle,
- FAR struct nfs_fattr *obj_attributes,
- FAR struct nfs_fattr *dir_attributes);
+int rpcclnt_connect(struct rpcclnt *rpc);
+int rpcclnt_reconnect(struct rpctask *rep);
+void rpcclnt_disconnect(struct rpcclnt *rpc);
+int rpcclnt_umount(struct rpcclnt *rpc);
+void rpcclnt_safedisconnect(struct rpcclnt *rpc);
+int rpcclnt_request(FAR struct rpcclnt *rpc, int procnum, int prog, int version,
+ FAR const void *request, size_t reqlen,
+ FAR void *response, size_t resplen);
#undef COMP
#ifdef COMP