Win32 changes, include files we need when compiling under win32
[deb_libnfs.git] / include / libnfs.h
index 81febb23ec34cb4b7182dc8f98a3e18594842002..2038d8a0a335800217dba3b080f594e94c12464e 100644 (file)
 struct nfs_context;
 struct rpc_context;
 
+#if defined(WIN32)
+struct statvfs {
+       uint32_t        f_bsize;
+       uint32_t        f_frsize;
+       uint64_t        f_blocks;
+       uint64_t        f_bfree;
+       uint64_t        f_bavail;
+       uint32_t        f_files;
+       uint32_t        f_ffree;
+       uint32_t        f_favail;
+       uint32_t        f_fsid; 
+       uint32_t        f_flag;
+       uint32_t        f_namemax;
+};
+struct utimbuf {
+       time_t actime;
+       time_t modtime;
+};
+#define R_OK   4
+#define W_OK   2
+#define X_OK   1
+#endif
+
 /*
  * Used for interfacing the async version of the api into an external eventsystem
  */
@@ -955,10 +978,24 @@ off_t nfs_get_current_offset(struct nfsfh *nfsfh);
 
 
 
+
+
 struct nfs_server_list {
        struct nfs_server_list *next;
        char *addr;
 };
 
+/*
+ * Sync find_local_servers(<server>)
+ * This function will probe all local networks for NFS server. This function will
+ * block for one second while awaiting for all nfs servers to respond.
+ *
+ * Function returns
+ * NULL : something failed
+ *
+ * struct nfs_server_list : a linked list of all discovered servers
+ * 
+ * returned data must be freed by nfs_free_srvr_list(srv);
+ */
 struct nfs_server_list *nfs_find_local_servers(void);
 void free_nfs_srvr_list(struct nfs_server_list *srv);