CCNx-Android-Services/jni/csrc/sync/SyncRoot.c File Reference

Copyright (C) 2011 Palo Alto Research Center, Inc. More...

#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <ccn/ccn.h>
#include <ccn/charbuf.h>
#include <ccn/coding.h>
#include <ccn/digest.h>
#include <ccn/indexbuf.h>
#include <ccn/schedule.h>
#include <ccnr/ccnr_msg.h>
#include "SyncPrivate.h"
#include "SyncActions.h"
#include "SyncHashCache.h"
#include "SyncUtil.h"
#include "SyncRoot.h"

Functions

static struct SyncNameAccum * copyFilter (struct SyncNameAccum *filter)
 copies the filter, including copies of the names
static struct SyncNameAccum * canonFilter (struct SyncBaseStruct *base, struct SyncNameAccum *filter)
 canonicalizes the filter returns an existing equivalent filter if one is found otherwise copies the input filter, links it in, and returns the copy
struct SyncRootStruct * SyncAddRoot (struct SyncBaseStruct *base, const struct ccn_charbuf *topoPrefix, const struct ccn_charbuf *namingPrefix, struct SyncNameAccum *filter)
struct SyncRootStruct * SyncRemRoot (struct SyncRootStruct *root)
struct SyncRootStruct * SyncRootDecodeAndAdd (struct SyncBaseStruct *base, struct ccn_buf_decoder *d)
static int appendName (struct ccn_charbuf *cb, struct ccn_charbuf *name)
int SyncRootAppendSlice (struct ccn_charbuf *cb, struct SyncRootStruct *root)
struct SyncHashCacheEntry * SyncRootTopEntry (struct SyncRootStruct *root)
enum SyncRootLookupCode SyncRootLookupName (struct SyncRootStruct *root, const struct ccn_charbuf *name)


Detailed Description

Copyright (C) 2011 Palo Alto Research Center, Inc.

Part of CCNx Sync.

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.


Generated on Thu Feb 16 00:45:13 2012 for CCNx for Android by  doxygen 1.5.6