/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (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.
*/
/*
*
* MODULE: dapl_provider.c
*
* PURPOSE: Provider function table
* Description: DAT Interfaces to this provider
*
* $Id: dapl_provider.c,v 1.7 2003/08/08 19:42:54 sjs2 Exp $
*/
#include "dapl_provider.h"
/*
*
* Global Data
*
*/
/*
* the function table for this provider
*/
{
NULL,
0,
};
/*
*
* Function Prototypes
*
*/
static DAT_BOOLEAN
const char *name_a,
const char *name_b);
/*
*
* Function Definitions
*
*/
{
/* create the head node */
sizeof (DAPL_PROVIDER_LIST_NODE));
goto bail;
}
sizeof (DAPL_PROVIDER_LIST_NODE));
/* create the tail node */
sizeof (DAPL_PROVIDER_LIST_NODE));
goto bail;
}
sizeof (DAPL_PROVIDER_LIST_NODE));
g_dapl_provider_list.size = 0;
bail:
if (DAT_SUCCESS != status) {
sizeof (DAPL_PROVIDER_LIST_NODE));
}
sizeof (DAPL_PROVIDER_LIST_NODE));
}
}
return (status);
}
{
}
return (DAT_SUCCESS);
}
dapl_provider_list_size(void)
{
return (g_dapl_provider_list.size);
}
{
unsigned int len;
goto bail;
}
if (DAT_NAME_MAX_LENGTH <= len) {
goto bail;
}
/* insert node at end of list to preserve registration order */
}
bail:
if (DAT_SUCCESS != status) {
sizeof (DAPL_PROVIDER_LIST_NODE));
}
}
return (status);
}
{
}
goto bail;
}
}
bail:
return (status);
}
{
sizeof (DAPL_PROVIDER_LIST_NODE));
goto bail;
}
}
bail:
return (status);
}
const char *name_a,
const char *name_b)
{
unsigned int len;
return (DAT_FALSE);
return (DAT_FALSE);
} else {
return (DAT_TRUE);
}
}