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 2004 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_dr.h
2N/A *
2N/A * PURPOSE: dynamic registry interface declarations
2N/A *
2N/A * $Id: dat_dr.h,v 1.7 2003/07/31 14:04:19 jlentini Exp $
2N/A */
2N/A
2N/A#ifndef __DAT_DR_H__
2N/A#define __DAT_DR_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 * Strucutres
2N/A *
2N/A */
2N/A
2N/Atypedef struct
2N/A{
2N/A DAT_COUNT ref_count;
2N/A DAT_IA_OPEN_FUNC ia_open_func;
2N/A DAT_PROVIDER_INFO info;
2N/A} DAT_DR_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_dr_init(void);
2N/A
2N/Aextern DAT_RETURN
2N/Adat_dr_fini(void);
2N/A
2N/Aextern DAT_RETURN
2N/Adat_dr_insert(
2N/A IN const DAT_PROVIDER_INFO *info,
2N/A IN DAT_DR_ENTRY *entry);
2N/A
2N/Aextern DAT_RETURN
2N/Adat_dr_remove(
2N/A IN const DAT_PROVIDER_INFO *info);
2N/A
2N/A
2N/Aextern DAT_RETURN
2N/Adat_dr_provider_open(
2N/A IN const DAT_PROVIDER_INFO *info,
2N/A OUT DAT_IA_OPEN_FUNC *p_ia_open_func);
2N/A
2N/Aextern DAT_RETURN
2N/Adat_dr_provider_close(
2N/A IN const DAT_PROVIDER_INFO *info);
2N/A
2N/Aextern DAT_RETURN
2N/Adat_dr_size(
2N/A OUT DAT_COUNT *size);
2N/A
2N/Aextern DAT_RETURN
2N/Adat_dr_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/A#ifdef __cplusplus
2N/A}
2N/A#endif
2N/A
2N/A#endif /* __DAT_DR_H__ */