4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
23 * Copyright 1999-2002 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
27 #ifndef _PICLD_PLUGINUTIL_IMPL_H
28 #define _PICLD_PLUGINUTIL_IMPL_H
30 #pragma ident "%Z%%M% %I% %E% SMI"
36 #define PER_ALLOC_COUNT 256
37 #define RECORD_SIZE_MAX 1024
38 #define STARTING_INDEX 0
39 #define SUPPORTED_VERSION_NUM 1.1
41 /* reserved keyword (case insensitive) */
42 #define KEYWORD_INT_TYPE "int"
43 #define KEYWORD_UINT_TYPE "uint"
44 #define KEYWORD_FLOAT_TYPE "float"
45 #define KEYWORD_STRING_TYPE "string"
46 #define KEYWORD_VOID_TYPE "void"
47 #define KEYWORD_READ_MODE "r"
48 #define KEYWORD_WRITE_MODE "w"
49 #define KEYWORD_READWRITE_MODE "rw"
50 #define KEYWORD_WITH_STR "with"
52 #define WHITESPACE " \t\n"
53 #define RECORD_WHITESPACE ": \t\n"
54 #define DOUBLE_QUOTE "\""
97 picl_prophdl_t
*prophs
;
110 refprop_cmd_t refprop
;
111 refnode_cmd_t refnode
;
114 verbose_cmd_t verbose
;
122 int inside_node_block
;
125 int inside_table_block
;
127 int inside_row_block
;
132 #define pathcmd_name u.path.path
133 #define nodecmd_nodeh u.node.nodeh
134 #define nodecmd_nodename u.node.nodename
135 #define nodecmd_classname u.node.classname
136 #define nodecmd_classname u.node.classname
137 #define propcmd_proph u.prop.proph
138 #define propcmd_pname u.prop.pname
139 #define propcmd_type u.prop.type
140 #define propcmd_accessmode u.prop.accessmode
141 #define propcmd_size u.prop.size
142 #define propcmd_valbuf u.prop.valbuf
143 #define refpropcmd_proph u.refprop.proph
144 #define refpropcmd_pname u.refprop.pname
145 #define refpropcmd_dstnode u.refprop.dstnode
146 #define refnodecmd_nodeh u.refnode.nodeh
147 #define refnodecmd_name u.refnode.newnodename
148 #define refnodecmd_class u.refnode.newnodeclass
149 #define refnodecmd_dstnode u.refnode.dstnode
150 #define tablecmd_tblh u.table.tblh
151 #define tablecmd_newtbl u.table.newtbl
152 #define tablecmd_tname u.table.tname
153 #define rowcmd_index u.row.index
154 #define rowcmd_nproph u.row.nproph
155 #define rowcmd_prophs u.row.prophs
156 #define verbosecmd_level u.verbose.level
162 #endif /* _PICLD_PLUGINUTIL_IMPL_H */