mc/vfs/mcfs.h
Mikhail S. Pobolovets 0a7899709b Simple doxygen description for files in vfs (not subdirs) directory.
Mostly \file and \brief tag added.

Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2009-02-10 16:18:55 +02:00

63 lines
1.1 KiB
C

/**
* \file
* \brief Header: Midnight Commander file system
*/
#ifndef MC_VFS_MCFS_H
#define MC_VFS_MCFS_H
#define mcserver_port 9876
/* This number was registered for program "mcfs" with rpc@Sun.COM */
#define RPC_PROGNUM 300516
#define RPC_PROGVER 2
/* this constants must be kept in sync with mcserv.c commands */
/* They are the messages sent on the link connection */
enum {
MC_OPEN,
MC_CLOSE,
MC_READ,
MC_WRITE,
MC_OPENDIR,
MC_READDIR,
MC_CLOSEDIR,
MC_STAT,
MC_LSTAT,
MC_FSTAT,
MC_CHMOD,
MC_CHOWN,
MC_READLINK,
MC_UNLINK,
MC_RENAME,
MC_CHDIR,
MC_LSEEK,
MC_RMDIR,
MC_SYMLINK,
MC_MKNOD,
MC_MKDIR,
MC_LINK,
MC_GETHOME,
MC_GETUPDIR,
/* Control commands */
MC_LOGIN,
MC_QUIT,
MC_UTIME, /* it has to go here for compatibility with old
servers/clients. sigh ... */
MC_INVALID_PASS = 0x1000,
MC_NEED_PASSWORD,
MC_LOGINOK,
MC_VERSION_OK,
MC_VERSION_MISMATCH,
MC_PASS
};
extern void init_mcfs (void);
extern void tcp_invalidate_socket (int);
#endif