Room Manager 0.1
room reservation management system
roommanprotocol.h
Go to the documentation of this file.
1
10#ifndef __ROOMMANPROTOCOL_H__
11#define __ROOMMANPROTOCOL_H__
12
13#include <stdint.h>
14
15#include "roomman.h"
16
35#define ROOMMAN_RPC_PROT_VERSION (0xC8)
37#define ROOMMAN_RPC_PROT_HEADER_SIZE (8)
45#define ROOMMAN_RPC_MASK_FLAG_ERROR (0x02)
46#define ROOMMAN_RPC_MASK_FLAG_RESPONSE (0x01)
47#define ROOMMAN_RPC_MASK_FLAG_REQUEST (0x00)
58#define ROOMMAN_RPC_FUNCID_SET_USERNAME (0x0001)
59#define ROOMMAN_RPC_FUNCID_CREATE (0x0002)
60#define ROOMMAN_RPC_FUNCID_DELETE (0x0003)
61#define ROOMMAN_RPC_FUNCID_UPDATE_CAPACITY (0x0004)
62#define ROOMMAN_RPC_FUNCID_RESERVE (0x0005)
63#define ROOMMAN_RPC_FUNCID_CLEAR (0x0006)
64#define ROOMMAN_RPC_FUNCID_ADD_PERSONS (0x0007)
65#define ROOMMAN_RPC_FUNCID_REMOVE_PERSONS (0x0008)
66#define ROOMMAN_RPC_FUNCID_LOOKUP (0x0009)
67#define ROOMMAN_RPC_FUNCID_READENTRY (0x000a)
68#define ROOMMAN_RPC_FUNCID_DIRECTORY (0x000b)
580#endif /* __ROOMMANPROTOCOL_H__ */