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