Room Manager 0.1
room reservation management system
roommanprotocol.h File Reference
#include <stdint.h>
#include "roomman.h"

Go to the source code of this file.

Macros

#define ROOMMAN_RPC_PROT_VERSION   (0xC8)
 Current Version of the roomman RPC protocol.
 
#define ROOMMAN_RPC_PROT_HEADER_SIZE   (8)
 Size in byte of the RPC protocol header.
 
#define ROOMMAN_RPC_MASK_FLAG_ERROR   (0x02)
 Bit mask for the error flag (set if the message is an error)
 
#define ROOMMAN_RPC_MASK_FLAG_RESPONSE   (0x01)
 Bit mask for the response flag (set if the message is a response)
 
#define ROOMMAN_RPC_MASK_FLAG_REQUEST   (0x00)
 Bit mask if message is an normal request message.
 
#define ROOMMAN_RPC_FUNCID_SET_USERNAME   (0x0001)
 id for the roomman_set_username() RPC call
 
#define ROOMMAN_RPC_FUNCID_CREATE   (0x0002)
 id for the roomman_create_room() RPC call
 
#define ROOMMAN_RPC_FUNCID_DELETE   (0x0003)
 id for the roomman_delete_room() RPC call
 
#define ROOMMAN_RPC_FUNCID_UPDATE_CAPACITY   (0x0004)
 id for the roomman_update_capacity() RPC call
 
#define ROOMMAN_RPC_FUNCID_RESERVE   (0x0005)
 id for the roomman_reserve_room() RPC call
 
#define ROOMMAN_RPC_FUNCID_CLEAR   (0x0006)
 id for the roomman_clear_reservation() RPC call
 
#define ROOMMAN_RPC_FUNCID_ADD_PERSONS   (0x0007)
 id for the roomman_add_persons() RPC call
 
#define ROOMMAN_RPC_FUNCID_REMOVE_PERSONS   (0x0008)
 id for the roomman_remove_persons() RPC call
 
#define ROOMMAN_RPC_FUNCID_LOOKUP   (0x0009)
 id for the roomman_lookup() RPC call
 
#define ROOMMAN_RPC_FUNCID_READENTRY   (0x000a)
 id for the roomman_readentry() RPC call
 
#define ROOMMAN_RPC_FUNCID_DIRECTORY   (0x000b)
 id for the roomman_directory() RPC call
 

Detailed Description

Copyright (C) 2017 by Arno Nuehm

This software is distributed in the hope that it will be useful, or at least interesting, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

Definition in file roommanprotocol.h.