X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=include%2Flibnfs.h;h=4f56c876f326d1c2b67e3ebb1e222dd29cdc3c39;hb=1ec6b50aef06d7b3e27db1b406e080f7785677e9;hp=9758a7814619c35ab44612871c1f249e493aa628;hpb=86ef4910045771a1da4023a1880ba1c9e265eb6d;p=deb_libnfs.git diff --git a/include/libnfs.h b/include/libnfs.h index 9758a78..4f56c87 100644 --- a/include/libnfs.h +++ b/include/libnfs.h @@ -545,6 +545,29 @@ EXTERN int nfs_creat_async(struct nfs_context *nfs, const char *path, int mode, EXTERN int nfs_creat(struct nfs_context *nfs, const char *path, int mode, struct nfsfh **nfsfh); +/* + * MKNOD() + */ +/* + * Async mknod() + * + * Function returns + * 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. + * + * When the callback is invoked, status indicates the result: + * 0 : Success. + * -errno : An error occured. + * data is the error string. + */ +EXTERN int nfs_mknod_async(struct nfs_context *nfs, const char *path, int mode, int dev, nfs_cb cb, void *private_data); +/* + * Sync mknod() + * Function returns + * 0 : Success + * -errno : An error occured. + */ +EXTERN int nfs_mknod(struct nfs_context *nfs, const char *path, int mode, int dev);