* Copyright 2012 Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* Paweł Dziepak, pdziepak@quarnos.org
*/
#ifndef RPCDEFS_H
#define RPCDEFS_H
namespace RPC {
enum {
VERSION = 2
};
enum {
PROGRAM_NFS = 100003,
PROGRAM_NFS_CB = 0x40000000
};
enum {
NFS_VERSION = 4,
NFS_CB_VERSION = 1
};
enum {
CALL = 0,
REPLY = 1
};
enum {
MSG_ACCEPTED = 0,
MSG_DENIED = 1
};
enum AcceptStat {
SUCCESS = 0,
PROG_UNAVAIL = 1,
PROG_MISMATCH = 2,
PROC_UNAVAIL = 3,
GARBAGE_ARGS = 4,
SYSTEM_ERR = 5
};
enum RejectStat {
RPC_MISMATCH = 0,
AUTH_ERROR = 1
};
enum AuthFlavour {
AUTH_NONE = 0,
AUTH_SYS = 1
};
}
#endif