1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License, Version 1.0 only 6 * (the "License"). You may not use this file except in compliance 7 * with the License. 8 * 9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 * or http://www.opensolaris.org/os/licensing. 11 * See the License for the specific language governing permissions 12 * and limitations under the License. 13 * 14 * When distributing Covered Code, include this CDDL HEADER in each 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 * If applicable, add the following below this CDDL HEADER, with the 17 * fields enclosed by brackets "[]" replaced with your own identifying 18 * information: Portions Copyright [yyyy] [name of copyright owner] 19 * 20 * CDDL HEADER END 21 */ 22/* 23 * Copyright (c) 2002-2003, Network Appliance, Inc. All rights reserved. 24 */ 25 26/* 27 * Copyright 2003 Sun Microsystems, Inc. All rights reserved. 28 * Use is subject to license terms. 29 */ 30 31/* 32 * 33 * HEADER: dat_sr.h 34 * 35 * PURPOSE: static registry (SR) inteface declarations 36 * 37 * $Id: dat_sr.h,v 1.7 2003/07/31 14:04:19 jlentini Exp $ 38 */ 39 40#ifndef _DAT_SR_H_ 41#define _DAT_SR_H_ 42 43#pragma ident "%Z%%M% %I% %E% SMI" 44 45#include <dat/udat.h> 46#include <dat/dat_registry.h> 47 48#include <dat_osd.h> 49 50#ifdef __cplusplus 51extern "C" { 52#endif 53 54/* 55 * 56 * Structures 57 * 58 */ 59 60typedef struct 61{ 62 DAT_PROVIDER_INFO info; 63 char *lib_path; 64 char *ia_params; 65 DAT_OS_LIBRARY_HANDLE lib_handle; 66 DAT_PROVIDER_INIT_FUNC init_func; 67 DAT_PROVIDER_FINI_FUNC fini_func; 68 DAT_COUNT ref_count; 69} DAT_SR_ENTRY; 70 71 72/* 73 * 74 * Function Declarations 75 * 76 */ 77 78extern DAT_RETURN 79dat_sr_init(void); 80 81extern DAT_RETURN 82dat_sr_fini(void); 83 84extern DAT_RETURN 85dat_sr_insert( 86 IN const DAT_PROVIDER_INFO *info, 87 IN DAT_SR_ENTRY *entry); 88 89extern DAT_RETURN 90dat_sr_size( 91 OUT DAT_COUNT *size); 92 93extern DAT_RETURN 94dat_sr_list( 95 IN DAT_COUNT max_to_return, 96 OUT DAT_COUNT *entries_returned, 97 OUT DAT_PROVIDER_INFO *(dat_provider_list[])); 98 99extern DAT_RETURN 100dat_sr_provider_open( 101 IN const DAT_PROVIDER_INFO *info); 102 103extern DAT_RETURN 104dat_sr_provider_close( 105 IN const DAT_PROVIDER_INFO *info); 106 107#ifdef __cplusplus 108} 109#endif 110 111#endif /* _DAT_SR_H_ */ 112