add a sync function to get the export list from a server and add an example of how...
[deb_libnfs.git] / include / libnfs.h
index bbca07e1f809192a34138929640689ef361bbdc1..de46b5ec3fd088cedaa5223b326c212a4da27073 100644 (file)
@@ -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(<server>)
+ * 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(struct rpc_context *rpc, const char *server);
 
+void mount_free_export_list(struct exportnode *exports);
 
 
 //qqq replace later with lseek(cur, 0)