2N/A/*
2N/A * CDDL HEADER START
2N/A *
2N/A * The contents of this file are subject to the terms of the
2N/A * Common Development and Distribution License, Version 1.0 only
2N/A * (the "License"). You may not use this file except in compliance
2N/A * with the License.
2N/A *
2N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A * or http://www.opensolaris.org/os/licensing.
2N/A * See the License for the specific language governing permissions
2N/A * and limitations under the License.
2N/A *
2N/A * When distributing Covered Code, include this CDDL HEADER in each
2N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/A * If applicable, add the following below this CDDL HEADER, with the
2N/A * fields enclosed by brackets "[]" replaced with your own identifying
2N/A * information: Portions Copyright [yyyy] [name of copyright owner]
2N/A *
2N/A * CDDL HEADER END
2N/A */
2N/A/*
2N/A * Copyright (c) 2002-2003, Network Appliance, Inc. All rights reserved.
2N/A */
2N/A
2N/A/*
2N/A * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
2N/A * Use is subject to license terms.
2N/A */
2N/A
2N/A/*
2N/A *
2N/A * HEADER: dat_sr.h
2N/A *
2N/A * PURPOSE: static registry (SR) inteface declarations
2N/A *
2N/A * $Id: dat_sr.h,v 1.7 2003/07/31 14:04:19 jlentini Exp $
2N/A */
2N/A
2N/A#ifndef _DAT_SR_H_
2N/A#define _DAT_SR_H_
2N/A
2N/A#pragma ident "%Z%%M% %I% %E% SMI"
2N/A
2N/A#include <dat/udat.h>
2N/A#include <dat/dat_registry.h>
2N/A
2N/A#include <dat_osd.h>
2N/A
2N/A#ifdef __cplusplus
2N/Aextern "C" {
2N/A#endif
2N/A
2N/A/*
2N/A *
2N/A * Structures
2N/A *
2N/A */
2N/A
2N/Atypedef struct
2N/A{
2N/A DAT_PROVIDER_INFO info;
2N/A char *lib_path;
2N/A char *ia_params;
2N/A DAT_OS_LIBRARY_HANDLE lib_handle;
2N/A DAT_PROVIDER_INIT_FUNC init_func;
2N/A DAT_PROVIDER_FINI_FUNC fini_func;
2N/A DAT_COUNT ref_count;
2N/A} DAT_SR_ENTRY;
2N/A
2N/A
2N/A/*
2N/A *
2N/A * Function Declarations
2N/A *
2N/A */
2N/A
2N/Aextern DAT_RETURN
2N/Adat_sr_init(void);
2N/A
2N/Aextern DAT_RETURN
2N/Adat_sr_fini(void);
2N/A
2N/Aextern DAT_RETURN
2N/Adat_sr_insert(
2N/A IN const DAT_PROVIDER_INFO *info,
2N/A IN DAT_SR_ENTRY *entry);
2N/A
2N/Aextern DAT_RETURN
2N/Adat_sr_size(
2N/A OUT DAT_COUNT *size);
2N/A
2N/Aextern DAT_RETURN
2N/Adat_sr_list(
2N/A IN DAT_COUNT max_to_return,
2N/A OUT DAT_COUNT *entries_returned,
2N/A OUT DAT_PROVIDER_INFO *(dat_provider_list[]));
2N/A
2N/Aextern DAT_RETURN
2N/Adat_sr_provider_open(
2N/A IN const DAT_PROVIDER_INFO *info);
2N/A
2N/Aextern DAT_RETURN
2N/Adat_sr_provider_close(
2N/A IN const DAT_PROVIDER_INFO *info);
2N/A
2N/A#ifdef __cplusplus
2N/A}
2N/A#endif
2N/A
2N/A#endif /* _DAT_SR_H_ */