/usr/include/afpfs-ng/midlevel.h is in libafpclient-dev 0.8.1-5ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | #ifndef __MIDLEVEL_H_
#define __MIDLEVEL_H_
#include <utime.h>
#include "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
|