X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=include%2Fnfsc%2Flibnfs.h;h=b9138c9066409ea3fab16053a4ebca4c9a2d793d;hb=3cea44dc5425410ad2ca0b5d5b471445def94a6c;hp=e07506470c75afe2931b55f56b58e228c0fa0d8e;hpb=6ec481d3fae973cf077d70c9cf870b425fee7112;p=deb_libnfs.git diff --git a/include/nfsc/libnfs.h b/include/nfsc/libnfs.h index e075064..b9138c9 100644 --- a/include/nfsc/libnfs.h +++ b/include/nfsc/libnfs.h @@ -272,6 +272,11 @@ EXTERN int nfs_fstat(struct nfs_context *nfs, struct nfsfh *nfsfh, struct stat * * 0 : The operation was initiated. Once the operation finishes, the callback will be invoked. * <0 : An error occured when trying to set up the operation. The callback will not be invoked. * + * Supported flags are + * O_RDONLY + * O_WRONLY + * O_RDWR + * * When the callback is invoked, status indicates the result: * 0 : Success. * data is a struct *nfsfh; @@ -279,14 +284,14 @@ EXTERN int nfs_fstat(struct nfs_context *nfs, struct nfsfh *nfsfh, struct stat * * -errno : An error occured. * data is the error string. */ -EXTERN int nfs_open_async(struct nfs_context *nfs, const char *path, int mode, nfs_cb cb, void *private_data); +EXTERN int nfs_open_async(struct nfs_context *nfs, const char *path, int flags, nfs_cb cb, void *private_data); /* * Sync open() * Function returns * 0 : The operation was successfull. *nfsfh is filled in. * -errno : The command failed. */ -EXTERN int nfs_open(struct nfs_context *nfs, const char *path, int mode, struct nfsfh **nfsfh); +EXTERN int nfs_open(struct nfs_context *nfs, const char *path, int flags, struct nfsfh **nfsfh);