Go to the source code of this file.
Defines | |
#define | SYNC_VERSION 20110614 |
#define | SLICE_VERSION 20110614 |
#define | DEFAULT_HASH_BYTES 32 |
#define | MAX_HASH_BYTES (DEFAULT_HASH_BYTES + sizeof(uintmax_t)) |
#define | MAX_NAME_BYTES (24*1024*1024 - 1) |
#define | MAX_NREFS 256 |
#define | NEW_ANY(N, T) ((T *) calloc(N, sizeof(T))) |
#define | NEW_STRUCT(N, S) ((struct S *) calloc(N, sizeof(struct S))) |
#define | SET_SYNC_ERR(base, code) SetSyncErrInner(base, code, __FILE__ , __LINE__) |
Copyright (C) 2011 Palo Alto Research Center, Inc.
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation. This library is distributed in the hope that it will be useful, 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. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Definition in file SyncMacros.h.
#define DEFAULT_HASH_BYTES 32 |
Definition at line 27 of file SyncMacros.h.
Referenced by extractNode(), and SyncAppendRandomName().
#define MAX_HASH_BYTES (DEFAULT_HASH_BYTES + sizeof(uintmax_t)) |
Definition at line 28 of file SyncMacros.h.
Referenced by MakeNodeFromNames(), SyncAccumHashRaw(), SyncHandleSlice(), SyncLongHashToBuf(), SyncNodeAppendLongHash(), SyncParseComposite(), SyncParseHash(), SyncResetComposite(), and testReadBuilder().
#define MAX_NAME_BYTES (24*1024*1024 - 1) |
Definition at line 29 of file SyncMacros.h.
#define MAX_NREFS 256 |
Definition at line 30 of file SyncMacros.h.
#define NEW_ANY | ( | N, | |||
T | ) | ((T *) calloc(N, sizeof(T))) |
Definition at line 32 of file SyncMacros.h.
Referenced by main(), putFile(), readAndAccumNames(), SyncAccumNode(), SyncAllocNodeAccum(), SyncHashCacheCreate(), and SyncHexStr().
#define NEW_STRUCT | ( | N, | |||
S | ) | ((struct S *) calloc(N, sizeof(struct S))) |
Definition at line 33 of file SyncMacros.h.
Referenced by canonFilter(), newActionData(), noteRemoteHash(), putFile(), SyncAddRoot(), SyncAllocComposite(), SyncAllocNameAccum(), SyncAllocNodeAccum(), SyncExtendComposite(), SyncHashCacheCreate(), SyncHashEnter(), SyncNameAccumAppend(), SyncNewBase(), SyncRegisterInterest(), SyncSendRootAdviseInterest(), SyncSetErrInner(), SyncStartCompareAction(), SyncStartContentFetch(), SyncStartNodeFetch(), SyncTreeWorkerCreate(), SyncTreeWorkerPush(), and SyncUpdateRoot().
#define SET_SYNC_ERR | ( | base, | |||
code | ) | SetSyncErrInner(base, code, __FILE__ , __LINE__) |
Definition at line 35 of file SyncMacros.h.
#define SLICE_VERSION 20110614 |
Definition at line 25 of file SyncMacros.h.
Referenced by sendSlice(), SyncRootAppendSlice(), and SyncRootDecodeAndAdd().
#define SYNC_VERSION 20110614 |
Definition at line 24 of file SyncMacros.h.
Referenced by SyncParseComposite(), and SyncResetComposite().