1 #ifndef __RESOURCE_H_
2 #define __RESOURCE_H_
3 
4 #define AFP_META_NONE 0
5 #define AFP_META_RESOURCE 1
6 #define AFP_META_APPLEDOUBLE 2
7 #define AFP_META_FINDERINFO 3
8 #define AFP_META_COMMENT 4
9 #define AFP_META_SERVER_ICON 5
10 
11 #include <utime.h>
12 
13 int appledouble_creat(struct afp_volume * volume, const char * path, mode_t mode);
14 
15 
16 int appledouble_truncate(struct afp_volume * volume, const char * path, int size) ;
17 
18 int appledouble_getattr(struct afp_volume * volume,
19         const char * path, struct stat *stbuf);
20 
21 
22 int appledouble_readdir(struct afp_volume * volume,
23 	const char *path, struct afp_file_info **base);
24 
25 int appledouble_open(struct afp_volume * volume, const char * path, int flags,
26         struct afp_file_info *newfp);
27 
28 int appledouble_read(struct afp_volume * volume, struct afp_file_info *fp,
29 	char * buf, size_t size, off_t offset, size_t * amount_read,
30 	int * eof);
31 
32 int appledouble_close(struct afp_volume * volume, struct afp_file_info * fp);
33 
34 int appledouble_chmod(struct afp_volume * volume, const char * path, mode_t mode);
35 
36 int appledouble_unlink(struct afp_volume * volume, const char *path);
37 
38 int appledouble_mkdir(struct afp_volume * volume, const char * path, mode_t mode);
39 
40 int appledouble_readlink(struct afp_volume * volume, const char * path,
41         char * buf, size_t size);
42 
43 int appledouble_rmdir(struct afp_volume * volume, const char * path);
44 
45 int appledouble_chown(struct afp_volume * volume, const char * path,
46                 uid_t uid, gid_t gid);
47 
48 int appledouble_utime(struct afp_volume * volume, const char * path,
49         struct utimbuf * timebuf);
50 
51 int appledouble_symlink(struct afp_volume *vol, const char *path1,
52 	const char *path2);
53 
54 int appledouble_rename(struct afp_volume * volume, const char * path_from,
55         const char * path_to);
56 
57 
58 
59 
60 #endif
61 
62