4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
23 * Copyright (c) 2002-2003, Network Appliance, Inc. All rights reserved.
27 * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
28 * Use is subject to license terms.
33 * HEADER: dapl_provider.h
35 * PURPOSE: Provider function table
36 * Description: DAT Interfaces to this provider
38 * $Id: dapl_provider.h,v 1.4 2003/07/31 14:04:17 jlentini Exp $
41 #ifndef _DAPL_PROVIDER_H_
42 #define _DAPL_PROVIDER_H_
57 typedef struct DAPL_PROVIDER_LIST_NODE
59 char name
[DAT_NAME_MAX_LENGTH
];
61 struct DAPL_PROVIDER_LIST_NODE
*next
;
62 struct DAPL_PROVIDER_LIST_NODE
*prev
;
63 } DAPL_PROVIDER_LIST_NODE
;
66 typedef struct DAPL_PROVIDER_LIST
68 DAPL_PROVIDER_LIST_NODE
*head
;
69 DAPL_PROVIDER_LIST_NODE
*tail
;
80 extern DAPL_PROVIDER_LIST g_dapl_provider_list
;
81 extern DAT_PROVIDER g_dapl_provider_template
;
82 extern int g_dapl_loopback_connection
;
92 dapl_provider_list_create(void);
95 dapl_provider_list_destroy(void);
98 dapl_provider_list_size(void);
101 dapl_provider_list_insert(
103 OUT DAT_PROVIDER
**p_data
);
106 dapl_provider_list_search(
108 OUT DAT_PROVIDER
**p_data
);
111 dapl_provider_list_remove(
112 IN
const char *name
);
118 #endif /* _DAPL_PROVIDER_H_ */