X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=include%2Flibnfs.h;h=e77e1d6974acbf4c55f10c183c591a3e68fcfea3;hb=fc01d2a96189edc0c08fb1d757f83c63077b0516;hp=bbca07e1f809192a34138929640689ef361bbdc1;hpb=7f0242ca9a109c6825646609b8eda0ce0b866b67;p=deb_libnfs.git diff --git a/include/libnfs.h b/include/libnfs.h index bbca07e..e77e1d6 100644 --- a/include/libnfs.h +++ b/include/libnfs.h @@ -937,7 +937,17 @@ int nfs_link(struct nfs_context *nfs, const char *oldpath, const char *newpath); * data is the error string. */ int mount_getexports_async(struct rpc_context *rpc, const char *server, rpc_cb cb, void *private_data); +/* + * Sync getexports() + * Function returns + * NULL : something failed + * exports export : a linked list of exported directories + * + * returned data must be freed by calling mount_free_export_list(exportnode); + */ +struct exportnode *mount_getexports(const char *server); +void mount_free_export_list(struct exportnode *exports); //qqq replace later with lseek(cur, 0)