| 1 |
/* |
| 2 |
* Copyright (c) 2002-2005, Network Appliance, Inc. All rights reserved. |
| 3 |
* |
| 4 |
* This Software is licensed under one of the following licenses: |
| 5 |
* |
| 6 |
* 1) under the terms of the "Common Public License 1.0" a copy of which is |
| 7 |
* in the file LICENSE.txt in the root directory. The license is also |
| 8 |
* available from the Open Source Initiative, see |
| 9 |
* http://www.opensource.org/licenses/cpl.php. |
| 10 |
* |
| 11 |
* 2) under the terms of the "The BSD License" a copy of which is in the file |
| 12 |
* LICENSE2.txt in the root directory. The license is also available from |
| 13 |
* the Open Source Initiative, see |
| 14 |
* http://www.opensource.org/licenses/bsd-license.php. |
| 15 |
* |
| 16 |
* 3) under the terms of the "GNU General Public License (GPL) Version 2" a |
| 17 |
* copy of which is in the file LICENSE3.txt in the root directory. The |
| 18 |
* license is also available from the Open Source Initiative, see |
| 19 |
* http://www.opensource.org/licenses/gpl-license.php. |
| 20 |
* |
| 21 |
* Licensee has the right to choose one of the above licenses. |
| 22 |
* |
| 23 |
* Redistributions of source code must retain the above copyright |
| 24 |
* notice and one of the license notices. |
| 25 |
* |
| 26 |
* Redistributions in binary form must reproduce both the above copyright |
| 27 |
* notice, one of the license notices in the documentation |
| 28 |
* and/or other materials provided with the distribution. |
| 29 |
*/ |
| 30 |
|
| 31 |
/********************************************************************** |
| 32 |
* |
| 33 |
* HEADER: dat_dr.h |
| 34 |
* |
| 35 |
* PURPOSE: dynamic registry interface declarations |
| 36 |
* |
| 37 |
* $Id: dat_dr.h,v 1.12 2005/03/24 05:58:27 jlentini Exp $ |
| 38 |
**********************************************************************/ |
| 39 |
|
| 40 |
#ifndef __DAT_DR_H__ |
| 41 |
#define __DAT_DR_H__ |
| 42 |
|
| 43 |
|
| 44 |
#include "dat_osd.h" |
| 45 |
#include <dat2/dat_registry.h> /* Provider API function prototypes */ |
| 46 |
|
| 47 |
|
| 48 |
/********************************************************************* |
| 49 |
* * |
| 50 |
* Strucutres * |
| 51 |
* * |
| 52 |
*********************************************************************/ |
| 53 |
|
| 54 |
typedef struct |
| 55 |
{ |
| 56 |
DAT_COUNT ref_count; |
| 57 |
DAT_IA_OPEN_FUNC ia_open_func; |
| 58 |
DAT_PROVIDER_INFO info; |
| 59 |
#ifdef DAT_EXTENSIONS |
| 60 |
DAT_HANDLE_EXTENDEDOP_FUNC ia_ext_func; |
| 61 |
#endif /* DAT_EXTENSIONS */ |
| 62 |
} DAT_DR_ENTRY; |
| 63 |
|
| 64 |
|
| 65 |
/********************************************************************* |
| 66 |
* * |
| 67 |
* Function Declarations * |
| 68 |
* * |
| 69 |
*********************************************************************/ |
| 70 |
|
| 71 |
extern DAT_RETURN |
| 72 |
dat_dr_init ( void ); |
| 73 |
|
| 74 |
extern DAT_RETURN |
| 75 |
dat_dr_fini ( void ); |
| 76 |
|
| 77 |
extern DAT_RETURN |
| 78 |
dat_dr_insert ( |
| 79 |
IN const DAT_PROVIDER_INFO *info, |
| 80 |
IN DAT_DR_ENTRY *entry ); |
| 81 |
|
| 82 |
extern DAT_RETURN |
| 83 |
dat_dr_remove ( |
| 84 |
IN const DAT_PROVIDER_INFO *info ); |
| 85 |
|
| 86 |
extern DAT_RETURN |
| 87 |
dat_dr_provider_open ( |
| 88 |
IN const DAT_PROVIDER_INFO *info, |
| 89 |
OUT DAT_IA_OPEN_FUNC *p_ia_open_func ); |
| 90 |
|
| 91 |
#ifdef DAT_EXTENSIONS |
| 92 |
extern DAT_RETURN |
| 93 |
dat_dr_provider_open_ext ( |
| 94 |
IN const DAT_PROVIDER_INFO *info, |
| 95 |
OUT DAT_HANDLE_EXTENDEDOP_FUNC *p_ext_func ); |
| 96 |
#endif |
| 97 |
|
| 98 |
extern DAT_RETURN |
| 99 |
dat_dr_provider_close ( |
| 100 |
IN const DAT_PROVIDER_INFO *info); |
| 101 |
|
| 102 |
extern DAT_RETURN |
| 103 |
dat_dr_size ( |
| 104 |
OUT DAT_COUNT *size); |
| 105 |
|
| 106 |
extern DAT_RETURN |
| 107 |
dat_dr_list ( |
| 108 |
IN DAT_COUNT max_to_return, |
| 109 |
OUT DAT_COUNT *entries_returned, |
| 110 |
OUT DAT_PROVIDER_INFO * (dat_provider_list[]) ); |
| 111 |
|
| 112 |
#endif |