ndrgen.h revision a0b6e447978c306e15941d158bf6939a42ed2726
d0e518695adc90b82233b99af7dffbb3d3f92c00amw * CDDL HEADER START
d0e518695adc90b82233b99af7dffbb3d3f92c00amw * The contents of this file are subject to the terms of the
d0e518695adc90b82233b99af7dffbb3d3f92c00amw * Common Development and Distribution License (the "License").
d0e518695adc90b82233b99af7dffbb3d3f92c00amw * You may not use this file except in compliance with the License.
d0e518695adc90b82233b99af7dffbb3d3f92c00amw * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d0e518695adc90b82233b99af7dffbb3d3f92c00amw * See the License for the specific language governing permissions
d0e518695adc90b82233b99af7dffbb3d3f92c00amw * and limitations under the License.
d0e518695adc90b82233b99af7dffbb3d3f92c00amw * When distributing Covered Code, include this CDDL HEADER in each
d0e518695adc90b82233b99af7dffbb3d3f92c00amw * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
d0e518695adc90b82233b99af7dffbb3d3f92c00amw * If applicable, add the following below this CDDL HEADER, with the
d0e518695adc90b82233b99af7dffbb3d3f92c00amw * fields enclosed by brackets "[]" replaced with your own identifying
d0e518695adc90b82233b99af7dffbb3d3f92c00amw * information: Portions Copyright [yyyy] [name of copyright owner]
d0e518695adc90b82233b99af7dffbb3d3f92c00amw * CDDL HEADER END
a0b6e447978c306e15941d158bf6939a42ed2726Alan Wright * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
d0e518695adc90b82233b99af7dffbb3d3f92c00amw * Use is subject to license terms.
d0e518695adc90b82233b99af7dffbb3d3f92c00amwextern "C" {
d0e518695adc90b82233b99af7dffbb3d3f92c00amwtypedef struct node {
d0e518695adc90b82233b99af7dffbb3d3f92c00amw unsigned long nu_int;
d0e518695adc90b82233b99af7dffbb3d3f92c00amwtypedef struct keyword {
d0e518695adc90b82233b99af7dffbb3d3f92c00amwtypedef struct symbol {
d0e518695adc90b82233b99af7dffbb3d3f92c00amwtypedef struct integer {
d0e518695adc90b82233b99af7dffbb3d3f92c00amw/* This makes certain things much easier */
d0e518695adc90b82233b99af7dffbb3d3f92c00amwtypedef struct advice {
d0e518695adc90b82233b99af7dffbb3d3f92c00amw/* alias for basic types */
d0e518695adc90b82233b99af7dffbb3d3f92c00amw/* arg used for size, union or generic purpose */
d0e518695adc90b82233b99af7dffbb3d3f92c00amw/* operation parameter in/out stuff */
d0e518695adc90b82233b99af7dffbb3d3f92c00amw/* size stuff */
d0e518695adc90b82233b99af7dffbb3d3f92c00amw/* union stuff */
d0e518695adc90b82233b99af7dffbb3d3f92c00amw/* interface stuff */
d0e518695adc90b82233b99af7dffbb3d3f92c00amwtypedef struct typeinfo {
d0e518695adc90b82233b99af7dffbb3d3f92c00amw /* STRUCT BASIC_TYPE */
d0e518695adc90b82233b99af7dffbb3d3f92c00amw unsigned int size_fixed_part;
d0e518695adc90b82233b99af7dffbb3d3f92c00amw /* size_is(n_members) */
d0e518695adc90b82233b99af7dffbb3d3f92c00amwtypedef struct member {
d0e518695adc90b82233b99af7dffbb3d3f92c00amw unsigned int pdu_offset;
d0e518695adc90b82233b99af7dffbb3d3f92c00amwextern void analyze(void);
d0e518695adc90b82233b99af7dffbb3d3f92c00amwextern void show_typeinfo_list(void);
d0e518695adc90b82233b99af7dffbb3d3f92c00amwextern void type_extern_suffix(ndr_typeinfo_t *, char *, size_t);
d0e518695adc90b82233b99af7dffbb3d3f92c00amwextern void type_null_decl(ndr_typeinfo_t *, char *, size_t);
d0e518695adc90b82233b99af7dffbb3d3f92c00amwextern void type_name_decl(ndr_typeinfo_t *, char *, size_t, char *);
d0e518695adc90b82233b99af7dffbb3d3f92c00amwextern void generate(void);
d0e518695adc90b82233b99af7dffbb3d3f92c00amwextern int yylex(void);
d0e518695adc90b82233b99af7dffbb3d3f92c00amwextern void compile_error(const char *, ...);
d0e518695adc90b82233b99af7dffbb3d3f92c00amwextern void fatal_error(const char *, ...);
d0e518695adc90b82233b99af7dffbb3d3f92c00amwextern void tdata_dump(void);
d0e518695adc90b82233b99af7dffbb3d3f92c00amw/* ndr_parse.y */
d0e518695adc90b82233b99af7dffbb3d3f92c00amwextern int yyparse(void);
d0e518695adc90b82233b99af7dffbb3d3f92c00amwextern int yyerror(char *);
d0e518695adc90b82233b99af7dffbb3d3f92c00amw#endif /* _NDRGEN_H */