2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License (the "License"). 2N/A * You may not use this file except in compliance with the License. 2N/A * See the License for the specific language governing permissions 2N/A * and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL HEADER in each 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 * Copyright (c) 2002-2004, Network Appliance, Inc. All rights reserved. 2N/A * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 2N/A * Use is subject to license terms. 2N/A * PURPOSE: Defines the common redirection macros 2N/A * Description: Macros to invoke DAPL functions from the dat_registry 2N/A * All global symbols are prepended with "DAT_" or "dat_" 2N/A * All DAT objects have an 'api' tag which, such as 'ep' or 'lmr' 2N/A * The method table is in the provider definition structure. 2N/A * A utility macro to fetch the Provider Library for any object 2N/A * An alternate version could be defined for single library systems. 2N/A * it would look something like: 2N/A * extern const struct dat_ia my_single_ia_provider; 2N/A * #define DAT_HANDLE_TO_PROVIDER(ignore) &my_single_ia_provider 2N/A * This would allow a good compiler to avoid indirection overhead when 2N/A * making function calls. 2N/A * FUNCTION PROTOTYPES 2N/A/* helper functions */ 2N/A * For DAT-1.1 this function is defined for both uDAPL and kDAPL. 2N/A * For DAT-1.0 it was only defined for uDAPL. 2N/A#
endif /* _DAT_REDIRECTION_H_ */