X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=include%2Flibnfs-raw.h;h=dab5418c54dc2d00bc9c932479407ef4efe20e05;hb=19e74f5a322739990fd47260f3b3347fbd49c302;hp=8ba8e9803a6a3a1a41320c6817829d630ce501e9;hpb=734ab63acda94fe05f147635b9b3d0474da801cf;p=deb_libnfs.git diff --git a/include/libnfs-raw.h b/include/libnfs-raw.h index 8ba8e98..dab5418 100644 --- a/include/libnfs-raw.h +++ b/include/libnfs-raw.h @@ -589,3 +589,19 @@ int rpc_rquota1_null_async(struct rpc_context *rpc, rpc_cb cb, void *private_dat * data is NULL. */ int rpc_rquota1_getquota_async(struct rpc_context *rpc, rpc_cb cb, char *export, int uid, void *private_data); + +/* + * Call RQUOTA1/GETACTIVEQUOTA + * 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 rquota daemon. + * data is a RQUOTA1res structure. + * RPC_STATUS_ERROR : An error occured when trying to contact the rquota daemon. + * data is the error string. + * RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete. + * data is NULL. + */ +int rpc_rquota1_getactivequota_async(struct rpc_context *rpc, rpc_cb cb, char *export, int uid, void *private_data);