1 #ifndef __MIDLEVEL_H_
2 #define __MIDLEVEL_H_
3 
4 #include <utime.h>
5 #include "afpfs-ng/afp.h"
6 
7 int ml_open(struct afp_volume * volume, const char *path, int flags,
8         struct afp_file_info **newfp);
9 
10 int ml_creat(struct afp_volume * volume, const char *path,mode_t mode);
11 
12 int ml_readdir(struct afp_volume * volume,
13 	const char *path,
14 	struct afp_file_info **base);
15 
16 int ml_read(struct afp_volume * volume, const char *path,
17 	char *buf, size_t size, off_t offset,
18 	struct afp_file_info *fp, int * eof);
19 
20 int ml_chmod(struct afp_volume * vol, const char * path, mode_t mode);
21 
22 int ml_unlink(struct afp_volume * vol, const char *path);
23 
24 int ml_mkdir(struct afp_volume * vol, const char * path, mode_t mode);
25 
26 int ml_close(struct afp_volume * volume, const char * path,
27         struct afp_file_info * fp);
28 
29 int ml_getattr(struct afp_volume * volume, const char *path,
30 	struct stat *stbuf);
31 
32 int ml_write(struct afp_volume * volume, const char * path,
33 	const char *data, size_t size, off_t offset,
34 	struct afp_file_info * fp, uid_t uid,
35 	gid_t gid);
36 
37 int ml_readlink(struct afp_volume * vol, const char * path,
38         char *buf, size_t size);
39 
40 int ml_rmdir(struct afp_volume * vol, const char *path);
41 
42 int ml_chown(struct afp_volume * vol, const char * path,
43         uid_t uid, gid_t gid);
44 
45 int ml_truncate(struct afp_volume * vol, const char * path, off_t offset);
46 
47 int ml_utime(struct afp_volume * vol, const char * path,
48 	struct utimbuf * timebuf);
49 
50 int ml_symlink(struct afp_volume *vol, const char * path1, const char * path2);
51 
52 int ml_rename(struct afp_volume * vol,
53 	const char * path_from, const char * path_to);
54 
55 int ml_statfs(struct afp_volume * vol, const char *path, struct statvfs *stat);
56 
57 void afp_ml_filebase_free(struct afp_file_info **filebase);
58 
59 int ml_passwd(struct afp_server *server,
60                 char * username, char * oldpasswd, char * newpasswd);
61 
62 
63 
64 #endif
65