/* * wrapper function for treewalk on the local tree */ int csync_walk_local_tree(CSYNC *ctx, csync_treewalk_visit_func *visitor, int filter) { c_rbtree_t *tree = NULL; if (ctx != NULL) { ctx->status_code = CSYNC_STATUS_OK; tree = ctx->local.tree; } return _csync_walk_tree(ctx, tree, visitor, filter); }
/* * wrapper function for treewalk on the local tree */ int csync_walk_local_tree(CSYNC *ctx, csync_treewalk_visit_func *visitor, int filter) { c_rbtree_t *tree = NULL; int rc = -1; if(ctx) { tree = ctx->local.tree; } /* all error handling in the called function */ rc = _csync_walk_tree(ctx, tree, visitor, filter); return rc; }
/* * wrapper function for treewalk on the local tree */ int csync_walk_local_tree(CSYNC *ctx, csync_treewalk_visit_func *visitor, int filter) { c_rbtree_t *tree = NULL; int rc = -1; if (ctx != NULL) { ctx->status_code = CSYNC_STATUS_OK; ctx->current = LOCAL_REPLICA; tree = ctx->local.tree; } /* all error handling in the called function */ rc = _csync_walk_tree(ctx, tree, visitor, filter); return rc; }