2 * Copyright (C) 2017 Cisco Inc.
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License, version 2,
6 * as published by the Free Software Foundation.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 // @author Changxue Deng <chadeng@cisco.com>
19 #include "mabain_consts.h"
23 const int CONSTS::ACCESS_MODE_READER = 0x0;
24 const int CONSTS::ACCESS_MODE_WRITER = 0x1;
25 const int CONSTS::ASYNC_WRITER_MODE = 0x2;
26 const int CONSTS::SYNC_ON_WRITE = 0x4;
27 const int CONSTS::USE_SLIDING_WINDOW = 0x8;
28 const int CONSTS::MEMORY_ONLY_MODE = 0x10;
30 const int CONSTS::OPTION_ALL_PREFIX = 0x1;
31 const int CONSTS::OPTION_FIND_AND_STORE_PARENT = 0x2;
32 const int CONSTS::OPTION_RC_MODE = 0x4;
33 const int CONSTS::OPTION_READ_SAVED_EDGE = 0x8;
35 const int CONSTS::MAX_KEY_LENGHTH = 256;
36 const int CONSTS::MAX_DATA_SIZE = 0x7FFF;
38 int CONSTS::WriterOptions()
40 int options = ACCESS_MODE_WRITER;
44 int CONSTS::ReaderOptions()
46 int options = ACCESS_MODE_READER;