/*
* 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 (c) 2002-2003, Network Appliance, Inc. All rights reserved.
*/
/*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
*
* MODULE: dat_dictionary.c
*
* PURPOSE: dictionary data structure
*
* $Id: dat_dictionary.c,v 1.11 2003/08/05 19:01:48 jlentini Exp $
*/
#include "dat_dictionary.h"
/*
*
* Structures
*
*/
typedef struct DAT_DICTIONARY_NODE
{
struct DAT_DICTIONARY
{
};
/*
*
* Function Declarations
*
*/
static DAT_RETURN
const DAT_PROVIDER_INFO *old_key,
static DAT_BOOLEAN
const DAT_PROVIDER_INFO *key_a,
const DAT_PROVIDER_INFO *key_b);
/*
*
* External Functions
*
*/
/*
* Function: dat_dictionary_create
*/
{
/* create the dictionary */
if (NULL == p_dictionary) {
goto bail;
}
/* create the head node */
goto bail;
}
sizeof (DAT_DICTIONARY_NODE));
/* create the tail node */
goto bail;
}
sizeof (DAT_DICTIONARY_NODE));
bail:
if (DAT_SUCCESS != status) {
if (NULL != p_dictionary) {
sizeof (DAT_DICTIONARY_NODE));
}
sizeof (DAT_DICTIONARY_NODE));
}
}
}
return (status);
}
/*
* Function: dat_dictionary_destroy
*/
{
}
return (DAT_SUCCESS);
}
/*
* Function: dat_dictionary_size
*/
{
return (DAT_SUCCESS);
}
/*
* Function: dat_dictionary_entry_create
*/
{
goto bail;
}
bail:
return (dat_status);
}
/*
* Function: dat_dictionary_entry_destroy
*/
{
return (DAT_SUCCESS);
}
/*
* Function: dat_dictionary_insert
*/
{
goto bail;
}
if (DAT_SUCCESS != dat_status) {
goto bail;
}
/* insert node at end of list to preserve registration order */
p_dictionary->size++;
bail:
return (dat_status);
}
/*
* Function: dat_dictionary_search
*/
{
key)) {
}
goto bail;
}
}
bail:
return (status);
}
/*
* Function: dat_dictionary_enumerate
*/
{
DAT_COUNT i;
goto bail;
}
}
bail:
return (status);
}
/*
* Function: dat_dictionary_remove
*/
{
key)) {
}
p_dictionary->size--;
goto bail;
}
}
bail:
return (status);
}
/*
*
* Internal Function Definitions
*
*/
/*
* Function: dat_dictionary_key_create
*/
const DAT_PROVIDER_INFO *old_key,
{
return (DAT_SUCCESS);
}
/*
* Function: dat_dictionary_key_is_equal
*/
const DAT_PROVIDER_INFO *key_a,
const DAT_PROVIDER_INFO *key_b)
{
return (DAT_TRUE);
} else {
return (DAT_FALSE);
}
}