/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <assert.h>
#include <pthread.h>
#include <stdlib.h>
#include <strings.h>
#include "configd.h"
#include "repcache_protocol.h"
typedef struct snapshot_bucket {
sizeof (rc_snapshot_t *)];
static rc_snapshot_t *
snapshot_alloc(void)
{
return (sp);
}
static void
{
if (lvl->rsl_service)
if (lvl->rsl_instance)
}
}
static void
{
}
void
{
int done;
if (done)
}
void
{
sp->rs_childref++;
}
void
{
int done;
sp->rs_childref--;
if (done)
}
static snapshot_bucket_t *
{
return (bp);
}
static void
{
}
static rc_snapshot_t *
{
return (sp);
}
}
return (NULL);
}
static void
{
}
static void
{
break;
}
/*
* Look up the snapshot with id snap_id in the hash table, or create it
* & populate it with its snaplevels if it's not in the hash table yet.
*
* Fails with
* _NO_RESOURCES
*/
int
{
int r;
return (REP_PROTOCOL_FAIL_NO_RESOURCES);
}
return (REP_PROTOCOL_SUCCESS);
}
sp = snapshot_alloc();
/*
* Now fill in the snapshot tree
*/
r = object_fill_snapshot(sp);
if (r != REP_PROTOCOL_SUCCESS) {
/*
* failed -- first remove it from the hash table, then kill it
*/
return (r);
}
return (REP_PROTOCOL_SUCCESS); /* pass on creation reference */
}