df2e80c8b4
Linux and Mac OS X systems to access files exported from a Mac OS system with AFP over TCP. WWW: http://sourceforge.net/projects/afpfs-ng/ PR: ports/172780 Submitted by: Manuel Creach <manuel.creach@icloud.com>
68 lines
2.2 KiB
C
68 lines
2.2 KiB
C
--- 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
|