/*
* This is the highlevel interface to access NFS resources using a posix-like interface
*/
+
+#ifndef _LIBNFS_H_
+#define _LIBNFS_H_
+
#include <stdint.h>
#if defined(ANDROID)
#include <sys/time.h>
#if defined(WIN32)
#define EXTERN __declspec( dllexport )
#else
-#define EXTERN
+#define EXTERN
#endif
#if defined(WIN32)
uint32_t f_files;
uint32_t f_ffree;
uint32_t f_favail;
- uint32_t f_fsid;
+ uint32_t f_fsid;
uint32_t f_flag;
uint32_t f_namemax;
};
/*
* URL parsing functions.
- * These functions all parse a URL of the form
+ * These functions all parse a URL of the form
* nfs://server/path/file?argv=val[&arg=val]*
* and returns a nfs_url.
*
EXTERN uint64_t nfs_get_writemax(struct nfs_context *nfs);
/*
- * MODIFY CONNECT PARAMTERS
+ * MODIFY CONNECT PARAMTERS
*/
EXTERN void nfs_set_tcp_syncnt(struct nfs_context *nfs, int v);
* 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);
*/
EXTERN struct exportnode *mount_getexports(const char *server);
* 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);
+
+#endif /* !_LIBNFS_H_ */