X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=include%2Flibnfs-raw.h;h=0a212c899d76f12199849e36683e8245d3c91c94;hb=1ec6b50aef06d7b3e27db1b406e080f7785677e9;hp=5e445192fff3959132b392d71866128305bff1e4;hpb=86ef4910045771a1da4023a1880ba1c9e265eb6d;p=deb_libnfs.git diff --git a/include/libnfs-raw.h b/include/libnfs-raw.h index 5e44519..0a212c8 100644 --- a/include/libnfs-raw.h +++ b/include/libnfs-raw.h @@ -425,6 +425,21 @@ int rpc_nfs_rmdir_async(struct rpc_context *rpc, rpc_cb cb, struct nfs_fh3 *fh, int rpc_nfs_create_async(struct rpc_context *rpc, rpc_cb cb, struct nfs_fh3 *fh, char *name, int mode, void *private_data); +/* + * Call NFS/MKNOD + * 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 nfs daemon. + * data is MKNOD3res * + * RPC_STATUS_ERROR : An error occured when trying to contact the nfs daemon. + * data is the error string. + * RPC_STATUS_CANCEL : The connection attempt was aborted before it could complete. + * data is NULL. + */ +int rpc_nfs_mknod_async(struct rpc_context *rpc, rpc_cb cb, struct nfs_fh3 *fh, char *file, int mode, int major, int minor, void *private_data); /*