X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=include%2Flibnfs-raw.h;h=5c901d18395128da521f65c34aaaf0c22f296659;hb=6916a66546035da5c1c82c3c85e387061a758b74;hp=c577aa565f36b6670bc0ae43daad082a01ed76fa;hpb=fa3c25beeeb4c533089a2af8454ef50e21e7b8f5;p=deb_libnfs.git diff --git a/include/libnfs-raw.h b/include/libnfs-raw.h index c577aa5..5c901d1 100644 --- a/include/libnfs-raw.h +++ b/include/libnfs-raw.h @@ -752,6 +752,13 @@ int rpc_rquota2_getactivequota_async(struct rpc_context *rpc, rpc_cb cb, char *e + + + +/* + * NFSACL functions + */ + /* * Call NFSACL/NULL * Call the NULL procedure for the NFSACL @@ -785,7 +792,8 @@ int rpc_nfsacl_null_async(struct rpc_context *rpc, rpc_cb cb, void *private_data * RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete. * data is NULL. */ -int rpc_nfsacl_getacl_async(struct rpc_context *rpc, rpc_cb cb, struct nfs_fh3 *fh, uint32_t mask, void *private_data); +struct GETACL3args; +int rpc_nfsacl_getacl_async(struct rpc_context *rpc, rpc_cb cb, struct GETACL3args *args, void *private_data); @@ -806,3 +814,29 @@ int rpc_nfsacl_getacl_async(struct rpc_context *rpc, rpc_cb cb, struct nfs_fh3 * */ struct SETACL3args; int rpc_nfsacl_setacl_async(struct rpc_context *rpc, rpc_cb cb, struct SETACL3args *args, void *private_data); + + + + +/* + * NLM functions + */ +char *nlmstat4_to_str(int stat); + +/* + * Call NLM/NULL + * Call the NULL procedure for the NLM protocol + * + * Function returns + * 0 : The call was initiated. The callback will be invoked when the call completes. + * <0 : An error occured when trying to set up the call. The callback will not be invoked. + * + * When the callback is invoked, status indicates the result: + * RPC_STATUS_SUCCESS : We got a successful response from the nlm daemon. + * data is NULL + * RPC_STATUS_ERROR : An error occured when trying to contact the nlm daemon. + * data is the error string. + * RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete. + * data is NULL. + */ +int rpc_nlm_null_async(struct rpc_context *rpc, rpc_cb cb, void *private_data);