/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
* Opaque context handle.
*/
}; \
#endif /* CONTEXT_HANDLE */
#else /* NDRGEN */
/*
* When not using ndrgen, get BYTE, WORD, DWORD definitions from wintypes.h.
*/
/*
***********************************************************************
* There is a bug in the way that midl and the marshalling code handles
* unions so we need to fix some of the data offsets at runtime. The
* following macros and the fixup function handle the correction.
***********************************************************************
*/
/*
* DECL_FIXUP_STRUCT allows us to declare external references to data
* structures generated by ndrgen in the _ndr.c file.
*/
/*
* CASE_INFO_ENT is intended to simplify the declaration of the case
* statement in the fixup function. Assuming you have followed the
* convention for naming the individual structures all you have to do
* is add a single line to the fixup function for each new case.
*/
break
/*
* FIXUP_PDU_SIZE is used to patch the appropriate structures (identified
* by DECL_FIXUP_STRUCT) at runtime. The values are based on the
* switch_index.
*/
}
#endif /* NDRGEN */
/*
* UNION_INFO_ENT is intended to simplify adding new entries to a union.
* If the entry structures are named using the form FunctionNameX,
* where X is the sitch_value, you can just add a single line. Note
* that you must also update the fixup function in mlsvc_xxx.c.
*/
#endif /* _NDR_TYPES_NDL_ */