X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Flibnfs.h;h=3ff49d73b0f8604052efa5dc7f7dabb3e1b2133c;hb=95b7217dc80c042ef364a56d3cd2cf15e489369e;hp=c72b7cf537622ed29ea9a2b981d1d4d44fae6c3f;hpb=66ad6d8438b5b89c3aa1becfe2e5057616f80273;p=deb_libnfs.git diff --git a/include/libnfs.h b/include/libnfs.h index c72b7cf..3ff49d7 100644 --- a/include/libnfs.h +++ b/include/libnfs.h @@ -57,6 +57,7 @@ struct utimbuf { EXTERN int nfs_get_fd(struct nfs_context *nfs); EXTERN int nfs_which_events(struct nfs_context *nfs); EXTERN int nfs_service(struct nfs_context *nfs, int revents); +EXTERN int nfs_queue_length(struct nfs_context *nfs); /* * Used if you need different credentials than the default for the current user. @@ -611,6 +612,14 @@ struct nfsdirent { struct nfsdirent *next; char *name; uint64_t inode; + + /* some extra fields we get for free through the READDIRPLUS3 call. You need libnfs-raw-nfs.h for these */ + uint32_t type; /* NF3REG, NF3DIR, NF3BLK, ... */ + uint32_t mode; + uint64_t size; + struct timeval atime; + struct timeval mtime; + struct timeval ctime; }; /* * nfs_readdir() never blocks, so no special sync/async versions are available